Showing results for HowTo - PowerShell Team

Nov 18, 2014
0
0

PowerShell DSC Resource Design and Testing Checklist

PowerShell Team
PowerShell Team

DSC Resource Design and Testing Checklist   Writing Desired State Configuration Resources is not trivial and there’s many things which can go wrong. You should always spend significant amount of time testing resources you create. This task, although critical for quality, is often overlooked or performed carelessly and insufficiently...

PowerShellDSCDesired State Configuration
Jul 29, 2013
0
0

PowerShell Sessions, Slides and Demos from TechEd 2013

PowerShell Team
PowerShell Team

We presented following sessions at this year’s edition of TechEd(s). At TechEd, we announced the newest feature in Windows PowerShell 4.0 – Desired State Configuration, so do check out the attached demos for it!! Desired State Configuration in Windows PowerShell Advance Automation using Windows PowerShell ...

PowerShellDSCDesired State Configuration
Sep 20, 2011
0
0

Cmdlet Help Editor is now released on CodePlex

PowerShell Team
PowerShell Team

I published the source code for the Cmdlet Help Editor on CodePlex here: http://cmdlethelpeditor.codeplex.com/ . Please feel free to contribute. for more information on the Cmdlet Help Editor, please check out the following post: http://blogs.msdn.com/b/powershell/archive/2007/09/01/new-and-improved-cmdlet-help-editor-tool.aspx  Wassim Fa...

HowToGet-HelpCMDLET
Apr 4, 2011
0
0

Scaling and Queuing PowerShell Background Jobs

PowerShell Team
PowerShell Team

A couple of months ago I had asked the PowerShell MVPs for suggestions on blog topics. Karl Prosser, one of our awesome MVPs, brought up the topic of scaling and queuing background jobs. The scenario is familiar: You have a file containing a bunch of input that you want to process and you don’t want to overburden your computer by starting up ...

PowerShell V2CommunityHowTo
Jul 13, 2009
0
0

Advanced Debugging in PowerShell

PowerShell Team
PowerShell Team

Here is a collection of tips and tricks to debug PowerShell Read UpThere is a 7-part series of “Debugging Monad Scripts” that Jon Newman wrote a few years ago that covers a lot of tips, including error handling, traps, tracing, and covers a lot of V1 stuff. Clean codeThe best route, is to make sure code is clean, and common errors are caught. To do...

PowerShell V2PowerShell ISERemoting
May 28, 2009
0
0

Adding Custom Cmdlet Help for Providers

PowerShell Team
PowerShell Team

A new feature of Windows PowerShell 2.0 lets you write custom cmdlet help for Windows PowerShell providers. This blog explains how to do it. (The topic will also be covered in excruciating detail in MSDN, but we don't want you to wait.)   What's a Provider? A Windows PowerShell provider is a C# program that exposes a data store to Windows Powe...

PowerShell V2HowToGet-Help
Mar 10, 2009
0
0

How to Create an Object in PowerShell

PowerShell Team
PowerShell Team

Today someone in Xbox Live Operations (the folks that keep xBox Live alive and well) pinged me with a simple question about PowerShell with a complicated answer: “How do I create a class in PowerShell?” There’s two scenarios I find where people want classes.  The first (and most common) is familiarity: the person wants to ma...

CTP3HowTo
Jan 2, 2009
0
0

How To Write a Console Application in PowerShell with Add-Type

PowerShell Team
PowerShell Team

Windows PowerShell CTP3 has a lot of very cool things.  CTP2 introduced the Add-Type cmdlet, which allowed you to dynamically compile C# in PowerShell.  It was actually possible to use the CompilerParameters to Add-Type to make a console application, but it wasn't particularly easy.  In CTP3, we've made this a lot easier to do. Ther...

CTP3HowToAdd-Type
Dec 14, 2008
0
0

What the Heck is an ENUM?

Radhika Tadinada
Radhika Tadinada

In my latest post Explore your [Environment] I said the following: PS> [System.Environment+SpecialFolder] IsPublic IsSerial Name                                     ...

HowToSystem.EnvironmentEnum
Dec 13, 2008
0
0

Explore Your [Environment]

PowerShell Team
PowerShell Team

This topic is a little long but I strongly encourage you to walk through it and master the techniques it illustrates.  I can assure you that you'll will use them a couple thousand times in the next couple of years. .Net provides a wonderful class called System.Environment that tells you all about your environment.  It is well worth takin...

HowToSystem.EnvironmentGet-Member