Blog Archive

Friday, December 11, 2009

Enable cmd / regedit xp

Enable cmd prompt in XP
Goto start > Run paste this

REG add HKCU\Software\Policies\Microsoft\Windows\System /v DisableCMD /t REG_DWORD /d 0 /f

Enable Regedit in XP
Goto start > Run paste this

REG add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System /v DisableRegistryTools /t REG_DWORD /d 0 /f


A Vbs script to enable regedit .Just save this code to a .vbs file

Dim Registry ManageRegedit() Sub ManageRegedit() Set Registry=WScript.CreateObject("wscript.shell") describe="Type 0 or 1 : " & VbCrLf &_ "[0] -> Enable Regedit." & VbCrLf &_ "[1] -> Disable Regedit." question=InputBox(describe, "Disable/Enable Regedit",0) Registry.RegWrite "HKCUSoftwareMicrosoftWindowsCurrentVersion" &_ "PoliciesSystemDisableRegistryTools",question,"REG_DWORD" If question=1 Then MsgBox "Registry is disabled.",VbInformation, "Disabled" Else If question=0 Then Msgbox "Registry is enabled.",VbInformation, "Enabled" Registry.RegDelete "HKCUSoftwareMicrosoftWindowsCurrentVersion" &_ "PoliciesSystemDisableRegistryTools" Else Msgbox "Input 0 or 1 only !",VbInformation, "Wrong Input" ManageRegedit() End If End If End Sub

0 comments:

Post a Comment

Followers