You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `Add-VMDirectVirtualDisk` cmdlet attaches an existing virtual disk directly to a Hyper-V virtual machine. Direct-attached virtual disks provide improved storage performance by bypassing traditional virtual storage layers.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
174
190
175
191
## INPUTS
176
192
177
193
### System.String[]
178
194
195
+
Accepts virtual machine names as input.
196
+
179
197
### Microsoft.HyperV.PowerShell.VirtualMachine[]
180
198
199
+
Accepts virtual machine objects as input.
200
+
181
201
### Microsoft.HyperV.PowerShell.VMDriveController
182
202
203
+
Accepts VM drive controller objects as input.
204
+
183
205
## OUTPUTS
184
206
185
207
### System.Object
208
+
209
+
Returns an object representing the attached virtual disk.
210
+
186
211
## NOTES
187
212
213
+
Direct-attached virtual disks require compatible hardware and configuration.
The `Get-VMDirectVirtualDisk` cmdlet retrieves information about direct-attached virtual disks configured on Hyper-V virtual machines. You can filter results by virtual machine name, controller type, number, or location.
37
43
38
44
## EXAMPLES
39
45
40
46
### Example 1
47
+
41
48
```powershell
42
-
PS C:\> {{ Add example code here }}
49
+
PS C:\> Get-VMDirectVirtualDisk -VMName "VM01"
43
50
```
44
51
45
-
{{ Add example description here }}
52
+
This command retrieves all direct-attached virtual disks configured on the virtual machine named VM01.
46
53
47
54
## PARAMETERS
48
55
49
56
### -CimSession
50
-
{{ Fill CimSession Description }}
57
+
58
+
Specifies the CIM session to use for remote management.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
170
+
171
+
Supports common parameters. See [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
0 commit comments