IVMVirtualServer::DefaultVMConfigurationPath property
The DefaultVMConfigurationPath property contains the default directory searched by the web application to create lists of available virtual machine configuration files.
This property is read/write.
Syntax
HRESULT put_DefaultVMConfigurationPath(
[in] BSTR configurationPath
);
HRESULT get_DefaultVMConfigurationPath(
[out] BSTR *configurationPath
);
VB |
---|
|
Property value
The default virtual machine configurations directory path. In the path string, a backslash () may appear immediately before the terminating null character.
This property value is read/write.
Error codes
Name | Meaning |
---|---|
|
The operation was successful. |
|
The configurationPath parameter is NULL. |
|
The system cannot find the directory specified by the configurationPath parameter. |
|
The system cannot find the path specified by the configurationPath parameter. |
|
The configurationPath parameter contains an invalid character (one of the following: "*?<>/|":"). |
|
The configurationPath parameter specifies an empty or relative path. An absolute path is required. |
|
The path specified by the configurationPath parameter is too long. The length of the path must be less than 260 characters. |
|
An unexpected error occurred. |
Remarks
By default, this property value is set to the following directory: "%ALLUSERSPROFILE%\Documents\Shared Virtual Machines\".
Examples
The following example displays the DefaultVMConfigurationPath property value of the VMVirtualServer object.
Set objVS = CreateObject("VirtualServer.Application")
Wscript.Echo "Name: " & objVS.Name
Wscript.Echo "Default VM configuration path: " & _
objVS.DefaultVMConfigurationPath
Requirements
Product |
Microsoft Virtual Server 2005 onWindows Server 2003 |
Download |
Microsoft Virtual Server 2005 R2 SP1 Update onWindows Server 2008orWindows Server 2003 |
Header |
|