Showing archive results for 2010

Jun 29, 2010
Post comments count0
Post likes count0

Hey, Scripting Guy! How can I use Windows PowerShell to Search a Text File for multiple strings?

ScriptingGuy1

    Q: Hey Scripting Guy! I need help migrating a script from VBScript to Windows PowerShell 2.0. The VBScript is one that I based upon an old Hey Scripting Guy! article. I use it to search a text file for specific words. If the words are found, the script displays a message stating this fact. I do not want to learn Windows PowerSh...

Scripting Guy!Windows PowerShellscripting techniques
Jun 28, 2010
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Use Windows PowerShell to Create a Text File with Fixed-Length Lines?

ScriptingGuy1

    Hey, Scripting Guy! I am trying to learn Windows PowerShell 2.0, but I am having some issues when it comes to string manipulation. I have been a faithful reader of the Scripting Guys for several years, and I have found many of the scripts to be critical in my business environment. I wish I could simply translate the VBScript s...

Scripting Guy!Windows PowerShellscripting techniques
Jun 27, 2010
Post comments count0
Post likes count0

Hey, Scripting Guy! Weekend Scripter: Timing the Windows PowerShell Pipeline

ScriptingGuy1

    Microsoft Scripting Guy Ed Wilson here. I decided to get up early this morning and head out with my laptop, a camera, and my panama hat. My destination? Battery Park. The Scripting Wife and I are in Charleston, South Carolina, for the weekend, and I thought it would be a great time to write some scripts. The Scripting Wife has...

Scripting Guy!Windows PowerShellscripting techniques
Jun 26, 2010
Post comments count0
Post likes count1

Weekend Scripter: Playing Around with the Windows PowerShell Tokenizer

ScriptingGuy1

  //   Microsoft Scripting Guy Ed Wilson here. Once again, the Scripting Wife and I are on the road. This weekend we are heading to Charleston, South Carolina, to hang out and to see a couple music groups. The Scripting Wife is driving, and I am playing around with Windows PowerShell. We have my Zune HD plugged into our car radio ...

Scripting Guy!Windows PowerShellscripting techniques
Jun 24, 2010
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Use Windows PowerShell to Add Hyperlinks to a Word Document?

ScriptingGuy1

  Hey, Scripting Guy! I need to add hyperlinks to a document by using Windows PowerShell. But I do not want to add hyperlinks to objects that are set in a code style or a heading style. I only want to add the hyperlink to the word if it is in a normal Microsoft Word style. In addition, I only want to add the link one time per document...

Scripting Guy!Windows PowerShellOffice