New-SCVMXComputerConfiguration
Creates a VMX computer configuration object by gathering virtual machine configuration information from a virtual machine created in VMware that you plan to convert to a virtual machine deployed on a Windows-based host managed by VMM.
Syntax
Default (Default)
New-SCVMXComputerConfiguration
[-VMMServer <ServerConnection>]
[-VMXPath] <String>
[-LibraryServer <LibraryServer>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Description
The New-SCVMXComputerConfiguration cmdlet creates a VMX computer configuration object by gathering information about the physical characteristics of a VMware-based virtual machine and its disks that you plan to convert to a virtual machine deployed on a Windows-based Hyper-V host managed by Virtual Machine Manager (VMM). This cmdlet does not collect information about the operating system or data on the VMware-based virtual machine.
VMware virtual hard disk formats supported by the New-SCVMXComputerConfiguration cmdlet include:
monolithicSparse
monolithicFlat
vmfs
twoGbMaxExtentSparse
twoGbMaxExtentFlat
Examples
Example 1: Gather information from a VMware-based virtual machine
PS C:\> $LibServ = Get-SCLibraryServer -ComputerName "LibServer01.Contoso.com"
PS C:\> New-SCVMXComputerConfiguration -LibraryServer $LibServ -VMXPath "\\FileServer01\MSSCVMMLibrary\VMware\VMSource.vmx"
The first command gets the library server object named LibServer01 in the Contoso.com domain and stores the object in the $LibServ variable.
The last command gathers the machine configuration information for the .vmx file located at "\FileServer01\MSSCVMMLibrary\VMware\VMSource.vmx" on the library server. The New-SCVMXComputerConfiguration cmdlet stores the resulting VMX computer configuration object associated with VMSource.vmx in the VMM database.
Note: If you look in Library view in the VMM console, you cannot see the file VMSource.vmx file because the .vmx file is part of a single virtual machine object. What you see in Library view is the virtual machine. To find the path to a .vmdk file, view the properties for that virtual machine.
Parameters
-JobVariable
Specifies that job progress is tracked and stored in the variable named by this parameter.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-LibraryServer
Specifies a VMM library server object.
Parameter properties
Type: | LibraryServer |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-PROTipID
Specifies the ID of the Performance and Resource Optimization tip (PRO tip) that triggered this action. This parameter lets you audit PRO tips.
Parameter properties
Type: | Guid |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-RunAsynchronously
Indicates that the job runs asynchronously so that control returns to the command shell immediately.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-VMMServer
Specifies a VMM server object.
Parameter properties
Type: | ServerConnection |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-VMXPath
Specifies the full UNC path to the .vmx file of a VMware virtual machine.
Example format: \\ServerName\VolumeName\DirectoryName\VMwareVM.vmx
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 0 |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Outputs
VMXMachineConfig
This cmdlet returns a VMXMachineConfig object.