Articles

PowerShell articles, tutorials, and guides from community experts.

June Blender

PSCustomObject: Save Puppies and Avoid Dead Ends

Welcome to Scripting Games 2013. Here’s my favorite hint for improving your functions and scripts. Avoid writing to the console or formatting your output. Instead use PSCustomObject in Windows PowerShell 3.0 and leave the formatting to the end user. Windows PowerShell provides lots of great ways to return the output of a command or function. You can write to the host program (Write-Host), write to a file (Out-File), and format your output to look really pretty (Format-*).

Don Jones
Announcements

Now Accepting Nominations for PowerShell.org, Inc. Board of Directors

At our first annual Shareholders Meeting (shareholders will receive an e-mail from me later this week about that meeting), we will be voting on our Board of Directors. Our corporate articles permit our existing Board members to serve indefinitely, and so all are automatically re-nominated. The current Board includes: Myself (Don Jones) Kirk Munro Richard Siddaway Jason Helmick Jeffery Hicks The Board is responsible for appointing a CEO (which is currently myself) to run the company; the CEO then appoints other officers as needed to conduct the corporation’s business.

Don Jones
PowerShell Summit

Summit Downloads

We’ll be updating this post as presenters turn over materials to us. Most of these files will be ZIPs. If there are any session materials missing - please be patient (we’re uploading as quickly as we can), or contact the presenter directly (as they may not have provided materials to us yet). Driscoll AST Manipulation Prosser WrappingBinaryModule Creating HTML Reports with Style PSHSummit Wrock Unit Testing Powershell.pptx Brundage The Powers of PowerShell Pipeworks.

Poshoholic
Announcements

[UPDATED] PowerShell Summit 2013 Conference Schedule

If you are attending the PowerShell Summit next week in Redmond, you might want to make sure you have copies of the schedule on hand. There are two tracks, and I have created two pdf documents, one for each track, that provide the full schedule including session abstracts and speaker bios. PowerShell Summit 2013 Conference Schedule - Track 1 PowerShell Summit 2013 Conference Schedule - Track 2 While those details are very useful, some of the conference attendees have expressed an interest in having a consolidated view of the agenda so that they could see which sessions were taking place on each of the tracks and choose which they were more interested in.

Don Jones
Scripting Games

Meet the Scripting Games Judges: Jeffery Hicks

Jeffery Hicks is a Microsoft MVP in Windows PowerShell, Microsoft Certified Trainer and an IT veteran with over 20 years of experience, much of it spent as an IT consultant specializing in Microsoft server technologies with an emphasis in automation and efficiency.He works today as an independent author, trainer and consultant.Jeffwritesthe popular Prof. PowerShell column for MPCMag.com, is a regular contributor to the Petri IT Knowledgebase, 4SysOps and the Altaro Hyper-V blog, as well as frequent speaker at technology conferences and user groups.

Don Jones
Scripting Games

Advanced Practice Event

I want to direct your attention to this forums post, which I think is worth anyone’s time to look through. I’ve left a pretty long reply with some comments on the entry that would also be worth a read. I find that a LOT of folks - like the gentleman who posted his script - have a really good approach to PowerShell scripts. They want to use parameters. They want verbose output.

Don Jones
Scripting Games

Show Your Scripting Games Pride!

If you’re participating in the Scripting Games, log on to the Scripting Games Web site and check out your Profile page. You’ll find a redemption code that can be used to unlock a Participant achievement on the main PowerShell.org Web site!

Don Jones
Announcements

Comments from the PowerShell.org survey

As you probably know, we’ve been running a survey for PowerShell.org, which helps us both improve the site and create demographic information that makes us appealing to sponsors (who, you know, pay for everything here). We’ve gotten a ton of great feedback. Yeah, we really are reading every single comment you left. Let’s start with the biggies: Maybe some more guest writers for articles? I imagine it’s difficult with all the articles that get posted all over the net every day, but maybe some of those folks (like the scripting guys or scripting wife) can do some to help the Powershell.

Don Jones
Scripting Games

Beginner Practice Event

As you may be aware, we posted Practice Events for the 2013 Scripting Games, in an effort to give people an idea of what the events would look like and involve. There’s been a lively discussion in the PowerShell.org forums about the Beginner Practice, so I thought I’d weigh in. Here’s my solution: Of course, that’s hardly the only way to go about it. I used this approach because it minimizes the use of extra variables, and doesn’t create a script-style approach - it’s a “one-liner,” although I’ve broken it across several physical lines for readability.

Don Jones
PowerShell Summit

[UPDATED] Last-Minute Summit Info and Changes

Please make sure you’re following this announcements category as you travel to, and attend, the Summit. It’s the best way for us to get out late-breaking news. Registration begins at 8am on Monday, April 22nd, in the lobby of Building 40. Now, sometimes the lobby doors open a wee bit late - so bear with us. The first sessions aren’t until 9am, so there’s plenty of time. Please bring a printout of your ticket from EventBrite, and a photo ID.