Showing archive results for October 2009

Oct 22, 2009
Post comments count0
Post likes count0

Hey, Scripting Guy! Part 2: How Can I Update Many Office Word Documents at Once?

ScriptingGuy1
ScriptingGuy1

(Editor's note: This is part 2 of a two-part article originally intended for TechNet Magazine. Part 1 was published yesterday.)  Now we arrive at the entry point to the script. The first thing to do in the entry point of the script is to create a collection of all the .doc and docx files in the folder indicated by the $path variable. The ...

Scripting Guy!Windows PowerShellOffice
Oct 21, 2009
Post comments count0
Post likes count0

Hey, Scripting Guy! Part 1: How Can I Update Many Office Word Documents at Once?

ScriptingGuy1
ScriptingGuy1

(Editor's note: This is part 1 of a two-part article originally intended for TechNet Magazine. Part 2 will be published tomorrow.)   Little clouds of dust rise from the ground like miniature tornados carrying powdery sand that drifts along lazily on a nearly still breeze. The tires that support the ancient bus grind well-worn rocks a...

Scripting Guy!Windows PowerShellOffice
Oct 20, 2009
Post comments count0
Post likes count0

Hey, Scripting Guy! Part 2: How Can I Make Sure That a WMI Provider Exists Before Using It in a Script?

ScriptingGuy1
ScriptingGuy1

(Editor's note: This is part 2 of a two-part article originally intended for TechNet Magazine. Part 1 was published yesterday.)    To obtain information about the provider for a WMI class, you will need to open the class. Click the Open Class button, and type the name of the WMI class in the box that appears. We are looking for the ...

Scripting Guy!Windows PowerShellscripting techniques
Oct 19, 2009
Post comments count0
Post likes count0

Hey, Scripting Guy! Part 1: How Can I Make Sure That a WMI Provider Exists Before Using It in a Script?

ScriptingGuy1
ScriptingGuy1

(Editor's note: This is part 1 of a two-part article originally intended for TechNet Magazine. Part 2 will be published tomorrow.)  The sun had barely thought about coming up as I stepped aboard the catamaran that would take me from the Circular Quay across Sydney Harbor to Manly Beach. I staggered slightly as I navigated nearly 100 pound...

Scripting Guy!Windows PowerShellscripting techniques
Oct 15, 2009
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I List the Unique Words from a Microsoft Office Word Document?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! I need to obtain a listing of unique words from a Microsoft Word document. I know that there is the Sort-Object cmdlet that can be used to retrieve unique items, and there is the Get-Content cmdlet that can read the text of a text file. However, the Get-Content cmdlet is not able to read a Microsoft Word document, and I...

Scripting Guy!Windows PowerShellOffice