Microsoft® Windows® Script Host
UserDomain Property
WSH Reference
Version 1

Applies To


Description
Provides a string representation of the user domain name.
Syntax
object.UserDomain
Parameters
Part Description
object WshNetwork object.
Example
The following example echoes the current computer name and user domain:
Set objNet = WScript.CreateObject("WScript.Network")
WScript.Echo objNet.ComputerName & " - " & objNet.UserDomain