Domain Property (System Manager)

Provides access to a string containing the name of the domain or workgroup to which the computer belongs.

Syntax

SystemManager.Domain

Access

Read only.

Return Type

String.

Example

To access the domain for the local computer, enter:

Set obj = CreateObject("OpScrUtil.SystemManager")
strDomain = obj.Domain