WSH » wshnetwork » UserDomain

Syntax:
WshNetwork.UserDomain

The UserDomain property is read only and returns a string which is the current user's domain name.

Examples

Code:
WScript.Echo("UserDomain =", WshNetwork.UserDomain)
Output:
UserDomain = MYDOMAIN
Explanation:

This JScript code illustrates the use of this property under WSH 2.0 on a Windows 2000 system.

Language(s): JavaScript