Scripting Blog [archived]

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

Hey, Scripting Guy! How Can I Read Words in a Text File and Make Those Same Word Italic in a Word Document?

(image)   (image) Hey, Scripting Guy! I came across this blog and it has since become a staple of mine. Now, I need to know how to accomplish something more than was originally presented in your article, Hey, Scripting Guy! How Can I Italicize Specific Words in a Microsoft Word Document? Suppose I wanted to create an array containing ...

Hey, Scripting Guy! How Can I Grant Administrator Rights to Folders and Then Delete Them?

(image) (image) Hey Scripting Guy! Our previous network administrator was a slouch. He did not maintain proper backups, never reviewed event logs, and never cleaned up user folders when he deleted users in Active Directory. This last omission is particularly egregious because it has taken a lot of cleanup work to find and delete the user ...

Hey, Scripting Guy! How Can I Add Custom Properties to a Microsoft Word Document?

(image)   (image) Hey, Scripting Guy! A few months ago, you wrote a really cool Hey, Scripting Guy! post, How Can I Retrieve the Custom Properties of a Microsoft Word Document. The post illustrated how to use Windows PowerShell to read the custom properties from Microsoft Word documents. You, however, did not show how to modify the value...

Hey, Scripting Guy! How Can I Search a Microsoft Excel Workbook for Links to Other Workbooks?

(image)     (image) Hey, Scripting Guy! I have a user in our finance department that asked me today about using a Windows PowerShell script to identify Microsoft Excel workbooks that have links inside them to other Microsoft Excel workbooks. Frankly, I am not exactly sure what she is talking about, but I do think it is great that ...