@@ -53,7 +53,7 @@ Remove-VMDirectVirtualDisk @parameters
5353
5454### Example 2: Detach a virtual disk by using the virtual disk object
5555
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 .
5757
5858``` powershell
5959$VmDirectDisk = Get-VMDirectVirtualDisk -VMName "VM1" -CimSession "Cluster01"
@@ -83,7 +83,9 @@ Accept wildcard characters: False
8383
8484### -ControllerLocation
8585
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.
8789
8890` ` ` yaml
8991Type : System.Int32
@@ -99,7 +101,8 @@ Accept wildcard characters: False
99101
100102### -ControllerNumber
101103
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.
103106
104107` ` ` yaml
105108Type : System.Int32
@@ -115,7 +118,8 @@ Accept wildcard characters: False
115118
116119### -ControllerType
117120
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.
119123
120124` ` ` yaml
121125Type : ControllerType
@@ -132,7 +136,7 @@ Accept wildcard characters: False
132136
133137### -VirtualDisk
134138
135- Specifies the virtual disk object to detach .
139+ Specifies the virtual disk object to remove .
136140
137141` ` ` yaml
138142Type : VMDirectVirtualDisk[]
@@ -148,7 +152,7 @@ Accept wildcard characters: False
148152
149153### -VMName
150154
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 .
152156
153157` ` ` yaml
154158Type : System.String
@@ -177,7 +181,8 @@ Specifies the name of the virtual machine.
177181
178182### VMDirectVirtualDisk[]
179183
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.
181186
182187## Outputs
183188
0 commit comments