计算机管理员运行命令,如何从命令行在Windows7上以管理员身份运行命令?

我需要在

Windows7上以管理员身份远程运行tscon.exe 0 / dest:console remote = not manual.更多信息在这里

How to use tscon on Windows7?

我做了我的研究

>选项1 – runas

对于计算机酸奶的用户root(无密码)工作

C:\>runas /user:yogurt\root cmd

Enter the password for yogurt\root:

Attempting to start cmd as user "yogurt\root" ...

对于用户管理员(我认为密码也是空白)在计算机上酸奶不起作用.我被要求输入密码,点击输入和

C:\>runas /user:yogurt\administrator cmd

Enter the password for yogurt\administrator:

Attempting to start cmd as user "yogurt\administrator" ...

RUNAS ERROR: Unable to run - cmd

1327: logon failure: user account restriction. Possible reasons are blank passwo

rds not allowed,logon hour restrictions,or a policy restriction has been enforced.

>选项2 – 设置批处理文件的属性,使其始终以管理员身份运行.在“兼容级别”下,“权限级别”部分对我来说是灰色的.所以我无法勾选复选框以管理员身份运行此程序

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值