IADsComputer Property Methods
The methods of the IADsComputer interface read and write the properties described in this topic. For more information see Interface Property Methods.
Properties in Vtable Order
Property |
Access |
Method Prototype |
|
ComputerID |
R/O |
HRESULT get_ComputerID
([out] BSTR *pbstrComputerID); |
Department |
R/W |
HRESULT get_Department
([out] BSTR *pbstrDepartment);
HRESULT put_Department
([in] BSTR bstrDepartment);
|
Description |
R/W |
HRESULT get_Description
([out] BSTR *pbstrDescription);
HRESULT put_Description
([in] BSTR bstrDescription);
|
Division |
R/W |
HRESULT get_Division
([out] BSTR *pbstrDivision);
HRESULT put_Division
([in] BSTR bstrDivision);
|
Location |
R/W |
HRESULT get_Location
([out] BSTR *pbstrLocation);
HRESULT put_Location
([in] BSTR bstrLocation);
|
MemorySize |
R/W |
HRESULT get_MemorySize
([out] LONG *plMemorySize);
HRESULT put_MemorySize
([in] LONG lMemorySize);
|
Model |
R/W |
HRESULT get_Model
([out] BSTR *pbstrModel);
HRESULT put_Model
([in] BSTR bstrModel);
|
NetAddresses |
R/W |
HRESULT get_NetAddresses
([out] VARIANT *pvNetAddresses);
HRESULT put_NetAddresses
([in] VARIANT vNetAddresses);
|
OperatingSystem |
R/W |
HRESULT get_OperatingSystem
([out] BSTR *pbstrOperatingSystem);
HRESULT put_OperatingSystem
([in] BSTR bstrOperatingSystem);
|
OperatingSystemVersion |
R/W |
HRESULT get_OperatingSystemVersion
([out] BSTR *pbstrOperatingSystemVersion);
HRESULT put_OperatingSystemVersion
([in] BSTR bstrOperatingSystemVersion);
|
Owner |
R/W |
HRESULT get_Owner
([out] BSTR *pbstrOwner);
HRESULT put_Owner
([in] BSTR bstrOwner);
|
PrimaryUser |
R/W |
HRESULT get_PrimaryUser
([out] BSTR *pbstrPrimaryUser);
HRESULT put_PrimaryUser
([in] BSTR bstrPrimaryUser);
|
Processor |
R/W |
HRESULT get_Processor
([out] BSTR *pbstrProcessor);
HRESULT put_Processor
([in] BSTR bstrProcessor);
|
ProcessorCount |
R/W |
HRESULT get_ProcessorCount
([out] LONG *plProcessorCount);
HRESULT put_ProcessorCount
([in] LONG lProcessorCount);
|
Role |
R/W |
HRESULT get_Role
([out] BSTR *pbstrRole);
HRESULT put_Role
([in] BSTR bstrRole);
|
Site |
R/O |
HRESULT get_Site
([out] BSTR *pbstrSite); |
StorageCapacity |
R/W |
HRESULT get_StorageCapacity
([out] LONG *plStorageCapacity);
HRESULT put_StorageCapacity
([in] LONG lStorageCapacity);
|
Property Descriptions
-
ComputerID
-
Get the globally unique identifier assigned to each machine, which serves as the authoritative identifier.
-
Department
-
Gets and sets the department (e.g. OU or Organizational Unit) within a company that this computer belongs to.
-
Description
-
Gets and sets the description of this computer.
-
Division
-
Gets and sets the division (e.g. Organization) within a company that this computer belongs to.
-
Location
-
Gets and sets the physical location of the machine where this machine is typically located.
-
MemorySize
-
Gets and sets the size of RAM in MB.
-
Model
-
Gets and sets the make/model of this machine.
-
NetAddresses
-
Gets an array of NetAddress fields that represent the addresses by which this computer can be reached. NetAddress is a provider-specific BSTR composed of two substrings separated by a colon (":"). The left-hand substring indicates the address type, and the right-hand substring is a string representation of an address of that type. For example, TCP/IP addresses are of the form "IP:100.201.301.45. IPX type addresses are of the form "IPX:10.123456.80".
-
OperatingSystem
-
Gets and sets the name of the operating system used on this machine.
-
OperatingSystemVersion
-
Gets and sets the operating system version number.
-
Owner
-
Gets and sets the name of the person that typically uses this machine and has a license to run the installed software.
-
PrimaryUser
-
Gets and sets the name of the contact person in case something needs to be changed on this machine.
-
Processor
-
Gets and sets the type of processor.
-
ProcessorCount
-
Gets and sets the number of processors.
-
Role
-
Gets and sets the role of this machine: for example, workstation, server, domain controller.
-
Site
-
Gets the globally unique identifier identifying the site this machine was installed in. A site represents a physical region of good connectivity in a network.
-
StorageCapacity
-
Gets and sets the disk space in MB.
See Also
IADsComputerOperations, ADSI Computer Object