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.
42
42
43
43
### Example 1
44
44
```
45
- PS C:\> Add-VMDvdDrive -VMName Test -Path D:\ISOs\disc1.iso
45
+ Add-VMDvdDrive -VMName Test -Path D:\ISOs\disc1.iso
46
46
```
47
47
48
48
This example adds a virtual DVD drive using file D:\ISOs\disc1.iso to virtual machine Test.
49
49
50
50
### Example 2
51
51
```
52
- PS C:\> Get-VM Test | Add-VMDvdDrive -ControllerNumber 1
52
+ Get-VM Test | Add-VMDvdDrive -ControllerNumber 1
53
53
```
54
54
55
55
This example adds a virtual DVD drive using controller number 1 to virtual machine Test.
56
56
57
57
### Example 3
58
58
```
59
- PS C:\> Get-VMIdeController -VMName Test | Add-VMDvdDrive -Path E:\
59
+ Get-VMIdeController -VMName Test | Add-VMDvdDrive -Path E:\
60
60
```
61
61
62
62
This 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.
44
44
45
45
### Example 2
46
46
```
47
- PS C:\> Remove-VM -Name "new 2" -Force
47
+ Remove-VM -Name "new 2" -Force
48
48
```
49
49
50
50
Removes virtual machine new 2, suppressing the confirmation prompt.
51
51
52
52
### Example 3
53
53
```
54
- PS C:\> Get-VM -Name New* | Remove-VM -Force
54
+ Get-VM -Name New* | Remove-VM -Force
55
55
```
56
56
57
57
Removes with no confirmation prompt all virtual machines having names starting with New.
You can’t perform that action at this time.
0 commit comments