Scripting Blog [archived]

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

Hey, Scripting Guy! How Can I Use Windows PowerShell to Look for and Replace a Word in a Microsoft Word Document?

(image) Hey, Scripting Guy! The week of April 17, 2009, you did a weeklong series of “Hey, Scripting Guy!” articles on regular expressions. I tried to change one of your scripts to open an office Word document that uses Windows PowerShell to look for a particular word. Guess what? It did not work. Instead, it filled my screen with ...

Hey, Scripting Guy! How Can I Convert to Windows PowerShell a VBScript Script That Creates a Table in Office Word?

(image) Hey, Scripting Guy! I was looking through the Office Space Archive and came across a nice article that talks about how to create a table in Office Word. The article is interesting, but I am more interested in how to do this by using Windows PowerShell. Will I be able to translate this script to Windows PowerShell? Or do you have one ...

Hey, Scripting Guy! How Can I Convert to Windows PowerShell a VBScript Script to Which I Want to Make Significant Changes?

(image) Hey, Scripting Guy! I enjoyed talking to you yesterday at TechEd. Unfortunately, I did not think about this until I came back to my hotel room and read your "Hey, Scripting Guy!" column. It seems to me that you spent much time saying there was not much of a reason to translate a VBScript into Windows PowerShell, and then you went ...

Hey, Scripting Guy! How Can I Convert a VBScript to a Windows PowerShell Script That Creates an Office Word Document with Hyperlinks?

(image) Hey, Scripting Guy! I am trying to learn Windows PowerShell. I have a script that creates a Word document that has a series of hyperlinks in it. I want to be able to write that script in Windows PowerShell, but I am not sure where I should begin. As far as I can tell, there are no Windows PowerShell cmdlets that will let me do this. ...

Hey, Scripting Guy! How Can I Evaluate a Condition and Select from Several Options with Windows PowerShell?

(image) Hey, Scripting Guy! I want to evaluate a condition and select from several different options. I know I could use the If…Then…ElseIf to do this, but it is somewhat cumbersome and yesterday you said there was a better way to do these kinds of things. What’s the better way?- KM(image) (image) Hi KM, You are not going to believe ...