![]() Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Delete All Shadow Copies on a Computer
|
||
' Description: Deletes all the shadow copies stored on a server.
strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") ) Set colItems = objWMIService.ExecQuery("Select * From Win32_ShadowCopy") For Each objItem in colItems objItem.Delete_ Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |