Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stop logon/logoff script when disconnected from network

Status
Not open for further replies.
Sep 12, 2006
111
US
Is their a way to prevent logon/logoff scripts that are pushed by group policies to not try and run when a laptop user is disconnected from the network running Windows XP Pro w/SP3?

The laptop users have local profiles, but when they login while not connected to the network, their application event log is reporting that it could not execute the scripts that are deployed via GPO.

The first error is:

Userenv 1054 stating that windows cannot obtain the domain controller and that Group Policy processing is aborting.

Second:

Could not execute the following scripts........no network provider accepted the given network path.

This is causing very long logon/logoff times.

If I disable the user WiFi card before they login and logoff the process is super fast. However, this cannot be the solution to speed up the logon/logoff process.

Their local user profiles are not large in file size at all either.

Any help is appreciated.
 
give them a local logon to use when disconnected from domain network?
 
In Group Policy, navigate to Computer configuration->Administrative Templates->System->Scripts and configure the "Maximum wait time for Group Policy scripts" to something less than the default 600 seconds (10 minutes) setting. I chose 120 seconds (2 minutes) and I find that to be a reasonable time in my environment.

In addition to the above suggestion, you could also try a shutdown script/batch file that would delete the scripts at:
HKCU\Software\Policies\Microsoft\Windows\System\Scripts\Logon
and
HKCU\Software\Policies\Microsoft\Windows\System\Scripts\Logoff

I haven't tried to create a script myself as the timeout solution was sufficient for me, but it may be worth a shot.

---------------------------------------
Bob Beck
Systems Administrator
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top