?
Solved

WFWG login script hangs

Posted on 1997-03-24
4
Medium Priority
?
237 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

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

An introduction to the wonderful sport of Scam Baiting.  Learn how to help fight scammers by beating them at their own game. This great pass time helps the world, while providing an endless source of entertainment. Enjoy!
Compliance and data security require steps be taken to prevent unauthorized users from copying data.  Here's one method to prevent data theft via USB drives (and writable optical media).
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…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Suggested Courses

800 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