Creating Virtualization-Management Server

Creates a Virtualization-Management Server object in the current or in the specified context.


Examples:


Hint: The execution of these examples requires a connected PowerShell drive.


The command below creates the new Virtualization-Management Server object "vCenter01" with a DNS-Name of "vcenter01.solys.local" in the context "Virtual Environments\ESXFarms":


New-EmdbVirtualizationManagementServer "emdb:\rootDSE\Managed Virtual Environments\ESXFarms\vCenter01" -VirtualizationPlatform "ESX" -FullQualifiedName "vcenter01.solys.local"


The code below creates the new Virtualization-Management Server "SCVMM01" using the DNS-name "scvmm01.solys.local" in the context "Virtual Environments\Hyper-V":


$MySCVMMServer = Get-EmdbComputer "emdb:\rootDSE\Managed Users & Computers\solys.local\Chicago\ITService\Servers\SRV01"

New-EmdbVirtualizationManagementServer "emdb:\rootDSE\Managed Virtual Environments\Hyper-V\SCVMM01" -RunningOn $MySCVMMServer -VirtualizationPlatform "Hyper-V" -FullQualifiedName "scvmm01.solys.local"


Valid values for the parameter VirtualizationPlatform are: ESX and Hyper-V.


If you are creating a new Virtualization-Management Server interactively using the wizard in the DSMC, you are prompted for username and password, which are used for Server-access. This feature is intentionally not available with the New-EmdbVirtualizationManagementServer cmdlet. Instead, you'll have to retrieve the object and specify the values for these Variables as described in chapter Setting Variable-values.


WARNUNG: When you are specifying the value of Variable "Password", which is of type "EncryptedString" via the PowerShell Extensions, the password is transmitted unencrypted to the BLS and saved unencrypted in the database. We urgently request you therefore, the set this Variable's value manually in the DMSC.