【问题标题】:How do I launch the "Manage another account" page from the "User Accounts" section in the control panel from a C# application如何从 C# 应用程序的控制面板中的“用户帐户”部分启动“管理另一个帐户”页面
【发布时间】:2012-10-16 12:50:17
【问题描述】:

如何从 C# 应用程序的控制面板的“用户帐户”部分启动“管理另一个帐户”页面?

我目前可以使用以下命令启动“用户帐户”应用:

System.Diagnostics.Process.Start("control.exe", "nusrmgr.cpl");

但我想避免点击“管理另一个帐户”链接。

【问题讨论】:

    标签: c# user-accounts process.start controlpanel


    【解决方案1】:

    你可以用来获取用户:

    Win + R > control userpasswords2
    
    Start > Search > netplwiz
    

    更新:

    您也可以使用以下命令调用它,但我找不到如何直接调用“控制面板\用户帐户和家庭安全\用户帐户\管理帐户”而不是以前规定的命令。

    User Accounts = control /name Microsoft.UserAccounts
    
    User Account Control Settings = UserAccountControlSettings
    

    来源:

    The Definitive Windows 7 Commands Guide

    Start | Run Commands for Windows XP, Vista and Windows 7:

    A List of Run Commands for Windows 7

    【讨论】:

    • 这不是控制面板显示的确切窗口,但是...“netplwiz”命令成功了!谢谢!
    猜你喜欢
    • 2021-07-23
    • 1970-01-01
    • 2021-04-15
    • 2013-05-01
    • 1970-01-01
    • 2015-07-23
    • 2023-04-08
    • 1970-01-01
    • 2013-03-10
    相关资源
    最近更新 更多