vbs删除注册表项的代码
时间:2020-07-21 10:54 来源/作者:VBS代码网
-
WScript.Echo "Enabling Kerberos Logging..."
-
const HKEY_LOCAL_MACHINE = &H80000002
-
strComputer = "."
-
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &_
-
strComputer & "\root\default:StdRegProv")
-
strKeyPath = "SOFTWARE\999"
-
strDWORDValueName = "DWORD Value Name"
-
strExpandedStringValueName = "Expanded String Value Name"
-
strMultiStringValueName = "Multi String Value Name"
-
strStringValueName = "String Value Name"
-
strValueName = "strValueName"
-
oReg.DeleteValue HKEY_LOCAL_MACHINE,strKeyPath,strDWORDValueName
-
oReg.DeleteValue HKEY_LOCAL_MACHINE,strKeyPath,strExpandedStringValueName
-
oReg.DeleteValue HKEY_LOCAL_MACHINE,strKeyPath,strMultiStringValueName
-
oReg.DeleteValue HKEY_LOCAL_MACHINE,strKeyPath,StringValueName
-
oReg.DeleteValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName
-
WScript.Echo "-=[Complete!]=-"
相关文章
热门资讯