Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Create a Shadow Copy Storage AreaContent of Create a Shadow Copy Storage Area.vbsMD5 Hash: 4FB5AB796446F754E765DD7D81BEACA7 |
||
' Description: Creates a shadow copy storage area -- on drive E -- for storing shadow copies of drive C. This script reserves 130,023,424 bytes of storage space for the shadow copies.
Const VOLUME = "C:\" Const DIFFERENTIAL_VOLUME = "E:\" Const MAXIMUM_SPACE = 130023424 strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set objShadowStorage = objWMIService.Get("Win32_ShadowStorage") errResult = objShadowStorage.Create(VOLUME, DIFFERENTIAL_VOLUME, MAXIMUM_SPACE) | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |