Get-SCComputerConfiguration
Get-SCComputerConfiguration
Gets physical machine configuration objects from the VMM database.
Syntax
Parameter Set: Default
Get-SCComputerConfiguration [-SourceComputerName <String> ] [-VMMServer <ServerConnection> ] [ <CommonParameters>]
Detailed Description
The Get-SCComputerConfiguration cmdlet gets one or more computer configuration objects from the Virtual Machine Manager (VMM) database that are associated with one or more physical computers. Information about a computer's hardware, physical disks, and operating system is stored in the machine configuration object.
A physical machine configuration is used by the New-SCP2V cmdlet when it converts a physical machine to a virtual machine. To perform this conversion, you use a physical computer as a model from which to create an identical, or nearly identical, virtual machine that has the same identity (ComputerName.DomainName) as the physical machine.
Parameters
-SourceComputerName<String>
Specifies the source computer for a physical-to-virtual (P2V) machine conversion performed by VMM. Valid formats: FQDN, IPv4 or IPv6 address, or NetBIOS name.
Note: See the examples for a specific cmdlet to determine how that cmdlet specifies the source computer name.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-VMMServer<ServerConnection>
Specifies a VMM server object.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByValue) |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
- ComputerConfig
Examples
1: Get the computer configuration object for a particular physical machine.
This command gets the machine configuration for the physical machine named P2VSource01.Contoso.com from the VMM database and displays information about this object to the user.
PS C:\> Get-SCComputerConfiguration | where { $_.Name -eq "P2VSource01.Contoso.com" }
2: Get all computer configuration objects in your VMM environment.
This command gets all existing machine configuration objects on VMMServer01 and displays information about these machine configuration objects to the user.
PS C:\> Get-MachineConfig -VMMServer "VMMServer01.Contoso.com"