G_M
asked on
Windows 7 Group Policy - Run a script when group policy applies outside of logon/logoff scripts
Hey guys,
I have a VbScript that I want to run periodically whilst a user is logged onto their Windows 7 machine. The script backs up a file which is user specific to a directory on the network which is also user specific (although the user does have full access to both locations).
So I have this script running at logoff; however, our users have a tendancy to log onto multiple machines simultaneously, thus this is not always the perfect solution as this file is required to be up-to-date when the user logs onto another machine. As group policy re-applies approximately every 180mins (I believe), I would like to run this script to back up this file.
Is there a section in Group Policy that will allow me to have this script run when Group Policy applies?
**Note: I am trying to avoid using task scheduler due to problems in consistancy we have had with it in the past.
Hope someone can help.
Cheers,
G_M
I have a VbScript that I want to run periodically whilst a user is logged onto their Windows 7 machine. The script backs up a file which is user specific to a directory on the network which is also user specific (although the user does have full access to both locations).
So I have this script running at logoff; however, our users have a tendancy to log onto multiple machines simultaneously, thus this is not always the perfect solution as this file is required to be up-to-date when the user logs onto another machine. As group policy re-applies approximately every 180mins (I believe), I would like to run this script to back up this file.
Is there a section in Group Policy that will allow me to have this script run when Group Policy applies?
**Note: I am trying to avoid using task scheduler due to problems in consistancy we have had with it in the past.
Hope someone can help.
Cheers,
G_M
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Why dont you use Folder Redirection ???
This way any files users work on within their "My Documents" or "Desktop" will always be backed up and current no matter how many workstations they simultaneously log into.
This way any files users work on within their "My Documents" or "Desktop" will always be backed up and current no matter how many workstations they simultaneously log into.
With your current setup, you could try to eliminate the issue with multiple logons by either 1) restrict logon so that users are only allowed to log on 1 machine at a time or 2) update the script to include a timestamp of the user's logon and store it on the user's profile (i assume it's roaming?). this way you can use the timestamp to check which one the user is logged on currently vs current time and back up THAT one versus a previous logged on machine.