Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

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. (image)  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? —...

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. (image)  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 (image)  Hello BR, Microsoft Scripting Guy, Ed...

Learn Four Ways to Use PowerShell to Create Folders

Summary: Microsoft Scripting Guy, Ed Wilson, shows four ways to create folders with Windows PowerShell, and he discusses the merits of each approach. (image)  Hey, Scripting Guy! I am trying to find the best way to create a new folder while using Windows PowerShell. I have seen many ways of creating folders in scripts that I have run ...

The Easy Way to Use PowerShell to Work with Special Folders

Summary: Microsoft Scripting Guy Ed Wilson shows the easy way to use Windows PowerShell to work with the paths to special folders. (image)  Hey, Scripting Guy! I notice that in lots of your sample scripts, you often use a folder named FSO, and it appears off of your C: drive. Why do you do this? Is creating an FSO folder really a best ...

Use PowerShell to Find Last Logon Times for Virtual Workstations

Summary: Learn how to Use Windows PowerShell to find the last logon times for virtual workstations. Microsoft Scripting Guy, Ed Wilson, is here. Welcome back guest blogger, Brian Wilhite. Brian was our guest blogger yesterday when he wrote about detecting servers that will have a problem with an upcoming time change due to daylight savings ...