How do I launch the “Manage another account” page from the “User Accounts” section in the control panel from a C# application
-
07-07-2021 - |
Question
How do I launch the "Manage another account" page from the "User Accounts" section in the control panel from a C# application?
I can currently launch the "User Accounts" app by using the command:
System.Diagnostics.Process.Start("control.exe", "nusrmgr.cpl");
but I would like to avoid having to click on the "manage another account" link withing this.
La solution
You can use to get the users:
Win + R > control userpasswords2
Start > Search > netplwiz
Update:
You can also call it with the following commands but i can't find how to call the 'Control Panel\User Accounts and Family Safety\User Accounts\Manage Accounts' directly other then the previously stated commands.
User Accounts = control /name Microsoft.UserAccounts
User Account Control Settings = UserAccountControlSettings
Sources:
The Definitive Windows 7 Commands Guide
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow