IVMVirtualServer::HostInfo property

The HostInfo property retrieves information about the physical PC.

This property is read-only.

Syntax

HRESULT get_HostInfo(
  [out] IVMHostInfo **hostMachine
);

VB
VMVirtualServer.HostInfo( _
  ByRef hostMachine _
)

Property value

The VMHostInfo object which has information about the host machine.

This property value is read-only.

Error codes

Name Meaning
S_OK
The operation was successful.
E_POINTER
The hostMachine parameter is NULL.
DISP_E_EXCEPTION
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
VsComInterfaces.h

See also

IVMVirtualServer