【问题标题】:Windows Server 2012 - start up using Runas AdministratorWindows Server 2012 - 使用 Runas Administrator 启动
【发布时间】:2017-03-06 07:59:43
【问题描述】:

我需要通过运行“以管理员身份运行”来启动应用程序。一直在找命令行和工具,psexec.exe好像可以提供这个功能。

但是,我没有成功运行它。

psexec -u myowndomain\david123 -p myPassword1 "E:\Temp\StartUp.exe"

我不需要运行远程计算机。我只想在手动操作时模拟“以管理员身份运行”。

命令正确吗?谢谢。

【问题讨论】:

    标签: batch-file startup windows-server-2012


    【解决方案1】:

    有一个runas命令,你可以在那里阅读更多:RUNAS

    runas [{/profile | /noprofile}] [/env] [{/netonly | /savecred}] [/smartcard] [/showtrustlevels] [/trustlevel] /user: " "

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多