I want to use remote powershell and invoke-command in a domain environment. For this, I made the necessary settings on both the client and host computers. However, when I want to run a simple command such as
invoke-command {whoami} -ComputerName HOST -Credential username
I get the error "Connecting to remote server HOST failed with the following error message: WS-Management cannot process the request. The operation failed because of an HTTP error."
What could be the cause of the problem and possible solutions?
I tried manually enabling the Computer Configuration > Administrative Templates > Windows Components > Windows Remote Management
settings and creating firewall inbound rules, but I did not get any results.
umut373 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.