Solved

2k server logon script being strange

Posted on 2004-11-02
169 Views
Last Modified: 2010-04-14
2k workstations

I put some stuff in our login bat to do some logging, innocuous stuff like:

echo %logonserver% >> \\server\logs$\logon\%computername%.txt

trouble is in the log files, the results are echoed twice for no apparent reason. I never had any trouble like this when i did this sort of thing on NT.

any ideas?
0
Question by:browolf
    5 Comments
     
    LVL 2

    Expert Comment

    by:Panadmin
    Could the login script be running twice, as a result of group policy and being defined on the user account?
    0
     
    LVL 3

    Author Comment

    by:browolf
    that's a thought, because all our accounts were originally NT ones and had the login script on the user account. when we migrated we naturally put it in the group policy as well. will check tomorrow.
    0
     
    LVL 3

    Author Comment

    by:browolf
    our older accounts do have  the login script in the user profile as well as  the group policy. Atm we have the logon scripts visible but we only see one dos window.  the order we have the login scripts is
    printerscript using rundll then logon script.  this is what we see when we log on.

    if the login script was running twice i'd be expecting to see 2 dos windows.

    however i've just experimented with making a copy of the logon script and altering one of the loglines and then changing the user profile script on our test user account to point to this one instead. and it does indeed run invisibly.

    bugger. i wonder if this has some bearing on why some logons can be quite slow. 2-3mins.

     
    0
     
    LVL 2

    Accepted Solution

    by:
    Are the logged lines still duplicated with only one login script running? If they are, there's probably some other location where the code is running twice. Does your batch file call any other batch files, or vice versa?

    I agree, running the script twice will increase the logon time.
    0
     
    LVL 3

    Author Comment

    by:browolf
    it's fixed now. perhaps i didnt make it quite clear.
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Shellfire Box VPN + Lifetime Subscription

    The Shellfire Box easily connects all of your devices, even those that don't offer the possibility to establish a safe vpn connection. Access blocked content and surf safely, no matter where in the world you are located.

    NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
    Skype is a P2P (Peer to Peer) instant messaging and VOIP (Voice over IP) service – as well as a whole lot more.
    In this Experts Exchange video Micro Tutorial, I'm going to show how small business owners who use Google Apps can save money by setting up what is called a catch-all email address in their Gmail accounts. By using the catch-all feature, small busin…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    913 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