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 Determine Which Folders Are Using the Most Space on My Computer?

  Hey Scripting Guy! I have a laptop that I bought last year with Windows Vista installed on it. I love it. However, I have been reading all the positive reviews surrounding Windows 7, and I think I am going to install Windows 7 as soon as it is available. In fact, I have already pre-ordered it. The thing is that I do not like to do ...

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...

Feedback usabilla icon