Welcome to the Microsoft Script Center. We are dedicated to the system administrator scripters of the world. At the Microsoft Script Center, we focus on teaching people how to use Windows PowerShell to reduce time spent performing mundane tasks.
Check out the Hey, Scripting Guy! blog to catch all the latest news, events, and, of course, scripts!
Join the conversation
The Scripting Guys forum is the place to share your knowledge and get help from other scripting fanatics.
Visit our learning center to start scripting or hone your skills.
Find scripting resources in the vast Script Center repository.
The 2013 Scripting Games have begun!
It's not too late to get involved. Visit PowerShell.org's
2013 Scripting Games page for details about how to participate.
TechEd 2013 - New Orleans, LA, June 3 - 6
TechEd 2013: Hands-on learning, deep product exploration, & countless opportunities to build relationships with a community of Microsoft experts and your peers.
PowerTip: Create a PowerShell Script Block on the Fly Summary: Create a Windows PowerShell script block on the fly.
How can I convert a string into a Windows PowerShell script block?
Use the static Create method from the [scriptblock] class:
PS C:\> [scriptblock]::Create("this is a string") | gm
Name MemberType Definition
---- ---------- ----------
CheckRestrictedLanguage Method void CheckRestricte...
Tuesday, May 21