Showing archive results for May 2009

May 14, 2009
Post comments count0
Post likes count0

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

ScriptingGuy1

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 gibberish, the speakers...

Scripting Guy!Windows PowerShellscripting techniques
May 13, 2009
Post comments count0
Post likes count0

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

ScriptingGuy1

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 already writt...

Scripting Guy!Windows PowerShellscripting techniques
May 12, 2009
Post comments count0
Post likes count0

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

ScriptingGuy1

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 ahead and transl...

Scripting Guy!Windows PowerShellscripting techniques
May 11, 2009
Post comments count0
Post likes count0

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

ScriptingGuy1

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. Am I out of lu...

Scripting Guy!Windows PowerShellscripting techniques
May 7, 2009
Post comments count0
Post likes count0

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

ScriptingGuy1

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 Hi KM, You are not going to believe this. But the moment I read your qu...

Scripting Guy!Windows PowerShellscripting techniques