Skip to content

Commit 320f66f

Browse files
committed
More edits
1 parent 69413fb commit 320f66f

File tree

3 files changed

+18
-7
lines changed

3 files changed

+18
-7
lines changed

docset/winserver2025-ps/VMDirectStorage/Add-VMDirectVirtualDisk.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ disk to the VM.
4949

5050
### Example 1: Attach a virtual disk by specifying VM name and controller details
5151

52-
This example attaches the virtual disk with the unique ID "111BBE22FD037E4EB87F366648FBF111" to the
53-
virtual machine named "VM1" at controller 0, location 1.
52+
This example attaches the virtual disk with the unique ID `111BBE22FD037E4EB87F366648FBF111` to the
53+
virtual machine named `VM1` at controller 0, location 1.
5454

5555
```powershell
5656
$parameters = @{
@@ -66,8 +66,8 @@ Add-VMDirectVirtualDisk @parameters
6666

6767
### Example 2: Attach a virtual disk by using a virtual disk object
6868

69-
This example gets the Storage Spaces Direct virtual disk object named "Volume01" and the VM object
70-
named "VM1", and then directly attaches the disk to the VM.
69+
This example gets the Storage Spaces Direct virtual disk object named `Volume01` and the VM object
70+
named `VM1`, and then directly attaches the disk to the VM.
7171

7272
```powershell
7373
$virtualDisk = Get-VirtualDisk -Friendlyname "Volume01"
@@ -80,7 +80,10 @@ Add-VMDirectVirtualDisk -VM $vm -VirtualDiskUniqueId $virtualDisk.UniqueId
8080

8181
### -CimSession
8282

83-
Specifies the CIM session to use for the operation. This is useful for managing remote systems.
83+
Runs the command using the specified CIM session. Enter a variable that contains the CIM session, or
84+
a command that creates or gets the CIM session, such as `New-CimSession` or `Get-CimSession`. For more
85+
information, see
86+
[about_CimSession](/powershell/module/microsoft.powershell.core/about/about_cimsession).
8487

8588
```yaml
8689
Type: Microsoft.Management.Infrastructure.CimSession[]

docset/winserver2025-ps/VMDirectStorage/Get-VMDirectVirtualDisk.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ This command retrieves all virtual disks attached to the virtual machine named "
5151

5252
```powershell
5353
Get-VMDirectVirtualDisk -VMName "VM1"
54+
```
5455

56+
```Output
5557
VMName ControllerType ControllerNumber ControllerLocation VirtualDiskFriendlyName VirtualDiskUniqueId
5658
------ -------------- ---------------- ------------------ ----------------------- -------------------
5759
VM1 SCSI 0 1 Volume01 111BBE22FD037E4E...
@@ -71,7 +73,10 @@ Get-VMDirectVirtualDisk -VM $vm
7173

7274
### -CimSession
7375

74-
Specifies the CIM session to use for the operation. This is useful for managing remote systems.
76+
Runs the command using the specified CIM session. Enter a variable that contains the CIM session, or
77+
a command that creates or gets the CIM session, such as `New-CimSession` or `Get-CimSession`. For more
78+
information, see
79+
[about_CimSession](/powershell/module/microsoft.powershell.core/about/about_cimsession).
7580

7681
```yaml
7782
Type: Microsoft.Management.Infrastructure.CimSession[]

docset/winserver2025-ps/VMDirectStorage/Remove-VMDirectVirtualDisk.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ Remove-VMDirectVirtualDisk -VirtualDisk $virtualDisk
6464

6565
### -CimSession
6666

67-
Specifies the CIM session to use for the operation. This is useful for managing remote systems.
67+
Runs the command using the specified CIM session. Enter a variable that contains the CIM session, or
68+
a command that creates or gets the CIM session, such as `New-CimSession` or `Get-CimSession`. For more
69+
information, see
70+
[about_CimSession](/powershell/module/microsoft.powershell.core/about/about_cimsession).
6871

6972
```yaml
7073
Type: Microsoft.Management.Infrastructure.CimSession[]

0 commit comments

Comments
 (0)