Execute a Powershell script on a remote computer using PSExec
Use the following command
psexec \\<computer_id> -i -u <username> -p <password> powerShell <path_to_script> { <paramater_1> <parameter_2> <…> }
Source: http://stackoverflow.com/questions/1786185/run-powershell-scripts-on-remote-pc
Was this post helpful?
Let us know if you liked the post. That’s the only way we can improve.