Scripting Blog

A place to learn about PowerShell and share stories of automation

Accelerate the PowerShell Console with Custom Drives

   Summary: Microsoft Scripting Guy Ed Wilson teaches how to accelerate work in the Windows PowerShell console with PSDrives.   Hey, Scripting Guy! I noticed in one of your screen shots that you were running the script from a rather deeply nested path of c:\data\ScriptingGuys\2011\HSG-1-3-11. I remember thinking what a silly ...

Use the PowerShell Add-History Cmdlet to Customize the Console

   Summary: Learn how to use the Windows PowerShell Add-History cmdlet to customize the console for more efficient automation.   Hey, Scripting Guy! I love using the Windows PowerShell history cmdlets to simplify my server and workstation automation needs. It is much easier to Invoke-History than it is to write a script, even a ...

Use PowerShell History to Speed Repetitive Commands

   Summary: Learn how to use the Windows PowerShell history cmdlets to speed execution of repetitive commands.   Hey, Scripting Guy! I recently read that Windows PowerShell keeps a history of commands. I am not sure if this is true or not because I cannot seem to figure out how to get to that history. Even if I did get the ...

Simplify PowerShell Hash Table Creation with a Simple Cmdlet

   Summary: Learn how to use an easy-to-use Windows PowerShell cmdlet to simplify creating hash tables.   Hey, Scripting Guy! Good morning, Ed. I have been a Scripting Guy fan for years and although I have not read all the thousands of posts, I have definitely read more than a few of them. This is the first time I have felt ...