How to delete a registry key with vbs
This article introduces the knowledge of "how to use vbs to delete registry keys". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
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 = "DWORDValueName" strExpandedStringValueName = "ExpandedStringValueName" strMultiStringValueName = "MultiStringValueName" strStringValueName = "StringValueName" 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!] = -" how to use vbs to delete registry keys "ends here. Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!