Showing posts with label ControlPanel. Show all posts
Showing posts with label ControlPanel. Show all posts

Saturday, December 20, 2008

Restore safely remove hardware icon

---open Notepad > type & save the below lines with a filename xxx.vbs & run it----

set shell=createobject("wscript.shell")
shell.run "RunDll32.exe shell32.dll,Control_RunDLL hotplug.dll"

Restore Access to Control Panel

---open Notepad > type & save the below lines with a filename xxx.vbs & run it----

'fixnocontrolpanel.vbs - Restores Control Panel after lockout with TweakUI or other utility
'© Doug Knox - 10/28/2001
'This code may be freely distributed/modified

'Downloaded from www.dougknox.com


Option Explicit
On Error Resume Next
'Declare variables
Dim WSHShell, MyBox, p1, t
Dim jobfunc
'Set the Windows Script Host Shell and assign values to variables
Set WSHShell = WScript.CreateObject("WScript.Shell")
p1 = "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoControlPanel"
'Describe the funtion of the script for a dialog box
jobfunc = "Control Panel has now been restored." & vbCR
jobfunc = jobfunc & "You may need to log off/log on for the " & vbCR
jobfunc = jobfunc & "change to take effect."
'This section writes the correct values to the Registry
WSHShell.RegDelete p1
t = "Confirmation"
MyBox = MsgBox (jobfunc, 4096, t)

Friday, December 19, 2008

Disable the Hardware Tab

---open Notepad > type & save below lines with a filename xxx.reg & run it----

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoHardwareTab"=dword:00000001

Reset control panel File Association

---open Notepad > type & save below lines with a filename xxx.reg & run it----

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.cpl]
@="cplfile"
"Generic"="system"

[HKEY_CLASSES_ROOT\.cpl\PersistentHandler]
@="{098f2470-bae0-11cd-b579-08002b30bfeb}"

[HKEY_CLASSES_ROOT\cplfile]
@="Control Panel extension"

[HKEY_CLASSES_ROOT\cplfile\shell]

[HKEY_CLASSES_ROOT\cplfile\shell\cplopen]
@="Open with Control Panel"

[HKEY_CLASSES_ROOT\cplfile\shell\cplopen\command]
@="rundll32.exe shell32.dll,Control_RunDLL %1,%*"

[HKEY_CLASSES_ROOT\cplfile\shell\runas]

[HKEY_CLASSES_ROOT\cplfile\shell\runas\command]
@="rundll32.exe shell32.dll,Control_RunDLLAsUser %1,%*"

Add UserPasswords2 To Control Panel

---open Notepad > type & save below lines with a filename xxx.reg & run it----

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969D}]
@="User Accounts 2"
"InfoTip"="Starts The Windows 2000 style User Accounts dialog"

[HKEY_CLASSES_ROOT\CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969D}\DefaultIcon]
@="%SystemRoot%\\\\System32\\\\nusrmgr.cpl,1"

[HKEY_CLASSES_ROOT\CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969D}\Shell]

[HKEY_CLASSES_ROOT\CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969D}\Shell\Open]

[HKEY_CLASSES_ROOT\CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969D}\Shell\Open\command]
@="Control Userpasswords2"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\{98641F47-8C25-4936-BEE4-C2CE1298969D}]
@="Add Userpasswords2 to Control Panel"