Jump to content

Refresh cached logon script?


Rosco
 Share

Recommended Posts

Hi all,

I have an issue with my logon script. I have a logon.bat that runs logon.vbs (for historic reasons). When I run the script from the command line, it runs fine, but when someone logs in, they run an old version of the script. I have verified this by putting extra wscript.echo commands. I'm assuming the logon script is cached locally on each workstation? If so, how do I force the workstation to update its cached script(s)?

We have XP pro and 2000 pro workstations, running 2 DCs (yes I have checked, the scrips have correctly replicated between DCs).

Can anyone help?

Thanks, Rosco

Link to comment
Share on other sites

Hi all,

I have an issue with my logon script. I have a logon.bat that runs logon.vbs (for historic reasons). When I run the script from the command line, it runs fine, but when someone logs in, they run an old version of the script. I have verified this by putting extra wscript.echo commands. I'm assuming the logon script is cached locally on each workstation? If so, how do I force the workstation to update its cached script(s)?

We have XP pro and 2000 pro workstations, running 2 DCs (yes I have checked, the scrips have correctly replicated between DCs).

Can anyone help?

Thanks, Rosco

OK I found the problem. The group policy was pointing to the logon script at %SystemRoot%\SYSVOL\sysvol\<DOMAIN>\Policies\<GUID>\USER\Scripts\Logon (as per doco). These scripts had been copied to NETLOGON on the DCs, but it is not the same location! I was changing them in NETLOGON, so the old version was being run when users logged in.

So now the questions are:

If I use \\PDC\NETLOGON\logon.bat, I assume it will not be able to use the BDC copy if PDC is unavailable?

Does the default location %SystemRoot%\SYSVOL\sysvol\<DOMAIN>\Policies\<GUID>\USER\Scripts\Logon map to "whichever DC is available"?

If so, is there some place I can copy my scripts so they show up in that directory?

Thanks for any help, ROSCO

Link to comment
Share on other sites

Hi all,

I have an issue with my logon script. I have a logon.bat that runs logon.vbs (for historic reasons). When I run the script from the command line, it runs fine, but when someone logs in, they run an old version of the script. I have verified this by putting extra wscript.echo commands. I'm assuming the logon script is cached locally on each workstation? If so, how do I force the workstation to update its cached script(s)?

We have XP pro and 2000 pro workstations, running 2 DCs (yes I have checked, the scrips have correctly replicated between DCs).

Can anyone help?

Thanks, Rosco

OK I found the problem. The group policy was pointing to the logon script at %SystemRoot%\SYSVOL\sysvol\<DOMAIN>\Policies\<GUID>\USER\Scripts\Logon (as per doco). These scripts had been copied to NETLOGON on the DCs, but it is not the same location! I was changing them in NETLOGON, so the old version was being run when users logged in.

So now the questions are:

If I use \\PDC\NETLOGON\logon.bat, I assume it will not be able to use the BDC copy if PDC is unavailable?

Does the default location %SystemRoot%\SYSVOL\sysvol\<DOMAIN>\Policies\<GUID>\USER\Scripts\Logon map to "whichever DC is available"?

If so, is there some place I can copy my scripts so they show up in that directory?

Thanks for any help, ROSCO

Well I think I answered my own question (duh). But it just brings up another question - if the logon scripts are meant to go at that horrible sysvol location, is there any use for the NETLOGON directory? I've deleted the logon scripts from there, and put in doco with a pointer to the real directory.

ROSCO

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy