Hello there,
Make sure that No firewall is blocking the connection.Check if the account you are using is member of local administrators group of the server where you want launch the adprep.
The below thread discusses the same issue and you can try out some troubleshooting steps from this and see if that helps you to sort the Issue.
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer--