Scripting Blog

A place to learn about PowerShell and share stories of automation

Use PowerShell to Easily Convert Decimal to Binary and Back

Summary: Learn how to use Windows PowerShell to easily convert decimal to binary and back, and simplify custom subnet mask calculations.   Microsoft Scripting Guy Ed Wilson here. Today is 63. Yep, that is right, today is 63. That is what you get when you see 11 11 11 represented as binary. This appears here.   PS C:\> 1+2+4+8+16+...

Use PowerShell to Pause a Script While Another Process Exits

Summary: Learn how to use Windows PowerShell to pause a script and wait for another process to exit before continuing. Hey, Scripting Guy! I am attempting to use Windows PowerShell to shut down an application, but the application is rather complicated. I need to stop one process, and wait for that process to complete before starting the ...

Writing Output with PowerShell

Summary: Microsoft PowerShell MVP, Marco Shaw, discusses writing output from Windows PowerShell. Microsoft Scripting Guy, Ed Wilson, is here. Today we will be joined by Marco Shaw. Marco is a consultant with CGI in Moncton. He has been working in the IT industry for over 12 years, also working for Bell Aliant and Atlantic Lottery. He was ...

Learn How to Create Custom Column Heads for PowerShell Out-GridView

Summary: The Scripting Wife learns how to create custom column headings for the Windows PowerShell Out-GridView cmdlet. Weekend Scripter Microsoft Scripting Guy, Ed Wilson, here. It is a typical weekend for me. I am up early, sipping a cup of English Breakfast tea, and watching a pot of Irish steel-cut oats simmer on the stove. I am glancing ...