Skip to content

Run as specific user using ps exec

ps1
$psexec = "<PATH_TO>PSEXEC>\PsExec.exe"
$args = "-u domain\user -p password `"<PATH_TO_EXE>`" /accepteula"

start-process $psexec -ArgumentList $args -NoNewWindow