Run CMD as Network service account and execute commands without interaction
Posted: 16 Apr 2020 09:00
Hi team,
i have a requirement that need to run the CMD as network service account and executes few commands automatically without interacting with the CMD.
i used below command which launches cmd as network service account but after the i need the run the commands on the cmd window manually, but i need these commands to run without my interaction.
PsExec.exe -i -u “NT AUTHORITY\NETWORK SERVICE” cmd
i have a requirement that need to run the CMD as network service account and executes few commands automatically without interacting with the CMD.
i used below command which launches cmd as network service account but after the i need the run the commands on the cmd window manually, but i need these commands to run without my interaction.
PsExec.exe -i -u “NT AUTHORITY\NETWORK SERVICE” cmd