Windows – Logon/Logoff scripts running when disconnected from domain controller

domaingroup-policylogon-scriptswindows

I have a windows 7 system that is part of a domain. When it is unable to access the domain controller, will it still run logon scripts? Right now, we have a local script that is launched from the run section of the registry that checks for connectivity. If it can't talk to the server, it modifies some settings that prevent major bugs while using the machine.

This is probably the worst way to do this, but it's what a previous tech setup. What are some best practices for setting up logon scripts with GPO's and active directory? Whatever I set still needs to be able to run when the system is off the network.

Thanks

Best Answer

You could use group policy to setup a scheduled task. This way the task will run regardless of a domain connection. You'll just need to make sure whatever action you setup does not require some kind of network resource (ie. a batch file located on a network share)