How to use vbs to realize the script of registry switch
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!