Scripting Blog

A place to learn about PowerShell and share stories of automation

Check for Admin Credentials in a PowerShell Script

Summary: Learn how to check for administrative credentials when you run a Windows PowerShell script or command. Microsoft Scripting Guy, Ed Wilson, is here. Boe Prox is our guest blogger today. Boe Prox is currently a senior systems administrator with BAE Systems. He has been in the IT industry since 2003. He spent the past three years ...

Make Windows PowerShell Your Web Client

  Summary: Interact with websites from Windows PowerShell with this how-to post that wraps .NET Framework classes.   Hey, Scripting Guy! I would like to be able to download files and things from the Internet via Windows PowerShell. Is there an easy way to do this? I have not been able to find a Windows PowerShell cmdlet, and I would ...

Packaging .NET Framework Classes into Windows PowerShell Functions

  Summary: Learn how to correctly package .NET Framework classes into reusable Windows PowerShell advanced functions in this step-by-step solution.   Hey, Scripting Guy! I have been exploring the Microsoft .NET Framework on MSDN and attempting to convert some examples I have found there into Windows PowerShell code. I will admit that...

Use PowerShell to Combine Multiple Commands for Ease of Use

  Summary: Learn how to use Windows PowerShell 2.0 to combine multiple commands into new custom functions and simplify your scripting.   Hey, Scripting Guy! I do a lot of work from the Windows PowerShell command line. In fact, I write very few scripts, but I run lots of commands. I would like to create a custom Windows PowerShell ...

Automatically Create Custom PowerShell Functions

  Summary: Learn how to automatically create custom Windows PowerShell functions by using a free tool that writes your code for you.   Hey, Scripting Guy! I wish there was a good way to modify Windows PowerShell commands. I can modify the names of commands by creating an alias for the command. I wish I could create an alias that ...