The information in this article applies to:
SUMMARYThe Windows Script Host returns the Domain name that the client is logging onto through the method UserDomain in the WScript.Network class. Due to the differences between Windows NT and Windows 9x this method only supports Windows NT clients. Instead of returning the domain name, when the call to UserDomain is issued on the Windows 9x client the return value is a blank string. MORE INFORMATION
You might still need or want the domain name on Windows 9x clients. The
Windows 9x client's credentials will always send a value for the Domain
name.
HKey_Local_Machine\System\CurrentControlSet\Services\MSNP32\ NetworkProviderReg_SZ AuthenticatingAgentNOTE: The above registry key is one path. It has been wrapped for readability. The "Log on to Windows NT domain" check box is stored in the following registry key: HKey_Local_Machine\Network\Logon Reg_DWORD LMLogon (1=Checked 0=Unchecked)The Workgroup name is stored in the following registry key: HKey_Local_Machine\System\CurrentControlSet\Services\VxD\VNETSUP Reg_SZ WorkgroupNOTE: The above registry key is one path. It has been wrapped for readability. The following is a Windows Script Host script written in VBScript that demonstrates how to retrieve the domain name that would be sent in the clients credentials on a Windows 9x client. Sample Code
WARNING: Using Registry Editor incorrectly can cause serious problems that
may require you to reinstall your operating system. Microsoft cannot
guarantee that problems resulting from the incorrect use of Registry Editor
can be solved. Use Registry Editor at your own risk.
For information about how to edit the registry, view the "Changing Keys And Values" Help topic in Registry Editor (Regedit.exe) or the "Add and Delete Information in the Registry" and "Edit Registry Data" Help topics in Regedt32.exe. Note that you should back up the registry before you edit it. If you are running Windows NT, you should also update your Emergency Repair Disk (ERD). Additional query words:
Keywords : kbnokeyword |
Last Reviewed: January 10, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |