General discussion

Locked

NT Logon Scripts not running

By nwboothe ·
I'm a Network Admin for a school division and we have created three different logon scripts that do a variety of things from mapping drives to installing software. We run all NT servers and 95/98 workstations. The problem we have is that the logonscripts don't run sometimes, but other times they do. I've verified that the script is on all domain controllers. Here's where it gets wierd...all scripts had read for the everyone group permission which is what it should have, but the scripts only ran about 10% of the time. After many hours of looking for a solution I decided to make the scripts permission full control. After this change, it began working 80% of the time. It makes no sense! I've asked our other netowrk admin and our network engineer and we are all stumped. I've got big points for someone who can help!

This conversation is currently closed to new comments.

22 total posts (Page 2 of 3)   Prev   01 | 02 | 03   Next
Thread display: Collapse - | Expand +

All Comments

Collapse -

NT Logon Scripts not running

by bill.parks In reply to NT Logon Scripts not runn ...

First, I'm assuming replication is in full effect as you've noted above.
Are you running policies for your workstations??? If so, under default computer-Network-System Policies Update-Remote Update, check that box and use Automatic Update Mode. Also check the box that says Load Balancing. By default, 9.x machines always try to reach the PDC for scripts, policies, and authentication. Selecting this box allows the machine to act as NT, try to reach any DC, not just the PDC. Quirky, I know, but it's true.
If you do not use policies, take a couple machines, open regedit and follow the steps below:
1. Open the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Update folder. You may see a key for LoadBalance. If you do, change it to "1". Ifyou don't, add a value of DWORD names "LoadBalance" and give it a value of "1". Essentially, follow the same format of DWORD Update, the should already be in the folder. This will enable the LoadBalance feature I mentioned above with policies.
Let me know how it worked.

Collapse -

NT Logon Scripts not running

by nwboothe In reply to NT Logon Scripts not runn ...

The question was auto-closed by TechRepublic

Collapse -

NT Logon Scripts not running

by Gregory W. Smith In reply to NT Logon Scripts not runn ...

I'm going to guess here since you didn't point out the error in the earlier post. Scripts are EXPORTED from the repl\export\scripts on whatever machine (not necessarily the PDC) to repl\import\scripts on the logon servers.

if you look in the NETLOGON share on each server, do the scripts show up there? Because if you are using the PDC's EXPORT directory and do not have scripts in the IMPORT directory, there is your problem.

Collapse -

NT Logon Scripts not running

by Gregory W. Smith In reply to NT Logon Scripts not runn ...

Also, technically you do not require replication for the logon scripts to work.

They *do* need to be in each \\DOMAINCONTROLLERNAME\NETLOGON share. (And you *do* need the read permission; it won't hurt to give NTFS FULL CONTROL to EVERYONE as long as they only have READ access through the share.

The best thing I can say is open up the NETLOGON share on EVERY DC and confirm that the files are physically present.

Collapse -

NT Logon Scripts not running

by nwboothe In reply to NT Logon Scripts not runn ...

The question was auto-closed by TechRepublic

Collapse -

NT Logon Scripts not running

by subbz In reply to NT Logon Scripts not runn ...

Your explanation rules out scripts replication or permission problems to NETLOGON share. Check out if the script gives any errors. (For example, say a drive already exists and the script tries to overwrite, or any such error.) If a script encountersany errors it stops further execution (usually). Try to observe this. This may help.

Collapse -

NT Logon Scripts not running

by subbz In reply to NT Logon Scripts not runn ...

On the same machine where the script is not getting executed, try running individual commands in the script. This will give u a clear picture asto why the script is not getting executed completely.

Collapse -

NT Logon Scripts not running

by nwboothe In reply to NT Logon Scripts not runn ...

The question was auto-closed by TechRepublic

Collapse -

NT Logon Scripts not running

by kralljd In reply to NT Logon Scripts not runn ...

Are you running 98SE or 98?
Does this happen on 95 and 98 machines?

The following fixed me up last year when I was having similar problems... with 95


PSS ID Number: Q150589
Article last modified on 06-30-1999

SYMPTOMS

A Windows 95 workstation logging on to a Microsoft Windows NT domain controller
may not process the centralized logon script batch file.

CAUSE

This problem can occur if multiple Windows 95 workstations try to run a logon
script file (for example, the Winlogon.bat file) located on a single Windows NT
domain controller at the same time. The first time a Windows 95 workstation
access the logon script file, it does so in Read/Share/Exclusive mode. All
subsequent accesses to the file are done in Read/Share/Deny None mode.

The exclusive requests fail when another workstation has the file open in
Read/Share/Deny None mode.

RESOLUTION

This issue is resolved by the following updated file for Windows 95, and later
versions of this file:

MSNET32.DLL version 4.00.951 dated 4/18/96 60,416 bytes

STATUS

Microsoft has confirmed this to be a problem in Microsoft Windows 95. An update
to address this problem is now available, but is not fully regression tested and
should be applied only to computers experiencing this specific problem. Unless
you are severely impacted by this specific problem, Microsoft does not recommend
implementing this update at this time. Contact Microsoft Technical Support for
additional information about the availability of this update.

This issue is resolved in Microsoft Windows 98.

Collapse -

NT Logon Scripts not running

by kralljd In reply to NT Logon Scripts not runn ...

Can you send me a copy of one of your logon scripts that you are having problems with?

Back to Windows Forum
22 total posts (Page 2 of 3)   Prev   01 | 02 | 03   Next

Related Discussions

Related Forums