PowerTip: Determine if Property is Member of Object

Summary: Determine if a property is a member of an object in Windows PowerShell.  How can I determine if a specific property is actually a member of an object in my Windows PowerShell script?  Use the Get-Member cmdlet, and cast the response into a Boolean data type by using the [bool] type             accelerator,…


TechEd 2013: A Couple of Scripts

Summary: A couple of quick Active Directory scripts from the Scripting Guys booth. This morning Brian Wilhite, Chris Duck, and Mike Robbins were playing around with Windows PowerShell. They decided to create a couple of scripts. The first script creates an organizational unit and ten users in the organizational unit. Here are Chris, Mike and…

5

Learn How IT Pros Can Use the PowerShell AST

Summary: Guest blogger, Microsoft PowerShell MVP, Bartek Bielawski, shows how to use the Windows PowerShell AST. Microsoft Scripting Guy, Ed Wilson, is here. Not only do we have a special guest today as our guest blogger, it is a special day in the Scripting House because it is the Scripting Wife’s birthday. So Happy Birthday,…


Focus on the Object

Summary: In today’s guest article, Microsoft PowerShell MVP Shane Hoey reminds us to focus on the object. Microsoft Scripting Guy Ed Wilson here. Today we have a guest article by Windows PowerShell MVP Shane Hoey. Here is what Shane has to say about himself: “My scripting experience started back when Windows XP was the new kid…


Use Regular Expression Pattern when Parsing PowerShell Script

Summary: Part three in the series about replacing Windows PowerShell aliases with full cmdlet names uses a regular expression pattern and the tokenizer. Weekend Scripter Microsoft Scripting Guy, Ed Wilson, is here. With the final scripts uploaded for the 2011 Scripting Games, the judges are hard at work finishing the grading in preparation for revealing…

4