[MXL6270PJF] Connecting to remote server MXL6270PJF 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. Consult
the logs and documentation for the WS-Management service running on the destination, most commonly IIS or WinRM. If the destination is the WinRM service, run the following command on the destination to analyze and configure the WinRM service: “winrm
quickconfig”. For more information, see the about_Remote_Troubleshooting Help topic.
+ CategoryInfo : OpenError: (MXL6270PJF:String) , PSRemotingTransportException
+ FullyQualifiedErrorId : CannotConnect,PSSessionStateBroken
Hey Tony, That error you got means that powershell remoting may not be enabled on the computer you are trying to run the command on, if you go to that computer and run Enable-PSRemoting it makes security changes, firewall changes, and enables the WinRM service to use powershell remotely to it,
I found a way to run Enable-PSRemoting remotely by using the sysinternal tool PSEXEC and running the following command with it,
psexec \“ComputerName or IP Address” powershell.exe “enable-psremoting -force”
once PSRemoting is enabled on the computer, you can use Enter-PSSession and the Invoke-Command commandlets