Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use vbs to realize the script of registry switch

Shulou Source: shulou.com Published: 2022-06-03 08:36:05 09月12日 Update

This article mainly introduces how to use vbs to achieve the registry switch script, the article introduces in great detail, has a certain reference value, interested friends must read!

Dim WSHShell,r,M,v,t,g,i On Error Resume Next Set WSHShell=WScript.CreateObject ("WScript.Shell") v = "HKCU\ Software\ Microsoft\ Windows\ CurrentVersion\ Policies\ System\ DisableRegistryTools" I = "REG_DWORD" t = "registry switch" r=WSHShell.RegRead (v) gloss1 If (raster 1) Then gend0 If gend1 Then WSHShell.RegWrite v M=MsgBox ("do you want to restrict the registry editor?", 4) Else WSHShell.RegDelete v M=MsgBox ("do you want to lift the registry editor restrictions?", 4 T) the above End If is all the contents of the article "how to use vbs to implement the registry switch script" Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: Registry scripts content articles editors restrictions values interests guys buddies more knowledge industry information information channels channels references help Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB MySQL OPPO Reno Redmi Xiaomi