Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Scripting > powershell storage management

Reply
Thread Tools Display Modes

powershell storage management

 
 
IT
Guest
Posts: n/a

 
      12-31-2008
I need to filter out the shared drives in this script located below. The
drive letters are Z,M,N,D,G. This is the code I'm currently using to display
information about my servers.




$strComputer = "servername"

$colItems = get-wmiobject -class "Win32_LogicalDisk" -namespace "root\CIMV2" `
-computername $strComputer

foreach ($objItem in $colItems) {
write-host "Caption: " $objItem.Caption
write-host "Compressed: " $objItem.Compressed
write-host "Description: " $objItem.Description
write-host "Device ID: " $objItem.DeviceID
write-host "File System: " $objItem.FileSystem
write-host "Free Space: " $objItem.FreeSpace
write-host "Name: " $objItem.Name
write-host "Provider Name: " $objItem.ProviderName
write-host "Size: " $objItem.Size
write-host "System Name: " $objItem.SystemName
write-host "Volume Name: " $objItem.VolumeName
write-host


}


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Computer Management --> Storage --> Disk Management Luke Windows Vista Administration 1 11-05-2007 06:59 PM
Re: Windows 2003 R2 - Storage Management Costs Jabez Gan [MVP] Windows Server 0 02-05-2006 11:40 PM
Storage Management IO control Jacky Ko Windows Vista Drivers 0 09-14-2005 05:24 AM
Identity Management - User Storage Provisioning Matt Mencel Active Directory 2 04-05-2005 02:44 PM
Windows Removable Storage Management Nich Windows Server 1 07-21-2004 08:00 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59