08-20-2024, 04:58 AM
(08-20-2024, 03:38 AM)SMcNeill Wrote: Did you click the "Run as Admin" tab for it?To the .exe I created, yes. Under the compatibility tab I checked the box Run as Administrator.
Something isn't right with the shortcut, as when I do give it UAC permission, it doesn't launch the task from the scheduler. I know the app works, and I know it is set up correctly in the Task Scheduler, because when I run it directly from the opened Task Scheduler pane, it works.
For fun, I made a shortcut of the task scheduler to the desktop. That simply refreshes all tasks in a command line, without UAC approval. That looked promising, so I changed the path to: C:\Windows\System32\schtasks.exe /RUN /TN "Tasks\My Network Disconnect\Network Disconnect"
So a command window flashes for a millisecond on the screen and closes. That means something is misconfigured somehow, in the shortcut. I hope it isn't that the file I made is a two word file, separated by a space, or the same of the file itself. The path is correct as written: Tasks\My Network Disconnect
Pete
Shoot first and shoot people who ask questions, later.