Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


2k server logon script being strange

Posted on 2004-11-02
Medium Priority
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?
Question by:browolf
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2

Expert Comment

ID: 12477935
Could the login script be running twice, as a result of group policy and being defined on the user account?

Author Comment

ID: 12479185
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.

Author Comment

ID: 12481176
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.


Accepted Solution

Panadmin earned 516 total points
ID: 12483701
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.

Author Comment

ID: 12484208
it's fixed now. perhaps i didnt make it quite clear.

Featured Post

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
It’s time for spooky stories and consuming way too much sugar, including the many treats we’ve whipped for you in the world of tech. Check it out!
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

636 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