Scripting Blog [archived]

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

Weekend Scripter: Add Comment to Word Doc

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to add a comment to a Microsoft Word document. Microsoft Scripting Guy, Ed Wilson, is here. I spend a lot of time using Microsoft Word. In fact, I spend more time using Word than Microsoft Outlook—and that is saying something. Actually, it is saying a ...

Use PowerShell to Add Table to Word Doc and Email as Attachment

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to create a document in Microsoft Word, add a table, and email the document as an attachment. Microsoft Scripting Guy, Ed Wilson, is here. One of the cool things I like to do with Windows PowerShell is to combine multiple tasks so that it makes life easier for me...

PowerTip: Get Row from CSV File Based On Value

Summary: Use Windows PowerShell to get a row from a CSV file based on a specific value. (image)  How can I use Windows PowerShell 4.0 to look up a specific row from a CSV file I imported into a variable? (image)  Use the Where method, and use a match pattern to search on a specific column and value, for example: $...

Add Custom Headers to Folder Full of Word Documents

Summary: Microsoft Scripting Guy, Ed Wilson, talks about reading a CSV file and adding custom headers to a folder full of Word documents. Microsoft Scripting Guy, Ed Wilson, is here. The snow continues to befuddle the drivers around here, and as a result, the Scripting Wife and I are staying home. This has given me a lot of time to sit, look ...