Click to Rate and Give Feedback
MSDN
MSDN Library
Virtualization
IVMGuestOS2
 IVMGuestOS2::ComputerName Property
Collapse All/Expand All Collapse All
IVMGuestOS2::ComputerName Property

The computer name of the guest operating system running in the virtual machine.

This property is read-only.

Syntax (get)

C++
HRESULT get_ComputerName(
  [out]  BSTR *guestComputerName
);

Parameters

guestComputerName [out]

The computer name of the guest operating system.

Return Value

The method can return one of the following values.

Return codeDescription
S_OK

The operation was successful.

E_INVALIDARG

The guestComputerName parameter is not valid or not specified.

VM_E_VM_NOT_RUNNING

The virtual machine is not running.

VM_E_VM_PAUSED

The virtual machine is paused.

VM_E_ADDITIONS_FEATURE_NOT_AVAIL

Additions are not installed in this virtual machine.

DISP_E_EXCEPTION

An unexpected error has occurred.

 

Syntax

VBScript
Property ComputerName

Property Value

The computer name of the guest operating system.

This property value is read-only.

Requirements

DownloadMicrosoft Virtual Server 2005 R2 SP1 Update on Windows Server 2008 or Windows Server 2003
HeaderVsComInterfaces.h

See Also

IVMGuestOS2

 

 

Send comments about this topic to Microsoft

Build date: 1/21/2010

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2010 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker