Quantcast
Channel: Group Policy forum
Viewing all articles
Browse latest Browse all 19997

Group Policy Scheduled task to run only if connected on the network

$
0
0

Hello everyone

I'm not sure if this is possible, but I wanted to post here and get any suggestions I can. I have created a script that collects from logs from a program our mobile users depend on in the field. The script copies a few log files that the program saves to the local drive which we can use to diagnose problems if the user reports they are have difficulties. As our users work in the field a lot, scheduling a time to work with them is one of the largest delays we have in getting problems resolved.

To combat this, the script I have created will copy these log files to a shared folder on our network which could then be references should users complain they have experiencing issues. The script works as designed, but I am unsure the best way to set up the scheduled task.

I would like to create a Group Policy scheduled task for OU these computers are in, but the task should only run when the computer is connected to our network. Ideally, if possible, I would like to be able to have the task run as soon as it detects a connection to the network - but I do not see options to allow this.

Does anyone have any suggestions on how to set up a task to run only if connected to our network, or when it connects?


Richard A Jahnke


Viewing all articles
Browse latest Browse all 19997

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>