New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invoke-Command error message on localhost loopback #3874
Comments
This appears to be a security restriction by design on Windows. |
I am getting same error |
|
Does not work using "Run as Administrator." What elevated rights are required? |
Did you set remoting up? |
Well, you need to enlist the localhost (with its hostname) to use remoting.
(4) Activate Remoting with these commands:
(5) Test it
Note: I'am using this version: PS > $PSVersionTable
Name Value
---- -----
PSVersion 5.1.14393.2828
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.14393.2828
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1 |
Steps to reproduce
Invoke-Command -ComputerName localhost -ScriptBlock { dir }
Expected behavior
Directory contents are presented.
Actual behavior
If using the loopback adapter to localhost is prohibited unless elevated, the error message should include that information. It clearly knows the problem. Not sure of the implications on Linux.
Environment data
The text was updated successfully, but these errors were encountered: