Loading |
VBScript |
JavaScript |
Powershell |
Search Options: List All Shadow Copy Storage Areas on a ComputerContent of List All Shadow Copy Storage Areas on a Computer.vbsMD5 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 :: |