The information in this article applies to:
SUMMARYThis article provides a programmatic workaround for the problem described in the following KB: Q157174 Windows NT Logon Script Does Not Run on Windows 95 RAS ClientOn Win9x, if a mobile user tries to log on to a domain when the mobile machine is not connected, the user will receive the following error message: If the user clicks OK and then later uses RAS to dial in to a domain, the logon script won't run because the machine assumes it has already logged on to the domain. The workaround is to call the 16-bit LAN Man API NetWkstaSetUID2 to programmatically log off the domain before using RAS to dial into the domain. The 16-bit Microsoft LAN Manager Programmer's ToolKit version 2.1 is provided with this Microsoft Knowledge Base article for your convenience. A Visual C version 1.52 MS-DOS project demonstrating the NetWkstaSetUID2 API to log off a domain is also provided. To use the sample, run netwks16 -d yourdomain -f 3 in an MS-DOS console window. This logs you off the domain. NOTE: This method should be used only if you encounter the problem described in the KB article above. Furthermore, Microsoft does not recommend programmatically logging off or on to a domain, because it opens up possible security problems if the program stores and/or retrieves the password. MORE INFORMATIONThe following files are available for download from the Microsoft
Download Center. Click the file names below to download the files: Lmsdk.exe Netwksta.exeFor more information about how to download files from the Microsoft Download Center, please visit the Download Center at the following Web address http://www.microsoft.com/downloads/search.aspand then click How to use the Microsoft Download Center. Additional query words:
Keywords : kbfile kbnetwork ntras kbRAS |
Last Reviewed: January 13, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |