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
Run CMD as Network service account and execute commands without interaction
Moderator: DosItHelp
-
- Posts: 1
- Joined: 16 Apr 2020 08:50
Re: Run CMD as Network service account and execute commands without interaction
Batch can't interact with the graphical user interface. It can't emulate key strokes and it can't emulate mouse input.
So, either the tool you call remotely has a command line interface that allows to pass all the necessary data as arguments when you call it, or you're likely out of luck.
Steffen
So, either the tool you call remotely has a command line interface that allows to pass all the necessary data as arguments when you call it, or you're likely out of luck.
Steffen
Re: Run CMD as Network service account and execute commands without interaction
Use a scheduled task?