Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

Provide Input to Applications with PowerShell

   Summary: Use SendKeys to provide input to graphical applications with Windows PowerShell.   (image) Hey, Scripting Guy! I am almost embarrassed to admit this but you know what I miss most about VBScript? I miss the SendKeys function. I do not know why Windows PowerShell did not include a New-SendKeys cmdlet. I know all about ...

Weekend Scripter: Use PowerShell to Patch VHD and WIM Image Files

    Summary: Microsoft PFE Ben Pearce shows how to use Windows PowerShell to perform offline servicing of Virtual Disks (VHD) and Windows Imaging Format (WIM) files.   Microsoft Scripting Guy Ed Wilson here. We continue with guest blogger Weekend Scripter today by having a post written by Ben Pearce. Ben Pearce is a UK based ...

Use PowerShell to Retrieve a Weather Forecast

  Summary: Microsoft Scripting Guy Ed Wilson shows how to use Windows PowerShell to get a weather forecast from inside the Windows PowerShell ISE.   Microsoft Scripting Guy Ed Wilson here. It is amazing how quickly things change on the Internet. A couple of years ago I found a website that hosted several web services. It was really ...

Pausing a Windows PowerShell Script to Receive Keyboard Input

  Summary: Pausing execution of a Windows PowerShell script to receive keyboard input can be as simple as using the Read-Host cmdlet. But other methods are available.   (image) Hey, Scripting Guy! I would like to pause a Windows PowerShell script and wait for user input. When the user types a particular key on the keyboard, I would ...