I have written two scripts to create a log of when a user log ons and off the network.
I have tested the scripts by double clicking on them and they work fine and I am able to get them to run on a local machine by setting them to run at logon/logoff by using the local group policy editor.
My issue is that I want the scripts to run at logon/logoff through a Domain Group Policy but no matter what I try they won't run. I've created a new GPO just for these scripts, I've tried adding them to the GPO that maps the drives for each user but nothing works.
Any suggestions on what I could try?
Warning - This is not a strong area for me.
Thanks
Mitch
Software/Hardware used:
Server 2008
ASKED:
July 7, 2011 2:17 PM
UPDATED:
March 31, 2012 10:08 PM
How soon after modifying the GPO do you wait to check if the scripts will run? It normally takes some time for the machine to update it’s group policy from the server. However you can force it to do an update by opening a command prompt and typing gpupdate /force
Once you do that you should try logging off/on again with one of the domain accounts to see if it works.
Hi Mattcassell,
Thanks for the input.
I guess I should have mentioned that I waited two days for the group policy to take effect then I tried forcing it with the gpupdate /force command.
Fair enough. Have you tried using the Microsoft RSoP tool (resultant set of policies)? It is a great tool for looking at GPO issues. Here is a link to some more info on it:
http://support.microsoft.com/kb/323276
Is the script within the GPO or does it pull from a network share?
Do you have the system set to wait for IP (network services) at bootup?
You can try running the script locally with a wait loop for an IP address.
Pjb0222 -
The script is currently being pulled from a network share where all users have read/write access. I also did try having the script within the GPO.
How do I have the system wait for IP (network services) at bootup?