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