Loading
Scriptbox
 VBScript Links 
 About VBscript 
 JavaScript Links 
 About JavaScript 
 Powershell Links 
 PSCRIPT the Script Launcher 
 PowerShell Shortcut Keys 
 About Powershell 
     VBScript
    JavaScript
    Powershell
Disclaimer
Contact
Latest 10 Scripts
Script search
  :: { Category } :: 0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ
         

Search Options:  List  All  Shadow  Copy  Storage  Areas  on  a  Computer  

 Content of List All Shadow Copy Storage Areas on a Computer.vbs
MD5 Hash: 429A3BDA0B003E3DB1216D1EA3E603A2
' Description: Retrieves a list of all the shadow copy storage areas on a computer, as well as the properties of each storage area.


strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colItems = objWMIService.ExecQuery("Select * from Win32_ShadowStorage")

For Each objItem in colItems
Wscript.Echo "Volume: " & objItem.Volume
Wscript.Echo "Allocated space: " & objItem.AllocatedSpace
Wscript.Echo "Differential volume: " & objItem.DiffVolume
Wscript.Echo "Maximum space: " & objItem.MaxSpace
Wscript.Echo "Used space: " & objItem.UsedSpace
Wscript.Echo
Next

   © 2008 - 2013 Boris Toll      :: Scripts available: 6.481 ::      :: scriptbox.toll.at ::      :: powered by www.toll.at ::
  Google Entries:n/a
  Yahoo Backlinks:n/a
  Live Backlinks:n/a
  del.icio.us Bookmarks:n/a
  Technorati Links:n/a