08-21-2024, 03:53 AM
(08-21-2024, 12:05 AM)Pete Wrote: Well, got it working!
I had to make a different path.
C:\Windows\System32\schtasks.exe /RUN /TN "Tasks\My Network Disconnect\Network Disconnect" - Didn't work.
C:\Windows\System32\schtasks.exe /RUN /TN " C:\Windows\System32\Tasks\My Network Disconnect\Network Disconnect" - Didn't work.
C:\Windows\System32\schtasks.exe /RUN /TN "\My Network Disconnect\Network Disconnect" - Worked!
No UAC to contend with by running it through the Task Schedular. Nice!
Pete
Edit: I updated the initial post. It now contains all the info, if I correctly recalled every step, to get this puppy working without UAC interference.
Try it with the full network path. For example, instead of just "C:/" :
"\\Desktop-ucgl6oi\c"
Though instead of "\\Desktop-ucgl6ol\", you'd use your own PC's identifier.