@@ -53,7 +53,7 @@ Remove-VMDirectVirtualDisk @parameters
53
53
54
54
### Example 2: Detach a virtual disk by using the virtual disk object
55
55
56
- This example gets the virtual disk object attached to ` VM1 ` on ` Cluster01 ` and then removes it .
56
+ This example gets all of the virtual disks directly attached to ` VM1 ` on ` Cluster01 ` and then removes them .
57
57
58
58
``` powershell
59
59
$VmDirectDisk = Get-VMDirectVirtualDisk -VMName "VM1" -CimSession "Cluster01"
@@ -83,7 +83,9 @@ Accept wildcard characters: False
83
83
84
84
### -ControllerLocation
85
85
86
- Specifies the location of the virtual disk on the controller.
86
+ Specifies the location on the controller of the virtual disk to remove. If you don't specify a
87
+ controller location, the cmdlet removes all directly virtual disks attached to the specified
88
+ controller.
87
89
88
90
` ` ` yaml
89
91
Type : System.Int32
@@ -99,7 +101,8 @@ Accept wildcard characters: False
99
101
100
102
### -ControllerNumber
101
103
102
- Specifies the number of the controller where the virtual disk is attached.
104
+ Specifies the number of the controller where the virtual disk is attached. If you don't specify a
105
+ controller number, the cmdlet removes all directly virtual disks on the specified controller.
103
106
104
107
` ` ` yaml
105
108
Type : System.Int32
@@ -115,7 +118,8 @@ Accept wildcard characters: False
115
118
116
119
### -ControllerType
117
120
118
- Specifies the type of controller. Only SCSI is supported.
121
+ Specifies the type of controller used by the VM. If you don't specify a controller type, the cmdlet
122
+ uses the SCSI controller type, which is the only type supported at this time.
119
123
120
124
` ` ` yaml
121
125
Type : ControllerType
@@ -132,7 +136,7 @@ Accept wildcard characters: False
132
136
133
137
### -VirtualDisk
134
138
135
- Specifies the virtual disk object to detach .
139
+ Specifies the virtual disk object to remove .
136
140
137
141
` ` ` yaml
138
142
Type : VMDirectVirtualDisk[]
@@ -148,7 +152,7 @@ Accept wildcard characters: False
148
152
149
153
### -VMName
150
154
151
- Specifies the name of the virtual machine from which the virtual disk will be detached .
155
+ Specifies the name of the virtual machine from which the directly attached virtual disk will be removed .
152
156
153
157
` ` ` yaml
154
158
Type : System.String
@@ -177,7 +181,8 @@ Specifies the name of the virtual machine.
177
181
178
182
### VMDirectVirtualDisk[]
179
183
180
- Specifies the virtual disk objects to be detached.
184
+ Specifies the virtual disk objects to be removed. You can get the virtual disk object by using the
185
+ [Get-VMDirectVirtualDisk](Get-VMDirectVirtualDisk.md) cmdlet.
181
186
182
187
## Outputs
183
188
0 commit comments