Jump to content

Recommended Posts

Posted

Hi Guys,

 

I am new here and think the forum is great. You have helped me out many times in the past, so I wonder if you can help me along with this.

 

We have over 300 laptops in school and we require them to shutdown when they are placed on charge back in the cabinets. I have set up a GPO to shutdown when the lid is closed and plugged in but this doesn't work. It seems to only trigger a shutdown when it has been plugged in and then the lid closed not if the lid is closed prior to being plugged in.

 

I then decided to take a look at 'task scheduler' to trigger a task at disconnection of a user session with connection from local computer option chosen. The task would start 'shutdown /s /f' with the condition that the computer is on AC power. This task has a delay of 2 minutes. So far I have been unable to get this to work with or without AC plugged in.

 

Any help or suggestions would be greatly appreciated.

 

Leon

Posted

I have set so that none of the computers are placed into a sleep/hibernation state via GPO. We found this to cause havoc on GPO application so we disabled it domain wide.

 

I have been thinking whether the conditions are still not being met as the user is logging off before the AC is plugged in. Therefore not calling the task? But even thinking that it still doesn't when its on AC. hmmm? :s

Posted

You've disabled sleep/hibernation, is that automatic sleep (timeout), buttons/lid catch? Or can a user put the laptop to sleep.

 

also is the scheduled task set to run as system? Is the task set to run if a user is logged in or not? I'd still set the task to wake up the PC to run the task. Wake up will only work if the laptop is in sleep.

 

Have you run the task manually (just to make sure it works) in Windows 7/8 the schedule will have a last run result as well, (if it ever ran)

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...