Skip to content

Commit

Permalink
Merge pull request #3519 from XXLMandalorian013/patch-2
Browse files Browse the repository at this point in the history
Update Set-VMDvdDrive.md
  • Loading branch information
sdwheeler committed Jun 15, 2023
2 parents 52227f8 + 6d8f315 commit c286355
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docset/winserver2022-ps/hyper-v/Set-VMDvdDrive.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,22 @@ The **Set-VMDvdDrive** cmdlet configures the controller and location of a virtua

### Example 1
```
PS C:\> Set-VMDvdDrive -VMName TestVM -Path .\WinBuild.iso
Set-VMDvdDrive -VMName TestVM -Path .\WinBuild.iso
```

Configures the virtual DVD drive of virtual machine TestVM to use WinBuild.iso as its media.

### Example 2
```
PS C:\> Set-VMDvdDrive -VMName TestVM -ControllerNumber 1 -ControllerLocation 0 -Path $null
Set-VMDvdDrive -VMName TestVM -ControllerNumber 1 -ControllerLocation 0 -Path $null
```

Configures the virtual DVD drive at IDE 1,0 of virtual machine TestVM to use no media.
(This ejects any existing media from the virtual DVD drive.)

### Example 3
```
PS C:\> Get-VMDvdDrive -VMName TestVM -ControllerNumber 1 -ControllerLocation 0 | Set-VMDvdDrive -ToControllerLocation 1
Get-VMDvdDrive -VMName TestVM -ControllerNumber 1 -ControllerLocation 0 | Set-VMDvdDrive -ToControllerLocation 1
```

Moves virtual DVD drive from IDE 1,0 to IDE 1,1 on virtual machine TestVM.
Expand Down

0 comments on commit c286355

Please sign in to comment.