Jump to content

Adding User Accounts Control Panel on Windows XP/Server 2003


Recommended Posts

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,UsersRunDll

Windows 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:

The 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)?

post-119948-1228342604_thumb.png

post-119948-1228342609_thumb.png

Edited by Ascii2
Link to comment
Share on other sites


[Version]
Signature=$Windows NT$

[defaultinstall]
OptionDesc = "User Acounts2 Enabler for CPL"
Tip = "User2 CPL"
Modes = 0,1,2,3
AddReg = 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,00
HKCR,"CLSID\%CLSID%\ShellFolder","Attributes",0x10001,00,00,00,00
HKCR,"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 format

Windows 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 by Kelsenellenelvian
Link to comment
Share on other sites

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 by Ascii2
Link to comment
Share on other sites

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 by Ascii2
Link to comment
Share on other sites

  • 5 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...