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

Posted on 2008-11-11
Last Modified: 2013-12-05
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!
Question by:DevilDog7856
    LVL 77

    Expert Comment

    by:Rob Williams
    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.

    Author Comment

    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?
    LVL 77

    Accepted Solution

    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:
    - Also try gpresult to see if any policy issues:
    - 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

    Author Comment

    The 2 GPO settings you mentioned was the issue!  Thanks for the help!
    LVL 77

    Expert Comment

    by:Rob Williams
    Thanks DevilDog7856. Glad to hear it is working.
    Cheers !

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Mapping Drives using Group policy preferences Are you still using old scripts to map your network drives if so this article will show you how to get away for old scripts and move toward Group Policy Preference for mapping them. First things f…
    Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
    This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
    This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now