Solved

WFWG login script hangs

Posted on 1997-03-24
4
229 Views
Last Modified: 2013-12-28
Can anyone tell me why it is when a WFWG user logs into a NT domain, the login script sometimes appears to hang just after completion, so that the message box saying "Please wait while your login script executes" has to be dismissed by pressing the cancel button? (In every case so far, the script has executed correctly.) This is not a showstopper, but it's very irritating.

Sorry to ask this here if it's a WFWG problem, but there doesn't seem to be a WFWG section.
0
Comment
Question by:acarlisle
  • 2
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
arminl earned 100 total points
ID: 1776948
You most likely ran into an old (but still never fixed) bug in the wfw logon script processor: whenever any network error occurs (e.g. a drive could not successfully be NET USEd) NET.EXE will set the ERRORLEVEL variable > 0. WfW does not handle this situation properly and the scripts seems to "hang" upon termination.
The fix is to reset the Errorlevel on the last line of the logon script. Unfortunatly there is no DOS command to do it, but Microsoft has released a tiny tool called CLRLEVEL that fixes this. ClrLevel  is included in the Microsoft Systems Management Server (SMS) package.
Copy Clrlevel.exe into the directory where your login-scripts reside, and add
%0\..\clrlevel
 at the end of your login script. This (rather old, but still undocumented) batch file trick will tell the system to load ClrLevel from where the login script was loaded from, and you don't have to copy ClrLevel to all of your clients. Works great with any Batch processor I've seen so far, including W95 and NT 4, NT 4.
0
 

Author Comment

by:acarlisle
ID: 1776949
There still seemes to be problem if a login script calls another batch file. Is this another undocumented feature of WfW?

0
 
LVL 4

Expert Comment

by:arminl
ID: 1776950
Have lots of nested logon-scripts here. Never had any problems except the errorlevel problem fixed with clrlevel. Sorry.
0
 

Author Comment

by:acarlisle
ID: 1776951
Chez nous, it seems that if *any* program run by a login script under WfW returns non-zero, the script will hang at the end, and clrlevel.com makes no difference. Sigh. But thanks for your help.
0

Featured Post

Promote certifications in your email signature

Has your company recently won an award or achieved a certification? They'll no doubt want to show it off. Email signature images used to promote certifications & awards can instantly establish credibility with a recipient and provide you with numerous benefits.

Join & Write a Comment

Our Group Policy work started with Small Business Server in 2000. Microsoft gave us an excellent OU and GPO model in subsequent SBS editions that utilized WMI filters, OU linking, and VBS scripts. These are some of experiences plus our spending a lo…
This is an article about Leadership and accepting and adapting to new challenges. It focuses mostly on upgrading to Windows 10.
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

758 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

20 Experts available now in Live!

Get 1:1 Help Now