Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The HostInfo property retrieves information about the physical PC.
This property is read-only.
Syntax
HRESULT get_HostInfo(
[out] IVMHostInfo **hostMachine
);
VB |
---|
|
Property value
The VMHostInfo object which has information about the host machine.
This property value is read-only.
Error codes
Name | Meaning |
---|---|
|
The operation was successful. |
|
The hostMachine parameter is NULL. |
|
An unexpected error occurred. |
Examples
The following example displays a few of the VMHostInfo object's property values of the VMVirtualServer object.
Set objVS = CreateObject("VirtualServer.Application")
Wscript.Echo "Name: " & objVS.Name
Set objHI = objVS.HostInfo
Wscript.Echo "Host info:"
Wscript.Echo " Host operating system: " & objHI.OperatingSystem
Wscript.Echo " Host operating system version: " & _
objHI.OSMajorVersion & "." & objHI.OSMinorVersion
Wscript.Echo " Number of processors on host: " & _
objHI.PhysicalProcessorCount
Requirements
Product |
Microsoft Virtual Server 2005 onWindows Server 2003 |
Download |
Microsoft Virtual Server 2005 R2 SP1 Update onWindows Server 2008orWindows Server 2003 |
Header |
|