2012-09-20 164 views
1

当运行以下命令在PowerShell中,如果登录为本地管理员,或者从远程计算机上运行,​​并通过本地管理员帐户凭据只适用:PowerShell用户授权

schtasks /s (machine) /u (administrator) /p (the password) /tn (the task I'm interested in getting information on) 

从远程计算机回信是

Error: Access is Denied.

当登录到本机具有比本地管理员回答的回复是

Error: The system cannot find the pat specified.

0以外的帐户

我想得到任何一种方法的工作。

感谢

回答

0

如果你想运行,你必须使用

schtasks /run ... 

否则,你会得到system cannot find the path specified错误的任务。另外,作为非管理员用户,您无权访问在另一个用户的上下文中运行的计划任务。您必须将任务更改为以您自己的用户身份运行,或者继续使用管理员凭据进行身份验证。