【发布时间】:2016-04-04 15:11:45
【问题描述】:
如果我们假设服务必须以管理员身份运行,是否可以使用命令行安装它(sc.exe、powershell - 全部可用)?
奖励:可以不提供密码吗?
【问题讨论】:
标签: powershell windows-services windows-server-2012
如果我们假设服务必须以管理员身份运行,是否可以使用命令行安装它(sc.exe、powershell - 全部可用)?
奖励:可以不提供密码吗?
【问题讨论】:
标签: powershell windows-services windows-server-2012
sc.exe config 'servicename-notdisplayname' obj='\Administrator' password='secret'
仍然无法避免密码,因为在启动服务时需要它。
【讨论】: