Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - Powershell Script to extract drive information

Reply
 
Old 06-15-2008   #1 (permalink)
Don Murphy


 
 

Powershell Script to extract drive information

Is there a one line script for extracting information from Server
Manager --> Storage --> Disk Managet?

Total space space remaining for example?

What about the native Windoows 2008 backup console information?

Thanks,

Don Murphy




My System SpecsSystem Spec
Old 06-15-2008   #2 (permalink)
Marco Shaw [MVP]


 
 

Re: Powershell Script to extract drive information

Don Murphy wrote:
Quote:

> Is there a one line script for extracting information from Server
> Manager --> Storage --> Disk Managet?
>
> Total space space remaining for example?
>
> What about the native Windoows 2008 backup console information?
>
> Thanks,
>
> Don Murphy
>
>
>
Not sure if I follow. From the 2008 Server, you can do something like
this to get the freespace of a drive:

PS > get-wmiobject win32_logicaldisk|where {$_.drivetype -eq
"3"}|format-table -autosize deviceid,freespace,size

deviceid freespace size
-------- --------- ----
C: 1529516032 10482610176

PS >

I'm not so familiar with 2008's backup features, but there are some
PowerShell cmdlets that offer some features that may help you out:
http://richardsiddaway.spaces.live.c...E96!1006.entry

Marco

--
Microsoft MVP - Windows PowerShell
http://www.microsoft.com/mvp

PowerGadgets MVP
http://www.powergadgets.com/mvp

Blog:
http://marcoshaw.blogspot.com
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Extract Information from Virtual Hard Disk Virtual PC
script to extract and create contacts VB Script
Script to extract XML data VB Script
Extract information from web-page PowerShell
Script to extract username from path statement PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

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