Scripting Blog [archived]

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

PowerTip: Use PowerShell to Map a Drive

Summary: Learn how to use Windows PowerShell to map a drive. (image)  How can I use Windows PowerShell  to map a drive to a server from a client running Windows 8.1? (image)  Use the New-SmbMapping cmdlet and specify the local path and the remote path, for example: New-SmbMapping -LocalPath h: -RemotePath \\dc1\Share (...

Use PowerShell to Zip Multiple Folders

Summary: Use Windows PowerShell to create a .zip archive of multiple folders. (image)  Hey, Scripting Guy! I need to compress multiple folders before I attempt to archive them. I would like to do this without having to install additional software. Can you help? —DR (image)  Hello DR, Microsoft Scripting Guy, Ed Wilson, is here...

Use PowerShell to Create ZIP Archive of Folder

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to create a .zip archive of a folder. (image)  Hey, Scripting Guy! I need a way to create a .zip archive of a folder. I would like to do this on my laptop running Windows 8.1, and I do not want to install any other software. Can I do this? —TR (...

PowerTip: Find if Folder Exists

Summary: Use Windows PowerShell to see if a folder exists. (image)  How can I easily find if a folder exists for a Windows PowerShell script that I am writing? (image)  Use the Test-Path cmdlet and the PathType parameter, for example: Test-Path c:\fso -PathType Container (image...