All Properties
Property: WshNetwork.UserDomain
WshNetwork.
UserDomain
The
UserDomain
property
is read only
and returns a string that is the current user's domain.
The following JScript code illustrates the use of this property under WSH 2.0 on a Windows 2000 system.
Code:
WScript.Echo("UserDomain =", WshNetwork.UserDomain)
Output:
UserDomain = MYDOMAIN
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information