W2KSG: Enumerate Disk Drives

I'm skipping Chapter 3 of the guide for now as its all about the Windows Script Host.  Jumping to chapter 4 Listing 4.1 enumerates the disk drives

Script Center Home > Microsoft Windows 2000 Scripting Guide > Scripting Concepts and Technologies for System Administration > Script Runtime Primer > FileSystemObject > Managing Disk Drives  Returning a Collection of Disk Drives

Get-PSDrive

is all we need to use in Powershell

 

Share this post :

 

Technorati Tags:

Read the complete post at http://richardsiddaway.spaces.live.com/Blog/cns!43CFA46A74CF3E96!1661.entry

Published Fri, Aug 29 2008 5:28 by Richard Siddaway's Blog
Filed under: