Skip to content

Replace the EN DASH with HYPHEN-MINUS #7098

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -98,20 +98,20 @@ Get-StoragePool -IsPrimordial $true | Get-PhysicalDisk -CanPool $True
The following example creates a new storage pool named *StoragePool1* that uses all available disks.

```PowerShell
New-StoragePool FriendlyName StoragePool1 StorageSubsystemFriendlyName "Windows Storage*" PhysicalDisks (Get-PhysicalDisk CanPool $True)
New-StoragePool -FriendlyName StoragePool1 -StorageSubsystemFriendlyName "Windows Storage*" -PhysicalDisks (Get-PhysicalDisk -CanPool $True)
```

The following example creates a new storage pool, *StoragePool1*, that uses four of the available disks.

```PowerShell
New-StoragePool FriendlyName StoragePool1 StorageSubsystemFriendlyName "Windows Storage*" PhysicalDisks (Get-PhysicalDisk PhysicalDisk1, PhysicalDisk2, PhysicalDisk3, PhysicalDisk4)
New-StoragePool -FriendlyName StoragePool1 -StorageSubsystemFriendlyName "Windows Storage*" -PhysicalDisks (Get-PhysicalDisk PhysicalDisk1, PhysicalDisk2, PhysicalDisk3, PhysicalDisk4)
```

The following example sequence of cmdlets shows how to add an available physical disk *PhysicalDisk5* as a hot spare to the storage pool *StoragePool1*.

```PowerShell
$PDToAdd = Get-PhysicalDisk FriendlyName PhysicalDisk5
Add-PhysicalDisk StoragePoolFriendlyName StoragePool1 PhysicalDisks $PDToAdd Usage HotSpare
$PDToAdd = Get-PhysicalDisk -FriendlyName PhysicalDisk5
Add-PhysicalDisk -StoragePoolFriendlyName StoragePool1 -PhysicalDisks $PDToAdd -Usage HotSpare
```

## Step 2: Create a virtual disk
Expand Down Expand Up @@ -185,19 +185,19 @@ The following Windows PowerShell cmdlets perform the same function as the preced
The following example creates a 50-GB virtual disk named *VirtualDisk1* on a storage pool named *StoragePool1*.

```PowerShell
New-VirtualDisk StoragePoolFriendlyName StoragePool1 FriendlyName VirtualDisk1 Size (50GB)
New-VirtualDisk -StoragePoolFriendlyName StoragePool1 -FriendlyName VirtualDisk1 -Size (50GB)
```

The following example creates a mirrored virtual disk named *VirtualDisk1* on a storage pool named *StoragePool1*. The disk uses the storage pool's maximum storage capacity.

```PowerShell
New-VirtualDisk StoragePoolFriendlyName StoragePool1 FriendlyName VirtualDisk1 ResiliencySettingName Mirror UseMaximumSize
New-VirtualDisk -StoragePoolFriendlyName StoragePool1 -FriendlyName VirtualDisk1 -ResiliencySettingName Mirror -UseMaximumSize
```

The following example creates a 50-GB virtual disk named *VirtualDisk1* on a storage pool that is named *StoragePool1*. The disk uses the thin provisioning type.

```PowerShell
New-VirtualDisk StoragePoolFriendlyName StoragePool1 FriendlyName VirtualDisk1 Size (50GB) ProvisioningType Thin
New-VirtualDisk -StoragePoolFriendlyName StoragePool1 -FriendlyName VirtualDisk1 -Size (50GB) -ProvisioningType Thin
```

The following example creates a virtual disk named *VirtualDisk1* on a storage pool named *StoragePool1*. The virtual disk uses three-way mirroring and has a fixed size of 20 GB.
Expand Down Expand Up @@ -253,7 +253,7 @@ The following Windows PowerShell cmdlet performs the same function as the previo
The following example initializes the disks for virtual disk *VirtualDisk1*, creates a partition with an assigned drive letter, and then formats the volume with the default NTFS file system.

```PowerShell
Get-VirtualDisk FriendlyName VirtualDisk1 | Get-Disk | Initialize-Disk Passthru | New-Partition AssignDriveLetter UseMaximumSize | Format-Volume
Get-VirtualDisk -FriendlyName VirtualDisk1 | Get-Disk | Initialize-Disk -Passthru | New-Partition -AssignDriveLetter -UseMaximumSize | Format-Volume
```

## Additional information
Expand Down