Rad*_*dek 6 windows permissions windows-7 runas
我需要以管理员身份tscon.exe 0 /dest:console远程运行=不是在 Windows7 上手动运行。更多信息在这里如何在 Windows7 上使用 tscon?
我做了我的研究和
对于计算机上的用户root(无密码)酸奶作品
C:\>runas /user:yogurt\root cmd
Enter the password for yogurt\root:
Attempting to start cmd as user "yogurt\root" ...
Run Code Online (Sandbox Code Playgroud)
对于计算机上的用户管理员(我认为密码也为空),酸奶不起作用。我被要求输入密码,按回车键
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.
Run Code Online (Sandbox Code Playgroud)
Run this program as an administrator您可能会发现本地管理员帐户实际上已被禁用。查看计算机管理中的本地用户和组。
无论如何,我不建议启用该帐户,特别是如果它确实有一个空白密码。
以“管理员身份”运行程序(如在右键单击菜单中)和以RunAs管理员身份运行不是一回事:
以“管理员身份”运行程序意味着该程序仍会在您的用户帐户(即调用该程序的人)的上下文中运行,但使用包含Administrators组成员身份的修改后的访问令牌。以这种方式启动的进程将在任务管理器中显示为您拥有。
使用RunAs管理员帐户确实会尝试调用管理员帐户下的程序。以这种方式启动的进程将Administrator在任务管理器中显示为归所有。
编辑:虽然上述内容是相关的,但我认为真正的问题可能与从 Windows Vista/Server 2008 开始的称为Session 0 Isolation 的东西有关。
| 归档时间: |
|
| 查看次数: |
38869 次 |
| 最近记录: |