Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Connect / Disconnect WiFi and Hibernate
#3
(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.
Reply


Messages In This Thread
Connect / Disconnect WiFi and Hibernate - by Pete - 08-20-2024, 02:57 AM
RE: Disconnect WiFi - by SMcNeill - 08-20-2024, 03:38 AM
RE: Disconnect WiFi - by Pete - 08-20-2024, 04:58 AM
RE: Disconnect WiFi - by SpriggsySpriggs - 08-20-2024, 11:58 AM
RE: Disconnect WiFi - by Pete - 08-20-2024, 04:08 PM
RE: Disconnect WiFi - by SpriggsySpriggs - 08-20-2024, 05:30 PM
RE: Disconnect WiFi - by Pete - 08-21-2024, 12:05 AM
RE: Disconnect WiFi - by SMcNeill - 08-21-2024, 03:53 AM
RE: Disconnect WiFi - by Pete - 08-21-2024, 04:53 AM



Users browsing this thread: 1 Guest(s)