Property Name
Role
Property Type
String
Description
It gets the role of the computer - whether it is a workstation,
server, domain controller, and so on.
Example
Dim ComputerObject As IADsComputer
'Fill in the correct values for <DomainName> and
<ComputerName>
Set ComputerObject =
GetObject("NTDS://<DomainName>/<ComputerName>")
Debug.Print ComputerObject.Role
See Also