• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 648
  • Last Modified:

Logon script is not running from the \\servername\netlogon directory.

I have several different logon scripts for various departments.  I use a simple .bat file to map the appropriate drives and other various functions.  I have made some significant changes lately and I changed the script, but now it does not run at logon.  I have all AD accounts , under the profile tab using JUST the longon.bat, but that isn't working.  I have also tried putting the full path to the file \\severname\netlogon\logon.bat.  This did not help either.  And help would be appreciated!
0
DevilDog7856
Asked:
DevilDog7856
  • 3
  • 2
1 Solution
 
Rob WilliamsCommented:
Verify the user has read privileges.
As a test, from a problematic workstation, logged in as the user, within a DOS window, try running the script using the same path \\severname\netlogon\logon.bat and see if any errors are displayed
If the script runs but you cannot see the output, you can insert a pause statement any were in the batch file to allow you to diagnose.
0
 
DevilDog7856Author Commented:
The users have the correct permissions.  If I run the script while anyone is logged in the script runs correctly.  I just can't get it to run when the users logon to the machine each time?
0
 
Rob WilliamsCommented:
Perhaps it is a DNS or timing issue.
- I assume the PC points ONLY to your Internal DNS server/s for DNS and not an outside server such as the ISP's?
- Try running NetDiag on the problematic PC to see if it exposes any issues:
http://www.lan-2-wan.com/Diag-FAQ.htm#q1
- Also try gpresult to see if any policy issues:
http://www.microsoft.com/windowsxp/using/setup/expert/gpresults.mspx
- There can exist a 'race' condition where the network is not contacted before logon completes and policies and logon scripts are not applied. To address this try implementing the following policies. You will likely need to run from the PC   gpupdate /force    if you are having problems with GPO's being applied.

Computer configuration | Administrative templates | System | logon | always wait for the network at computer startup and logon

User configuration | administrative templates | system | scripts | run logon scripts synchronously
0
 
DevilDog7856Author Commented:
The 2 GPO settings you mentioned was the issue!  Thanks for the help!
0
 
Rob WilliamsCommented:
Thanks DevilDog7856. Glad to hear it is working.
Cheers !
--Rob
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now