Scripting Blog

A place to learn about PowerShell and share stories of automation

Don't Translate File and Folder VBScript Scripts into PowerShell

Summary: Simplify your code and do not translate an old file and folder VBScript script into Windows PowerShell.  Hey, Scripting Guy! I know there are not really established patterns and practices for writing VBScript code, or even for writing Windows PowerShell script. But there is code that I like to use—over and over again. I am ...

Use PowerShell to Create a Bunch of Folders Based upon the Date

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to create a bunch of folders based upon the date. Microsoft Scripting Guy, Ed Wilson, is here. Well, this morning I took the Scripting Wife to the Charlotte airport to begin our trip to Europe. It is beyond me why Teresa must fly nearly 1,200 miles in the ...

2012 Scripting Games Advanced Event 4: Determine Folder Space

  Summary: In Advanced Event 4, you are required to determine which folders consume the most space.   About this event   Event scenario You are a freelance journalist, and as a result, you travel to various locations around the world in search of the latest and greatest news. You create a folder for each story you work on. The ...

Use PowerShell to Back Up Modified Files to the Network

Summary: Learn how to use Windows PowerShell to back up modified files to the network.  Hey, Scripting Guy! I have a folder that contains files in it, some of which I modify on a daily basis. I am wondering if I can use Windows PowerShell to back up only the modified files—those that have changed that particular day? —NG  ...

The Best Way to Use PowerShell to Delete Folders

Summary: Microsoft Scripting Guy, Ed Wilson, discusses three ways to use Windows PowerShell to delete folders and then selects the best.  Hey, Scripting Guy! I have a question. I occasionally need to delete a large number of folders. What is the easiest way to do this? —BR  Hello BR, Microsoft Scripting Guy, Ed Wilson, is here...