Scripting Blog [archived]

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

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

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