Powershell无法获得会话

时间:2016-08-01 09:14:18

标签: powershell-v4.0

我正在尝试通过powershell运行一个命令,但它给了我以下错误。我的PowerShell版本是4.0,运行后

Enable-PSRemoting -force 

它给我的消息是

WinRM is already set up to receive requests on this computer.
WinRM is already set up for remote management on this computer.

错误信息如下。

[exec] WARNING: Not able to get a session, attempt 10 of 10
[exec] [DIDNARU01INA6.apac.SAS.com] Connecting to remote server DIDNARU01INA6.apac.SAS.com failed with the following error message : The client cannot connect to the destination specified in the request. Verify that the service on the destination is running and is accepting requests. C
[exec] At C:\Tetris\Install\Tools\Modules\Session.psm1:75 char:32
[exec] +             if($attempt -ge $attempts) {throw "$error"}

0 个答案:

没有答案