以下内容对我没有起作用 -
所有我需要做的就是在远程机器上运行msiexec。我假设运行脚本的用户将具备访问远程机器所需的权限。
即使Computername指向本地计算机(而使用相同登录用户运行msiexec时工作正常,因此看起来不像是权限问题),脚本也无法正常工作-我已确保WinRM服务正在运行,并且还禁用了防火墙以检查是否造成了问题,但迄今为止没有任何运气。我错过了什么?
这是完整的错误消息,但它几乎列出了所有可能性-
%WINDIR%\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -Noninteractive -command "& Invoke-Command -ComputerName "Spider_LT_86" -ScriptBlock { msiexec.exe /i "D:\3PDInstallers\ETLBackgroundWorkerSetup.msi" /qn /l*vx "D:\3PDInstallers\logs" }"
所有我需要做的就是在远程机器上运行msiexec。我假设运行脚本的用户将具备访问远程机器所需的权限。
即使Computername指向本地计算机(而使用相同登录用户运行msiexec时工作正常,因此看起来不像是权限问题),脚本也无法正常工作-我已确保WinRM服务正在运行,并且还禁用了防火墙以检查是否造成了问题,但迄今为止没有任何运气。我错过了什么?
这是完整的错误消息,但它几乎列出了所有可能性-
Connecting to remote server failed with the following error message : WinRM cannot process the request. The following error occured while using
Kerberos authentication: The network path was not found.
Possible causes are:
-The user name or password specified are invalid.
-Kerberos is used when no authentication method and no user name are specified.
-Kerberos accepts domain user names, but not local user names.
-The Service Principal Name (SPN) for the remote computer name and port does not exist.
-The client and remote computers are in different domains and there is no trust between the two domains.
After checking for the above issues, try the following:
-Check the Event Viewer for events related to authentication.
-Change the authentication method; add the destination computer to the WinRM TrustedHosts configuration setting or use HTTPS transport.
Note that computers in the TrustedHosts list might not be authenticated.
-For more information about WinRM configuration, run the following command: winrm help config. For more information, see the about_Remote_Troubleshooting He
lp topic.
+ CategoryInfo : OpenError: (:) [], PSRemotingTransportException
+ FullyQualifiedErrorId : PSSessionStateBroken
更新:
当我只使用用户名和 -Credentials 时,它会弹出一个登录窗口来获取我的密码,然后在输入密码后,会给出以下错误提示-该用户确实具有管理员访问权限,所以我不知道问题出在哪里。
[spider_lt_86] 连接到远程服务器失败,错误信息如下:拒绝访问。有关更多信息,请参见 about_Remote_Troubleshooting 帮助主题。 + CategoryInfo : OpenError: (:) [], PSRemotingTransportException + FullyQualifiedErrorId : PSSessionStateBroken