Solved

WFWG login script hangs

Posted on 1997-03-24
4
231 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

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…
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

786 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