Jump to content

Recommended Posts

Posted

I have a GPO in place which shuts down all computers and laptops at 23:00 each night.

 

This works pretty well, however if a member of staff happens to be working from home in the evening it will still shutdown.

 

Is there any way of preventing the scheduled task from kicking in if not connected to the school network?

Posted

How does the GPO work?

 

If you do it by scheduled task script deployed via gpo you could do something like add a condition to ping an internal device and if it isn't available the task aborts?

Posted

There is a Option in the Task Conditions to Only Start the Task if the following Network Connection is available, ie your school one.

If the User Takes the Laptop home connects to there Wifi it will look for your School Network... not there cant run task.

  • Thanks 3
Posted
How does the GPO work?

 

If you do it by scheduled task script deployed via gpo you could do something like add a condition to ping an internal device and if it isn't available the task aborts?

 

I'd be interested in how that works!

 

Still having trouble with mine from this similar thread:

 

http://www.edugeek.net/forums/how-do-you-do/167285-shutting-down-machines-night.html

 

I tried the wait for idle settings and such, but if the machine is already shut down at night, it just does it in the morning when the students have just logged on!

 

Kol.

Posted
There is a Option in the Task Conditions to Only Start the Task if the following Network Connection is available, ie your school one.

If the User Takes the Laptop home connects to there Wifi it will look for your School Network... not there cant run task.

 

This bit?

 

Shutdown.jpg

 

I can't see any other network in the dropdown, but it may still work for me! :D

 

Kol.

Posted

Thanks for the replies so far.

 

I don't see the "conditions" tab in my scheduled task, but in any case it sounds like it may need to be configured by script then triggered by a scheduled task.

 

https://blogs.technet.microsoft.com/askpfeplat/2015/04/26/the-startup-script-is-dead/

 

4) Under Conditions > Start only if the following network connection is available the only option in the group policy editor is “any connection”. If you need to configure more specific conditions such as connectivity to a specific corporate network you can use New-ScheduledTask or schtasks.exe instead of GPP: Scheduled Tasks. You might still use GPP: Scheduled Tasks to trigger the launch of a script that creates other more complex tasks.

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