![]() Loading |
| VBScript |
| JavaScript |
| Powershell |
Search Options: Delete a Registry Key
|
||
|
' Description: Uses WMI to delete the registry key HKLM\SOFTWARE\System Admin Scripting Guide.
Const HKEY_LOCAL_MACHINE = &H80000002 strComputer = "." Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _ strComputer & "\root\default:StdRegProv") strKeyPath = "SOFTWARE\System Admin Scripting Guide" oReg.DeleteKey HKEY_LOCAL_MACHINE, strKeyPath | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: | ||