Environment = Windows Server 2008 R2
Scheduled task that runs as the system account
Target is a batch file example.bat
When the task scheduler runs the scheduled task it invokes cmd.exe with the /K switch that leaves the command line open and all child processes that are spawned by example.bat open.
Why is it using the /K switch? How can I get the task scheduler to spawn the task with the /C switch so it doesn’t leave several orphaned and open processes each time it runs?