Scripting Blog

A place to learn about PowerShell and share stories of automation

Use PowerShell to Look for Phone Numbers in Text

Summary: The Scripting Wife learns how to use a regular expression pattern to look for phone numbers in text files. Microsoft Scripting Guy, Ed Wilson, here. I am looking over some of the slide decks from the Columbia, South Carolina SQL Saturday #70 event. There were a couple of really good Windows PowerShell sessions during the day (...

Scripting Wife Uses PowerShell to Get Lines from a File

Summary: The Scripting Wife learns how to use Windows PowerShell to get specific lines from a text file. Microsoft Scripting Guy, Ed Wilson, here. As the Windows PowerShell 2011 Scripting Games edge forward in the conscious minds of intrepid scripters from around the world, the event continues to grow in size, complexity, and importance in my ...

Scripting Wife Uses Regular Expressions to Match a String

Summary: On the road to the 2011 Scripting Games, the Scripting Wife learns about regular expressions and string matching. Weekend Scripter Microsoft Scripting Guy, Ed Wilson, here. The Scripting Wife and I decided to head to Hilton Head Island (no relation to Paris Hilton; and therefore, no teacup Chihuahuas around) for the weekend. One of ...

Scripting Wife Uses PowerShell to Get Days Until NCAA Final Four

Summary: The Scripting Wife learns how to use Windows PowerShell to determine the number of days until the NCAA championship game. Microsoft Scripting Guy, Ed Wilson, here. It has been an extremely exciting week. I finished writing all of the Windows PowerShell 2011 Scripting Games events, and I emailed them to the guest commentators. In ...

Use PowerShell to Detect if a Workstation Is in Use

Summary: Learn how to use Windows PowerShell to detect if a workstation is in use prior to performing a reboot   Hey, Scripting Guy! I have a problem in that I need to detect when a user is logged on to a system so that I can patch it and reboot the machine without disrupting the individual. Can this be done very easily? —SG Hello ...
Comments are closed.0 0