Articles

PowerShell articles, tutorials, and guides from community experts.

Boe Prox
Scripting Games

Winter Scripting Games 2014 Tip #1: Avoid the aliases

Having been a judge for the previous 2 Scripting Game competitions as well as competing in the 2 before that, I have seen my share of scripts submitted that didn’t quite meet the cut of what I felt were the best scripts. It doesn’t mean that they wouldn’t work out in the real world in a production environment (Ok, some wouldn’t :)), but some were just really hard to read or others were doing things that I wouldn’t consider to be a good practice.

Mike F Robbins
Scripting Games

PowerShell Tip #3 from the Winner of the Advanced Category in the 2013 Scripting Games

In my previous blog article (PowerShell Tip #2), I left off with the subject of inline help and stated there was a better way. I’m fast-forwarding through lots of concepts and jumping right into “Advanced Functions and Scripts” with this tip because they are where you’ll find the answer to a “better way” to add inline help. Click here to be redirected to the original post of this article on the author’s blog site where you can read the remainder of the article.

Jonathan Medd
Scripting Games

Winter Scripting Games 2014

If you’re looking to learn or improve on existing skills as part of a new year goal and one of those in PowerShell, then you may find it useful to check out the Winter Scripting Games 2014. When you are looking to improve your scripting skills it can sometimes be tricky if you don’t have a practical problem to solve. By taking part in these games you will have a number of opportunities to apply your skills to _real _problems.

ScriptWarrior
Events

Tampa Bay Powershell User Group – Jan Meeting

Next meeting: Topic: Winter Scripting Games Kickoff and Team formation Jan 16th 2014 6 – 8 PM back at Tek System Tampa Office FOOD PROVDED RSVP via – http://www.eventbrite.com/e/tampa-powershell-user-group-tickets-1634714475 4301 West Boy Scout Boulevard Suite 590 Tampa, FL 33607

Don Jones
Scripting Games

Scripting Games Winter 2014 – WE HAS PRIZES!!

Many thanks to SAPIEN Technologies for providing - completely without us asking - first-place and overall-best prizes for The Scripting Games! We’ll have copies of PowerShell Studio (x2), PrimalScript (x2), and the entire SAPIEN Software Suite (x1) for our overall top-scoring team at the end of the Games. Team members can decide how to divvy up the loo themselves. Remember that Event 1 is coming up soon: Instructions available 2014-01-18 00:00:00 UTC Entries accepted starting 2014-01-19 00:00:00 UTC All entries due by 2014-01-26 00:00:00 UTC **You must be registered and on a team before we begin accepting entries, or you will not be able to participate.

Mike F Robbins
Scripting Games

PowerShell Tip #2 from the Winner of the Advanced Category in the 2013 Scripting Games

Tip #2 - Comment (Document) your code! This is another one of those tips that probably isn’t very popular, but regardless of how good you are at writing PowerShell scripts and functions, they’re useless if no one else can figure out how to use them. You might be thinking that you’re the only one who uses the PowerShell code that you write, but I’m sure that you like to go on vacation just like the rest of us and none of us are going to live forever.

Don Jones
Announcements

PowerShell Summit North America 2014 – Some More Reasons to Register!

PowerShell Summit North America Registration is in full swing, and we’ve got about 50 more spots to reach our break-even goal. Hopefully, those of you that have been holding off for budgetary reasons are now “weapons free” and can plan to join us in April 2014! Confirmed PowerShell Product Team Presenters We’ve confirmed a great set of speakers from the team itself, including Jason Shirk, Lee Holmes, Kenneth Hanson, and Hemant Manhawar.

Don Jones
Scripting Games

Scripting Games Winter 2014 – Team Discussion Tips

When you’re logged into the Games, you’ll notice that clicking on your team pulls up a “team discussion” box. That’s a shared discussion area for you and your team. However, if you click on one of the files you’ve uploaded, you’ll see the discussion turn into a “File Discussion.” We retain a separate thread for each file you upload, so that you and your team can discuss that file specifically.

Don Jones
Scripting Games

Scripting Games Winter 2014 – Teams in Danger

Note that as of the time of this post (about 2pm Pacific on Jan 5th), the following teams do not have enough players to participate in the upcoming Practice Event: Lake County Hoosiers A Annihilators AZPOSH Avengers PeopleTecIsAwesome Time Travel is Dangerous Kotagiris wow. much power. very shell. Blasters CCC Anteaters Barracudas Hypothermia Bearcats #PSexec Avalanche Bull Gators Alligators To reiterate: **You must have 2-6 players signed into the Web site and joined to your team, or you will be unable to post entries.

Don Jones
PowerShell for Admins

Script for Setting Up and Demoing a DSC Pull Server

DSC Setup and Demo Scripts I recently set up a virtual machine to use for Desired State Configuration (DSC) demos. I wanted to make the demo-ing fairly brainless, as DSC requires a number of setup steps to get a pull server running. So I took some demo scripts Microsoft offered from TechEd 2013, updated them to work with Windows Server 2012 R2 RTM, and thought I’d offer them to you.