Microsoft® Windows® Script Host UserDomain Property |
WSH Reference Version 1 |
Provides a string representation of the user domain name.
object.UserDomain
Part Description object WshNetwork object.
The following example echoes the current computer name and user domain:Set objNet = WScript.CreateObject("WScript.Network") WScript.Echo objNet.ComputerName & " - " & objNet.UserDomain