I'm trying to execute the `Set-RDCertificate` command from a remote machine, targeting a server named ServerABC. The command works perfectly when I run it directly on ServerABC, but when I attempt to run it using `Invoke-Command`, I encounter an error that says, "A Remote Desktop Services deployment does not exist on ServerABC." I made sure to use the same credentials, and I even tried adding the `-ConnectionBroker` parameter, but that didn't resolve the issue. Can anyone help with how to run this command successfully from a remote server? Thanks!
2 Answers
It sounds like you might be dealing with a double hop issue. When you try to invoke commands remotely, sometimes the necessary Active Directory authentication can't happen. Make sure your setup allows for this or explore using Kerberos authentication to get around it.
Have you considered dropping the `Invoke-Command` altogether if you're using the `-ConnectionBroker` parameter? That might simplify things and help you run the command directly without hitting those Remote Desktop Service errors.
Related Questions
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically