Psexec dcpromo action

Hi All. Any guidance would be greatly appreciated -
I’m trying to run psexec as another user to run dcpromo on a server.
First I’m copying psexec to the target machine then running
psexec -accepteula -h -u username -p password dcpromo.exe but I keep getting exit code 2 in the logs. But when I run the same command from the server manually it works. I’m also using secure parameters for the username/password but again when I enable logging and run the command manually it works fine.

Any suggestions?

Remember you are already running as a privileged user (Local System) as the agent so this may be part of the reason.