Hey, Scripting Guy! How Can I Create a Disk Space Report in a Word Document?

    Hey, Scripting Guy! We are having problems with several of our servers at work. Several of them were upgraded from Windows NT 4, and as a result, we are constantly running into disk space issues on the C: drive. I would rather manage the problem than take the servers down and rebuild them… Read more

Hey, Scripting Guy! How Can I Retrieve the Custom Properties of a Microsoft Word Document?

    Hey Scripting Guy! One of the things that I hate about Microsoft Word is the custom properties that can be set on a document. Ok, well maybe I do not actually hate the custom properties. In fact, I would love to love them. The problem is that after they are set, they actually… Read more

Hey, Scripting Guy! How Can I List All the Properties of a Microsoft Word Document?

    Hey, Scripting Guy! I am trying to find a Windows PowerShell script that will list all the properties of a Microsoft Word document. I am not talking about the size and the date of the document; those are file properties. I am talking about stuff like the author, the subject, and those properties… Read more

Hey, Scripting Guy! How Can I Italicize Specific Words in a Microsoft Word Document?

    Hey, Scripting Guy! I do not know about you, but I hate having to italicize certain words. Actually, I hate italicizing all words because I do not like removing my hands from the keyboard, grabbing the mouse, and then searching for where the text formatting menus have moved in Office 2007. If I… Read more

Hey, Scripting Guy! Quick-Hits Friday: The Scripting Guys Respond to a Bunch of Questions (12/25/09)

In this post: How Can I Get a List of All Drivers Available to a Computer? Can I Query IIS Via WMI? Tell Me More About Querying WMI Objects Tell Me More About the WMI Shadow Copy Class Troubleshooting an HTA Script How Can I Deploy a Windows Service Pack and Ignore Those Computers That Already… Read more

Hey, Scripting Guy! Can Windows PowerShell Functions Accept More Than One Input?

    Hey, Scripting Guy! I have a function that I would like to modify to accept multiple inputs. I have seen examples of a function that uses a single input parameter, but I have not found a Windows PowerShell function that uses two inputs. How can I cause the function to accept two inputs?… Read more

Hey, Scripting Guy! Why Would I Even Want to Use Functions in My Windows PowerShell Scripts?

    Hey, Scripting Guy! You have been talking about writing functions and using functions all week. To me it seems like a lot of extra work to create a function. Do I have to write functions? Or can I just write my code in a script like I used to do with VBScript? —… Read more

Hey, Scripting Guy! How Can I Use "Real Names" for Windows PowerShell Functions?

    Hey, Scripting Guy! I enjoyed reading yesterday’s blog post about working with functions. I was really interested when you were talking about using “real names” for my functions. You did not say too much about why I should do that, but I guess it makes sense. I am thinking about writing a function… Read more

Hey, Scripting Guy! How Do I Use Functions in Windows PowerShell 2.0?

    Hey, Scripting Guy! I am confused about using functions in Windows PowerShell 2.0. I was also confused about using functions in Windows PowerShell 1.0. Are they like functions in VBScript, or are they something different? In addition, I have tried to create a subroutine in Windows PowerShell, and it does not seem to… Read more

Hey, Scripting Guy! Quick-Hits Friday: The Scripting Guys Respond to a Bunch of Questions (12/18/09)

In this post: Help Me Make This Code Work! How Can I Copy a Folder from One Computer to Many Other Computers? Addressing Some Unexpected VBScript While…Wend Behavior Can I Display My Hard Drive’s Temperature?   Help Me Make This Code Work! Hey, Scripting Guy! When I follow your examples on accessing SQL Server objects… Read more