Jump to content

Recommended Posts

Posted

Morning,

 

Im in need of a little help. Iv made a GP for PC's to shutdown at 8PM with this bat file:

 

schtasks /create /F /sc Daily /mo 1 /St 20:00 /tn "PC Shutdown" /tr "Shutdown /s /f /t 05"

 

Put it onto my PC and came in this morning with it still on with this in the history:

 

Task Scheduler did not launch task "\PC Shutdown" because user "******$" was not logged on when the launching conditions were met. User Action: Ensure user is logged on or change the task definition to allow launching when user is logged off.

 

How do i make this run without the user been logged in. Eg Work for all users?

Posted

So, (This is were im going to make a tit of myself)

 

schtasks /create /F /sc Daily /mo 1 /St 20:00 /tn "PC Shutdown" /tr "Shutdown /s /f /t 05" /RU "SYSTEM" ?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...