How Can I Compare the Contents of Two Text Files?

Hey, Scripting Guy! I have two separate text files. One file contains a list of MAC addresses taken from a network scan; the other contains a list of MAC addresses for our currently-managed devices. How can I compare these two files, and output a list of addresses that have no corresponding device to a third…

8

How Can I Add a Page X of Y Footer to a Microsoft Word Document?

Hey, Scripting Guy! I saw your article on adding page numbers to the footer of a Word document. However, I need my page numbers to be in the format “Page X of Y,” where X is the current page number and Y is the total number of pages. How can I do that?– JS Hey,…

8

How Can I Create a New Folder in Microsoft Outlook?

Hey, Scripting Guy! How can I create a new folder in Microsoft Outlook?– TY Hey, TY. You know, this is an exciting time here at Microsoft; after all, last night at midnight we officially released one of the most highly-anticipated software products ever created: a script that can create a new folder in Microsoft Outlook!…

8

Hey, Scripting Guy! How Can I Hide My Desktop Wallpaper?

I give a lot of presentations, and the background picture of my baby alpaca, while fascinating to me, probably does not have the same level of attraction to my clients. I know I can mouse around and change the desktop picture to some bland color, but I prefer to run a script and make the…

8

Hey, Scripting Guy! How Can I Use the Do…While…Loop in Windows PowerShell?

Hey, Scripting Guy! I frequently work with arrays in my scripts. The way I write scripts, I end up using Do…While…Loop frequently. I know that you like using the For…Each…Next for arrays, but to me Do…While…Loop seemed easier and more flexible. I looked and cannot find an example of how to use Do…While…Loop in Windows…

8

Hey, Scripting Guy! Using the Windows Presentation Foundation PowerShell Kit to Create a GUI

  About the author: Doug Finke is a Microsoft PowerShell MVP working for Lab49, a company that builds advanced applications for the financial service industry. Over the last 20 years, Doug has been a developer and author working with numerous technologies. You can catch up with Doug on his blog.   The Scripting Guys recently…

8

Weekend Scripter: Where.exe—The What, Why, and How

Microsoft Scripting Guy Ed Wilson here. The sounds outside seems amplified by the inky darkness that grudgingly gives way to the early morning sun. I am sitting on the front porch sipping a cup of English Breakfast Tea, munching on a freshly baked cinnamon scone, and hanging out on Twitter via my laptop. Having wireless…

8

Use PowerShell to Add Domain Users to a Local Group

  Summary: By using Windows PowerShell splatting, domain users can be added to a local group. This script includes a function to convert a CSV file to a hash table.   Hey, Scripting Guy! I need to be able to use Windows PowerShell to add domain users to local user groups. I have been able…

8