Scripting Blog

A place to learn about PowerShell and share stories of automation

Hey, Scripting Guy! Can I Pause and Resume Scripts with Windows PowerShell?

 Hey Scripting Guy! I am working on a Windows PowerShell script, and I would like to pause the script for three minutes and then resume it. I know I can use the Start-Sleep cmdlet to halt script execution, but I would like to give a visual indication that the script is waiting, and display information on the screen every second that would...

Hey, Scripting Guy! Can I Sort a Tab-Separated Value File with Windows PowerShell 2.0?

  Hey Scripting Guy! I have a bunch of data in a tab-separated value (TSV) file that I need to sort based upon one of the columns. If you could help me it would be great. We are using Windows PowerShell 2.0 if that is of any importance to your solution. -- MLHello ML, Microsoft Scripting Guy Ed Wilson here. When your friends and family...

Hey, Scripting Guy! Can I Update More Than One Text File?

Hey Scripting Guy! I am trying to convert a number of text files that have been used to create old Web pages to a Web site that uses a new format. The problem is that the text files are not in a standard format. I need to identify the shortest lines in the text files so that I can go in and fix the files before moving everything over to the ...

Hey, Scripting Guy! Can I Search a Text File to Work with Specific Text?

  Hey Scripting Guy! I have a log file that is produced by an application. The file is simply text, and is not really formatted in any discernable way. I can open the log in Notepad and use the <ctrl-f> (control –f) command to search the text file for specific things, but it would be much nicer if I had a different way to...

Hey, Scripting Guy! Can I Download Multiple Files at Once with Internet Explorer in Windows 7?

 Hey Scripting Guy! Internet Explorer used to be limited to only downloading two items at a time. I found a script that would increase it to 10, but that script does not work on Windows 7. I got accustomed to being able to download 10 things at the same from within Internet Explorer. Do you have a script that will make that change for me...

Feedback usabilla icon