I'm trying to set up a PSRemoting session to a remote computer, but I keep getting an 'Access is denied' error. I'm using PowerShell as an administrator, and I've ensured that the remote computer's Group Policy allows remote connections using WinRM. What am I missing? Any help would be appreciated!
4 Answers
It sounds like you might not have the necessary permissions for the user context you're running under, even if WinRM is enabled on the remote computer. It's key to check that your user has rights for WinRM remote connections. Make sure to look into that!
Thanks for the tip! I'm still figuring out the details, so I appreciate the help.
Consider checking your execution policy too. Running 'Set-ExecutionPolicy Unrestricted' might help clear things up, although it's a broader approach to manage script execution.
Running PowerShell as an admin on your local machine doesn’t impact the remote session, so be cautious with that. Also, we need more info: Are both machines domain-joined? What's your account type? What command are you using exactly? Having this info can really help diagnose the problem.
Both devices are domain-joined. I'm using 'enter-PSSession
Make sure you're running the proper configuration on the remote machine. Check by running 'winrm quickconfig' directly on that machine. Sometimes group policy settings might not apply as expected, so this could bring up any misconfigurations.
I actually ran that already on the remote machine. Thanks for confirming!

Absolutely. There could be various issues—definitely check the permissions!