Come and Check our BETA Alpha version of Powershellcenter.net
Send me your comment to Powershell@powershellcenter.com

Synopsis

Configures a virtual floppy disk drive.

Syntax

Set-VMFloppyDiskDrive [-VMName] <String[]> [[-Path] <String>] [-ComputerName <String[]>] [-Passthru] [-ResourcePoolName <String>] [<CommonParameters>]

Set-VMFloppyDiskDrive [-VM] <VirtualMachine[]> [[-Path] <String>] [-Passthru] [-ResourcePoolName <String>] [<CommonParameters>]

Set-VMFloppyDiskDrive [-VMFloppyDiskDrive] <VMFloppyDiskDrive[]> [[-Path] <String>] [-Passthru] [-ResourcePoolName <String>] [<CommonParameters>]

Detailed Description

The Set-VMFloppyDiskDrive cmdlet configures a virtual floppy disk drive.

Parameters

-ComputerName [<String[]>]

Specifies one or more Hyper-V hosts on which the virtual floppy disk drive is to be configured. NetBIOS names, IP addresses, and fully-qualified domain names are allowable. The default is the local computer

Synopsis

Configures a virtual hard disk.

Syntax

Set-VMHardDiskDrive [-VMName] <String> [[-ControllerType] <ControllerType>] [[-ControllerNumber] <Int32>] [[-ControllerLocation] <Int32>] [[-Path] <String>] [-AllowUnverifiedPaths] [-ComputerName <String[]>] [-DiskNumber <UInt32>] [-MaximumIOPS <UInt64>] [-MinimumIOPS <UInt64>] [-Passthru] [-ResourcePoolName <String>] [-SupportPersistentReservations <Boolean>] [-ToControllerLocation <Int32>] [-ToControllerNumber <Int32>] [-ToControllerType <ControllerType>] [-Confirm] [-WhatIf] [<CommonParameters>]

Set-VMHardDiskDrive [-VMHardDiskDrive] <HardDiskDrive[]> [[-Path] <String>] [-AllowUnverifiedPaths] [-ComputerName <String[]>] [-DiskNumber <UInt32>] [-MaximumIOPS <UInt64>] [-MinimumIOPS <UInt64>] [-Passthru] [-ResourcePoolName <String>] [-SupportPersistentReservations <Boolean>] [-ToControllerLocation <Int32>] [-ToControllerNumber <Int32>] [-ToControllerType <ControllerType>] [-Confirm] [-WhatIf] [<CommonParameters>]

Set-VMHardDiskDrive [-VM] <VirtualMachine[]> [[-Path] <String>] [-AllowUnverifiedPaths] [-DiskNumber <UInt32>] [-MaximumIOPS <UInt64>] [-MinimumIOPS <UInt64>] [-Passthru] [-ResourcePoolName <String>] [-SupportPersistentReservations <Boolean>] [-ToControllerLocation <Int32>] [-ToControllerNumber <Int32>] [-ToControllerType <ControllerType>] [-Confirm] [-WhatIf] [<CommonParameters>]

Detailed Description

The Set-VMHardDiskDrive cmdlet configures a virtual hard disk.

Parameters

-ComputerName [<String[]>]

Specifies one or more Hyper-V hosts on which the virtual hard drive is to be configured. NetBIOS names, IP addresses, and fully-qualified domain names are allowable. The default is the local computer

Synopsis

Sets the firmware configuration of a virtual machine.

Syntax

Set-VMFirmware [-VMName] <String[]> [-BootOrder <VMComponentObject[]>] [-ComputerName <String[]>] [-EnableSecureBoot <OnOffState>] [-FirstBootDevice <VMComponentObject>] [-Passthru] [-PreferredNetworkBootProtocol <IPProtocolPreference>] [-Confirm] [-WhatIf] [<CommonParameters>]

Set-VMFirmware [-VM] <VirtualMachine[]> [-BootOrder <VMComponentObject[]>] [-EnableSecureBoot <OnOffState>] [-FirstBootDevice <VMComponentObject>] [-Passthru] [-PreferredNetworkBootProtocol <IPProtocolPreference>] [-Confirm] [-WhatIf] [<CommonParameters>]

Set-VMFirmware [-VMFirmware] <VMFirmware[]> [-BootOrder <VMComponentObject[]>] [-EnableSecureBoot <OnOffState>] [-FirstBootDevice <VMComponentObject>] [-Passthru] [-PreferredNetworkBootProtocol <IPProtocolPreference>] [-Confirm] [-WhatIf] [<CommonParameters>]

Detailed Description

The Set-VMFirmware cmdlet sets the firmware configuration of a Generation 2 virtual machine.

Parameters

-BootOrder [<VMComponentObject[]>]

Specifies an array of devices. The boot order determines the order of the devices from which to boot. The acceptable values for this parameter are:

  -- VMBootSource

  -- VMNetworkAdapter

  -- HardDiskDrive

  -- DVDDrive

The VMBootSource value describes a boot entry in firmware nonvolatile Random Access Memory (NVRAM).

Required?   false
Position?   named
Default value?  
Accept pipeline input?   false
Accept wildcard characters?   false

-ComputerName [<String[]>]

Specifies the names of the Hyper-V hosts whose firmware configuration you want to modify.

Required?   false
Position?   named
Default value?   .
Accept pipeline input?   false
Accept wildcard characters?   false

-EnableSecureBoot [<OnOffState>]

Specifies whether to enable secure boot. The acceptable values for this parameter are:

  -- On

  -- Off

Secure boot uses a public key infrastructure that protects the integrity of the operating system.

Required?   false
Position?   named
Default value?  
Accept pipeline input?   false
Accept wildcard characters?   false

-FirstBootDevice [<VMComponentObject>]

Specifies the device from which to attempt to boot from first. The acceptable values for this parameter are:

  -- VMBootSource

  -- VMNetworkAdapter

  -- HardDiskDrive

  -- DVDDrive

The VMBootSource value describes a boot entry in firmware NVRAM.

Required?   false
Position?   named
Default value?  
Accept pipeline input?   false
Accept wildcard characters?   false

-Passthru [<SwitchParameter>]

Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output.

Required?   false
Position?   named
Default value?  
Accept pipeline input?   false
Accept wildcard characters?   false

-PreferredNetworkBootProtocol [<IPProtocolPreference>]

Specifies the IP protocol version to use during a network boot.

Required?   false
Position?   named
Default value?  
Accept pipeline input?   false
Accept wildcard characters?   false

-VM [<VirtualMachine[]>]

Specifies the virtual machine objects for which want to modify the firmware configuration. To obtain a virtual machine object, use the Get-VM cmdlet.

Required?   true
Position?   1
Default value?  
Accept pipeline input?   True (ByValue)
Accept wildcard characters?   false

-VMFirmware [<VMFirmware[]>]

Specifies an array of virtual machine firmware configurations. The cmdlet sets the firmware configurations you specify.

Required?   true
Position?   1
Default value?  
Accept pipeline input?   True (ByValue)
Accept wildcard characters?   false

-VMName [<String[]>]

Specifies an array of names of virtual machines for which you want to modify the firmware configuration.

Required?   true
Position?   1
Default value?  
Accept pipeline input?   True (ByValue)
Accept wildcard characters?   false

-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.

Required?   false
Position?   named
Default value?   false
Accept pipeline input?   false
Accept wildcard characters?   false

-WhatIf [<SwitchParameter>]

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Required?   false
Position?   named
Default value?   false
Accept pipeline input?   false
Accept wildcard characters?   false

Input Type

Return Type

Microsoft.HyperV.Powershell.VMFirmware

Notes

Note: This cmdlet is supported only when run against Generation 2 virtual machines.

Examples

Example 1

PS> PS C:\> Set-VMFirmware "Test VM" -EnableSecureBoot On

This example enables secure boot functionality on the virtual machine

Synopsis

Configures a Fibre Channel host bus adapter on a virtual machine.

Syntax

Set-VMFibreChannelHba [-VMName] <String> [-WorldWideNodeNameSetA] <String> [-WorldWidePortNameSetA] <String> [-WorldWideNodeNameSetB] <String> [-WorldWidePortNameSetB] <String> [-ComputerName <String[]>] [-Passthru] -SanName <String> [-Confirm] [-WhatIf] [<CommonParameters>]

Set-VMFibreChannelHba [-VMName] <String> [-WorldWideNodeNameSetA] <String> [-WorldWidePortNameSetA] <String> [-WorldWideNodeNameSetB] <String> [-WorldWidePortNameSetB] <String> [-ComputerName <String[]>] [-Passthru] -GenerateWwn [-Confirm] [-WhatIf] [<CommonParameters>]

Set-VMFibreChannelHba [-VMName] <String> [-WorldWideNodeNameSetA] <String> [-WorldWidePortNameSetA] <String> [-WorldWideNodeNameSetB] <String> [-WorldWidePortNameSetB] <String> [-ComputerName <String[]>] [-NewWorldWideNodeNameSetA <String>] [-NewWorldWideNodeNameSetB <String>] [-NewWorldWidePortNameSetA <String>] [-NewWorldWidePortNameSetB <String>] [-Passthru] [-Confirm] [-WhatIf] [<CommonParameters>]

Set-VMFibreChannelHba [-VMFibreChannelHba] <VMFibreChannelHba> [-Passthru] -GenerateWwn [-Confirm] [-WhatIf] [<CommonParameters>]

Set-VMFibreChannelHba [-VMFibreChannelHba] <VMFibreChannelHba> [-NewWorldWideNodeNameSetA <String>] [-NewWorldWideNodeNameSetB <String>] [-NewWorldWidePortNameSetA <String>] [-NewWorldWidePortNameSetB <String>] [-Passthru] [-Confirm] [-WhatIf] [<CommonParameters>]

Set-VMFibreChannelHba [-VMFibreChannelHba] <VMFibreChannelHba> [-Passthru] -SanName <String> [-Confirm] [-WhatIf] [<CommonParameters>]

Detailed Description

The Set-VMFibreChannelHba cmdlet configures a Fibre Channel host bus adapter on a virtual machine.

Parameters

-ComputerName [<String[]>]

Specifies one or more Hyper-V hosts on which a Fibre Channel host bus adapter is to be configured. NetBIOS names, IP addresses, and fully-qualified domain names are allowable. The default is the local computer

Synopsis

Configures a virtual DVD drive.

Syntax

Set-VMDvdDrive [-VMName] <String> [[-ControllerNumber] <Int32>] [[-ControllerLocation] <Int32>] [[-Path] <String>] [-AllowUnverifiedPaths] [-ComputerName <String[]>] [-Passthru] [-ResourcePoolName <String>] [-ToControllerLocation <Int32>] [-ToControllerNumber <Int32>] [-Confirm] [-WhatIf] [<CommonParameters>]

Set-VMDvdDrive [-VM] <VirtualMachine[]> [[-Path] <String>] [-AllowUnverifiedPaths] [-Passthru] [-ResourcePoolName <String>] [-ToControllerLocation <Int32>] [-ToControllerNumber <Int32>] [-Confirm] [-WhatIf] [<CommonParameters>]

Set-VMDvdDrive [-VMDvdDrive] <DvdDrive[]> [[-Path] <String>] [-AllowUnverifiedPaths] [-Passthru] [-ResourcePoolName <String>] [-ToControllerLocation <Int32>] [-ToControllerNumber <Int32>] [-Confirm] [-WhatIf] [<CommonParameters>]

Detailed Description

The Set-VMDvdDrive cmdlet configures the controller and location of a virtual DVD drive.

Parameters

-ComputerName [<String[]>]

Specifies one or more Hyper-V hosts on which the DVD drive is to be configured. NetBIOS names, IP addresses, and fully-qualified domain names are allowable. The default is the local computer