troubleshooting Question

schtasks to run in .bat file - questions on "Start the task only if the computer is idle for"

Avatar of hypercube
hypercubeFlag for United States of America asked on
Windows 10* task scheduler
5 Comments1 Solution22 ViewsLast Modified:
As I've already done recently, I'm again setting up a GPO to run a startup script to generate a task in Task Scheduler.  
Everything seems to be working fine except the command line command for making the Scheduled Task.
Here it is:
schtasks /create /TN "idle logoff" /RU "NT AUTHORITY\SYSTEM" /IT /RL HIGHEST /SC ONIDLE /I 120 /TR C:\Users\Public\Scripts\logoff.bat

Open in new window

Conditions Tab not setNow, the /I should set the check box for Start the task only if the computer is idle for: and add 120 minutes in the pulldown box, right?
But, it doesn't.
Also, I'd like to set the Wait for idle for: 16 minutes but there appears to be no opportunity using the schtasks command at all.  Well, I can do without that....

Any insights?
Join our community to see this answer!
Unlock 1 Answer and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros