Ascii2 Posted December 3, 2008 Posted December 3, 2008 (edited) Windows 2000/XP/Server 2003 family operating systems have a "Users and Passwords" (2000) or "User Accounts" (XP/Server 2003) control panel (will be referred to as "accounts control panel") that looks like the images I have attached to this post.At command line, the control panel may be run using:rundll32.exe %SystemRoot%\system32\netplwiz.dll,UsersRunDllWindows XP and Windows Server 2003 do not have the classic "User Accounts" available by default in the Control Panel folder.Windows 2000/XP/Server 2003 all have the accounts control panel CLSID defined in the registry at:[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{7A9D77BD-5403-11d2-8785-2E0420524153}]I noticed that Windows 2000 operating systems have a NameSpace entry for the accounts control panel, but is not present in Windows XP/Server 2003. The entry on Windows 2000 is the following:[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\{7A9D77BD-5403-11d2-8785-2E0420524153}]@="{7A9D77BD-5403-11d2-8785-2E0420524153}"I attempted to add the NameSpace entry from Windows 2000 to Windows XP and the accounts control panel appeared in the Control Panel folder (Web Content in folders was disabled). On reboot, however, the control panel disappeared. It seems that sometime during reboot Windows XP deleted the added NameSpace entry in the registry.I then researched on the Microsoft MSDN website for information about adding a control panel to the Control Panel folder. I found the folllowing pages of documentation:http://msdn.microsoft.com/en-us/library/cc144195(VS.85).aspxhttp://msdn.microsoft.com/en-us/library/cc144183(VS.85).aspxhttp://msdn.microsoft.com/en-us/library/bb776844(VS.85).aspxThe documentation applies to Windows 2000/XP/Server 2003/Vista. Unforunately, it seems that the docuentation does not describe how to add a control panel accessed via DLL entry point.How can the accounts control panel be added to the Control Panel folder in Windows XP/Server 2003 permanently (or until manually removed) for both classic folder view and Web folder view (categories in Control Panel folder)? Edited December 3, 2008 by Ascii2
Kelsenellenelvian Posted December 3, 2008 Posted December 3, 2008 (edited) [Version]Signature=$Windows NT$[defaultinstall]OptionDesc = "User Acounts2 Enabler for CPL"Tip = "User2 CPL"Modes = 0,1,2,3AddReg = User[User]HKCR,"CLSID\%CLSID%"HKCR,"CLSID\%CLSID%",,,"User Accounts 2"HKCR,"CLSID\%CLSID%","InfoTip",,"Win 2K style User Accounts."HKCR,"CLSID\%CLSID%\DefaultIcon",,,"%11%\system32\shell32.dll,-48"HKCR,"CLSID\%CLSID%","{305CA226-D286-468e-B848-2B2E8E697B74} 2",0x10001,09,00,00,00HKCR,"CLSID\%CLSID%\ShellFolder","Attributes",0x10001,00,00,00,00HKCR,"CLSID\%CLSID%\Shell\Open"HKCR,"CLSID\%CLSID%\Shell\Open\command",,,"Control Userpasswords2"HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\%CLSID%"HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\%CLSID%",,,"Add Win 2K Style User Accounts Controls"[Strings]CLSID ="{18646F66-8C25-0000-BEE4-C2CE1298969D}"Save as Whatever.inf Right click then choose install.Reg formatWindows Registry Editor Version 5.00[HKEY_CLASSES_ROOT\CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969D}]@="User Accounts""InfoTip"="Starts The Windows 2000 style User Accounts dialog"[HKEY_CLASSES_ROOT\CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969D}\DefaultIcon]@="%SystemRoot%\\\\System32\\\\netplwiz.dll,0"[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 Userpasswords to Control Panel" Edited December 3, 2008 by Kelsenellenelvian
Ascii2 Posted December 4, 2008 Author Posted December 4, 2008 (edited) I shall test the scripts provided by Kelsenellenelvian later today.The scripts seem to do what I what I tried to do with a few notable exceptions: A new CLSID is created and populated with values instead of using the pre-existing accounts control panel CLSID key and a different open command is used to open the control panel (which I guess will calls the RUNDLL32 command).I wonder if the scripts would result in the same problem I have been receiving (control panel NameSpace being purged). Edited December 4, 2008 by Ascii2
Kelsenellenelvian Posted December 4, 2008 Posted December 4, 2008 Both have been tested literally THOUSANDS of times.The .inf is from my CPL addon and the .reg file is straight from here and the Convert Windows 2003 to a workstation guide.
Ascii2 Posted December 5, 2008 Author Posted December 5, 2008 (edited) I have tested the scripts provided by Kelsenellenelvian and have found them to work.After concluding the scripts to work, I attempted to determine why what I had previously attempted failed.I believe to understand why the failure occurred. Windows seems to scan for the "{7A9D77BD-5403-11d2-8785-2E0420524153}" NameSpace key under [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace] and deletes any instance of it during the enabling or disabling of Web content in folders, or during reboot of the computer (possibly logging off and then logging in may be sufficient; I had not tested it). It seems that Microsoft Corporation did not want the older-style User Accounts control panel available in the Control Panel folder.This means that unless a way to prevent Windows XP/Server 2003 from deleting the "{7A9D77BD-5403-11d2-8785-2E0420524153}" NameSpace key, a "{7A9D77BD-5403-11d2-8785-2E0420524153}" NameSpace key cannot be used to permanently add the accounts control panel to Control Panel. To workaround the problem, a new CLSID may be defined (or other existing CLSID modified) exhibiting the behavior of the "{7A9D77BD-5403-11d2-8785-2E0420524153}" CLSID, then add it to the Control Panel NameSpace. That is what Kelsenellenelvian's posted scripts do (although imperfectly). Note that when "Control Userpasswords2" is run, Control.exe should run "rundll32.exe %SystemRoot%\system32\netplwiz.dll,UsersRunDll".I thank Kelsenellenelvian for his assistance in this thread. Edited December 15, 2008 by Ascii2
wk chuah Posted May 14, 2014 Posted May 14, 2014 Hi Kelsenellenelvian,I'm facing similar issue at window server 2003 R2 std ed.Are both scripts applicable or any changes on coding needed?Thanks in advanced...
wk chuah Posted May 14, 2014 Posted May 14, 2014 Hi Kelsenellenelvian,I'm facing similar issue at window server 2003 R2 std ed.Are both scripts applicable or any changes on coding needed?Thanks in advanced...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now