Get the App
SLTechnology News&Howtos  ›  Development  › 

How to delete a registry key with vbs

Shulou Source: shulou.com Published: 2022-06-03 19:37:36 11月12日 Update

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!

Tags: Registry content more knowledge practicality achievement next dilemma reality situation article case editing website industry process high quality learning related output Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Microsoft MySQL Linux vpn