If you are trying to add a Configuration Manager Distribution Point remotely you may end up with issue:

WARNING: The self-signed certificate could not be created successfully

Validation of input parameters failed. Cannot Continue


Code example

If you take same code and run it locally on your Primary Site Server, then it works correctly but what is the problem then? The problem is that you haven’t enabled CredSSP on your site server and your admin PC. There are so many different posts in internet that explains the second hop scenario and I will not explain it in this but you can read it from here .

To fix this problem you need to run this command on you admin PC. Please change the DeletegateComputer parameter value

And this command on your Primary Site Server

To add the Distribution Point successfully remotely you need to execute the Invoke-Command like that

Happy Scripting 🙂