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

x
?
Solved

WFWG login script hangs

Posted on 1997-03-24
4
Medium Priority
?
239 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
[X]
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
  • 2
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
arminl earned 200 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
When asking a question in a forum or creating documentation, screenshots are vital tools that can convey a lot more information and save you and your reader a lot of time
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

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