File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
docset/winserver2022-ps/hyper-v Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -42,21 +42,21 @@ The **Add-VMDvdDrive** cmdlet adds a DVD drive to a virtual machine.
4242
4343### Example 1
4444```
45- PS C:\> Add-VMDvdDrive -VMName Test -Path D:\ISOs\disc1.iso
45+ Add-VMDvdDrive -VMName Test -Path D:\ISOs\disc1.iso
4646```
4747
4848This example adds a virtual DVD drive using file D:\ISOs\disc1.iso to virtual machine Test.
4949
5050### Example 2
5151```
52- PS C:\> Get-VM Test | Add-VMDvdDrive -ControllerNumber 1
52+ Get-VM Test | Add-VMDvdDrive -ControllerNumber 1
5353```
5454
5555This example adds a virtual DVD drive using controller number 1 to virtual machine Test.
5656
5757### Example 3
5858```
59- PS C:\> Get-VMIdeController -VMName Test | Add-VMDvdDrive -Path E:\
59+ Get-VMIdeController -VMName Test | Add-VMDvdDrive -Path E:\
6060```
6161
6262This example adds virtual DVD drives using the IDE controllers from virtual machine Test.
Original file line number Diff line number Diff line change @@ -44,14 +44,14 @@ Removes virtual machine new 1.
4444
4545### Example 2
4646```
47- PS C:\> Remove-VM -Name "new 2" -Force
47+ Remove-VM -Name "new 2" -Force
4848```
4949
5050Removes virtual machine new 2, suppressing the confirmation prompt.
5151
5252### Example 3
5353```
54- PS C:\> Get-VM -Name New* | Remove-VM -Force
54+ Get-VM -Name New* | Remove-VM -Force
5555```
5656
5757Removes with no confirmation prompt all virtual machines having names starting with New.
You can’t perform that action at this time.
0 commit comments