IADsComputer Property: Site

Property Name
Site

Property Type
String

Description
It gets the globally unique identifier identifying the site the computer is installed in. A site represents a physical region of good connectivity in a network.
This property is read-only.

Remarks
This property is read from the registry of a remote computer. If the remote computer is running Windows 95 then you must ensure that the flag named Enable Remote Administration of Server has been made ON through Control Panel.

Example

Dim ComputerObject As IADsComputer
'Fill in the correct values for <DomainName> and <ComputerName>
Set ComputerObject = GetObject("NTDS://<DomainName>/<ComputerName>")
Debug.Print ComputerObject.Site

 

See Also