0

Erreur:Enter-PSSession ne fonctionne pas, le port du pare-feu 5985 est ouvert

Enter-PSSession : Connecting to remote server sadcm0000081 failed with the following error message : WinRM cannot 
complete the operation. Verify that the specified computer name is valid, that the computer is accessible over the 
network, and that a firewall exception for the WinRM service is enabled and allows access from this computer. By 
default, the WinRM firewall exception for public profiles limits access to remote computers within the same local 
subnet. For more information, see the about_Remote_Troubleshooting Help topic. 
At line:1 char:1 
+ Enter-PSSession -ComputerName sadcm0000081 
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    + CategoryInfo   : InvalidArgument: (sadcm0000081:String) [Enter-PSSession], PSRemotingTransportException 
    + FullyQualifiedErrorId : CreateRemoteRunspaceFailed 

Test-WSN Sortie:

Test-Wsman : <f:WSManFault xmlns:f="http://schemas.microsoft.com/wbem/wsman/1/wsmanfault" Code="2150859046" Machine="SADCM0000078.adc 
.corpintra.net"><f:Message>WinRM cannot complete the operation. Verify that the specified computer name is valid, that the computer i 
s accessible over the network, and that a firewall exception for the WinRM service is enabled and allows access from this computer. B 
y default, the WinRM firewall exception for public profiles limits access to remote computers within the same local subnet. </f:Messa 
ge></f:WSManFault> 
At line:1 char:1 
+ Test-Wsman -ComputerName sadcm0000081 
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    + CategoryInfo   : InvalidOperation: (sadcm0000081:String) [Test-WSMan], InvalidOperationException 
    + FullyQualifiedErrorId : WsManError,Microsoft.WSMan.Management.TestWSManCommand 
+0

Peut être un DNS? nslookup pour sadcm0000081 fonctionne-t-il? pourriez-vous essayer avec IP? et vérifiez si telnet sadcm0000081 5985 plus important si PS Remoting est activé sur le système. – VGSandz

Répondre

0

Essayez d'abord à la course Powershell Enable-PSRemoting avec une console d'administration . Ensuite, regardez les règles du pare-feu Windows de l'administration à distance.