Hey, Scripting Guy! From the command line, how can I use a script to open a file and replace text; for example, how can I replace all instances of “Jim” with “James”?– JW Hey, JW. As we’ve found out numerous times when dealing with text files, there is no obvious way to do this; that…
Use PowerShell to Rename Files in Bulk
Summary: Learn how to use Windows PowerShell to rename files in bulk. Microsoft Scripting Guy, Ed Wilson, is here. Matt Tisdale is back today with another solution to a situation at work… I received a call from a gentleman named Cristofer this afternoon. He had a business need and he heard from someone that Windows…
2012 Scripting Games Advanced Event 1: Review a Coworker’s Script
Summary: Advanced Event 1 of the 2012 Scripting Games asks you to review a coworker’s script. About this event Division Advanced Date of Event 4/2/2012 12:01 AM Due Date 4/9/2012 12:01 AM Event scenario You work as a network administrator for a large company. You are part of a team of other network…
Use PowerShell to Quickly Find Installed Software
Summary: Learn how to use Windows PowerShell to quickly find installed software on local and remote computers. Microsoft Scripting Guy Ed Wilson here. Guest Blogger Weekend concludes with Marc Carter. The Scripting Wife and I were lucky enough to attend the first PowerShell User Group meeting in Corpus Christi, Texas. It was way cool,…
Use PowerShell to Audit and Install Windows Patches
Summary: Learn how to use a free Windows PowerShell module to audit and install patches on Windows systems. Microsoft Scripting Guy Ed Wilson here. Today, I am proud to present a guest blog post written by Boe Prox. Boe has written a really cool module to audit and install software patches on Windows systems….
Hey, Scripting Guy! How Can I Use Windows PowerShell to Replace Characters in a Text File?
Hey, Scripting Guy! Using Windows PowerShell, how can I replace all the asterisks in a text file with some other character? — RC Hey, RC. You know, a lot of people ask the Scripting Guy who writes this column, “How do you do it? How do you manage to write a new column each and…
2012 Scripting Games Beginner Event 1: Use Windows PowerShell to Identify a Working Set of Processes
Summary: Beginner Event 1 of the 2012 Scripting Games uses Windows PowerShell to identify a working set of processes. About this event Division Beginner Date of Event 4/2/2012 12:01 AM Due Date 4/9/2012 12:01 AM Event scenario You are the network administrator for a small, single-location company. Your desktops are all running Windows 7, and…
Getting Directory Sizes in PowerShell
Summary: Guest blogger, Bill Stewart, discusses a Windows PowerShell function to determine folder size. Microsoft Scripting Guy, Ed Wilson, is here. Guest blogger today is Bill Stewart. Bill Stewart is a scripting guru and a moderator for the Official Scripting Guys forum. Here’s Bill… You have probably asked this question hundreds of times, “How big…
2012 Scripting Games Beginner Event 4: Compare Two Folders
Summary: In Beginner Event 4, you are required to compare two folders after completing to a backup. About this event Division Beginner Date of Event 4/5/2012 12:01 AM Due Date 4/12/2012 12:01 AM Event scenario You are a network administrator for a small company. Each night you use a script to perform a…
Use PowerShell to Find Installed Software
Summary: Guest blogger, Marc Carter, reprises his popular blog post about locating installed software. Microsoft Scripting Guy, Ed Wilson, is here. Marc Carter is joining us again today with another guest blog post… Looking back a couple years ago to my previous post, Use PowerShell to Quickly Find Installed Software, I find it interesting to…