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 OSName property contains the name of the guest operating system running in the virtual machine.
This property is read-only.
Syntax
HRESULT get_OSName(
[out] BSTR *guestOSName
);
VB |
---|
|
Property value
The full name (including suite name) of the guest operating system.
This property value is read-only.
Error codes
Name | Meaning |
---|---|
|
The operation was successful. |
|
guestOSName was not specified. |
|
The virtual machine is not running. |
|
The virtual machine is not fully booted or Additions are not installed. |
|
An unexpected error occurred. |
Remarks
The virtual machine must be running (that is, fully booted and not shutting down) and Additions must be installed when this method is invoked.
The following is a list of the possible names returned by the various Microsoft operating systems:
- Windows Server 2003
- Windows Server 2003, Standard Edition
- Windows Server 2003, Enterprise Edition
- Windows Server 2003, Datacenter Edition
- Windows Server 2003, Web Edition
- Windows Advanced Server, Limited Edition
- Windows XP Home Edition
- Windows XP Professional
- Windows XP Embedded
- Windows XP 64-Bit Edition
- Windows XP Media Center Edition
- Windows XP Tablet PC Edition
- Windows XP 64-Bit Edition Version 2003
- Windows 2000
- Windows 2000 Professional
- Windows 2000 Server
- Windows 2000 Advanced Server
- Windows 2000 Datacenter Server
Requirements
Product |
Microsoft Virtual Server 2005 onWindows Server 2003 |
Download |
Microsoft Virtual Server 2005 R2 SP1 Update onWindows Server 2008orWindows Server 2003 |
Header |
|