cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2974
Views
0
Helpful
0
Replies

Issues with Windows Powershell

NET_RANGER
Level 1
Level 1

Hello comunity. I'm using Windows Powershell remote services (winrm, winrs) and getting 504 error every time as executing commands, like invoke-command, enter-pssesion and so forth. I'm got know, that this error means, that's something wrong with port of switch (2960 are using) or gateway (stack with 4 3750 switches), to witch the switch, to witch I'm connected, is connected. Techologies on switch port: STP, VLAN, switchport security. My questions is - what shall I alter on switches for unblocking traffic wich coming out from Windows remote services?

Full text of errors:

invoke-command -computername mypc -scriptblock {test-path c:\windows} and I got this: 

[mypc] Failure to connect to a remote server mypc. Error message: the WinRM client received an HTTP status code of "504" from the remote WS-Management service. Check "about_Remote_Troubleshooting" for details.
    + CategoryInfo          : OpenError: (wsvt-22664:String) [], PSRemotingTransportException
    + FullyQualifiedErrorId : -2144108273,PSSessionStateBroken

On my PC I'm perfoming this:

PS C:\Users\adm> Test-WsMan
wsmid           : http://schemas.dmtf.org/wbem/
ProtocolVersion : http://schemas.dmtf.org/wbem/
ProductVendor   : Microsoft Corporation
ProductVersion  : OS: 0.0.0 SP: 0.0 Stack: 3.0

But on another computer I got this:

Test-WsMan : <f:WSManFault xmlns:f="http://schemas.microsoft.com/wbem/wsman/1/wsmanfault" Code="2150859023" Machine="mypc.mydomain.com"><f:Message>the WinRM client received an HTTP status code of "504" from the remote WS-Management service. </f:Message></f:WSManFault>
line:1 char:1
+ Test-WsMan -ComputerName mypc
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (wsvt-22664:String) [Test-WSMan], InvalidOperationException
    + FullyQualifiedErrorId : WsManError,Microsoft.WSMan.Management.TestWSManCommand

PS: I don't sure, where I should post this question in, so don't do not judge me strictly if I'm placed this question in the wrong section.

 

0 Replies 0