From b0a9a7fe62b46031c9e0fb5397f4420b876493c5 Mon Sep 17 00:00:00 2001 From: Borislav Velkov Date: Tue, 7 Sep 2021 21:56:44 +0300 Subject: [PATCH 1/2] Resolves #2610 Add example https://github.com/MicrosoftDocs/windows-powershell-docs/issues/2610 --- docset/winserver2012-ps/storage/Format-Volume.md | 11 +++++++++-- docset/winserver2012r2-ps/storage/Format-Volume.md | 11 +++++++++-- docset/winserver2016-ps/storage/Format-Volume.md | 7 +++++++ docset/winserver2019-ps/storage/Format-Volume.md | 7 +++++++ docset/winserver2022-ps/storage/Format-Volume.md | 7 +++++++ 5 files changed, 39 insertions(+), 4 deletions(-) diff --git a/docset/winserver2012-ps/storage/Format-Volume.md b/docset/winserver2012-ps/storage/Format-Volume.md index a79b6e6710..396d808002 100644 --- a/docset/winserver2012-ps/storage/Format-Volume.md +++ b/docset/winserver2012-ps/storage/Format-Volume.md @@ -69,19 +69,26 @@ To create a new volume, use this cmdlet in conjunction with the Initialize-Disk ## EXAMPLES ### Example 1: Quick format -``` +```powershell PS C:\>Format-Volume -DriveLetter D ``` This example performs a format of the D volume. ### Example 2: Full format using FAT32 -``` +```powershell PS C:\>Format-Volume -DriveLetter D -FileSystem FAT32 -Full -Force ``` This example performs a full format of the D volume using the FAT32 file system. +### Example 3: Full format using NTFS and allocation size 8192 +```powershell +PS C:\Users\Administrator> Format-Volume -DriveLetter D -FileSystem NTFS -AllocationUnitSize 8192 +``` + +This example performs a full format of the D volume using the NTFS file system and allocation size 8192. + ## PARAMETERS ### -AllocationUnitSize diff --git a/docset/winserver2012r2-ps/storage/Format-Volume.md b/docset/winserver2012r2-ps/storage/Format-Volume.md index aebd09c724..fd4b10a21c 100644 --- a/docset/winserver2012r2-ps/storage/Format-Volume.md +++ b/docset/winserver2012r2-ps/storage/Format-Volume.md @@ -71,19 +71,26 @@ To create a new volume, use this cmdlet in conjunction with the Initialize-Disk ## EXAMPLES ### Example 1: Quick format -``` +```powershell PS C:\>Format-Volume -DriveLetter D ``` This example performs a format of the D volume. ### Example 2: Full format using FAT32 -``` +```powershell PS C:\>Format-Volume -DriveLetter D -FileSystem FAT32 -Full -Force ``` This example performs a full format of the D volume using the FAT32 file system. +### Example 3: Full format using NTFS and allocation size 8192 +```powershell +PS C:\Users\Administrator> Format-Volume -DriveLetter D -FileSystem NTFS -AllocationUnitSize 8192 +``` + +This example performs a full format of the D volume using the NTFS file system and allocation size 8192. + ## PARAMETERS ### -AllocationUnitSize diff --git a/docset/winserver2016-ps/storage/Format-Volume.md b/docset/winserver2016-ps/storage/Format-Volume.md index 4cab23d9b8..ac76f66745 100644 --- a/docset/winserver2016-ps/storage/Format-Volume.md +++ b/docset/winserver2016-ps/storage/Format-Volume.md @@ -106,6 +106,13 @@ D NTFS Fixed Healthy OK Be careful, if using this cmdlet on a Windows Cluster, it would format all drives returned by the **Get-Volume** cmdlet. +### Example 4: Full format using NTFS and allocation size 8192 +```powershell +PS C:\Users\Administrator> Format-Volume -DriveLetter D -FileSystem NTFS -AllocationUnitSize 8192 +``` + +This example performs a full format of the D volume using the NTFS file system and allocation size 8192. + ## PARAMETERS ### -AllocationUnitSize diff --git a/docset/winserver2019-ps/storage/Format-Volume.md b/docset/winserver2019-ps/storage/Format-Volume.md index 225bd86f08..fd30409522 100644 --- a/docset/winserver2019-ps/storage/Format-Volume.md +++ b/docset/winserver2019-ps/storage/Format-Volume.md @@ -106,6 +106,13 @@ D NTFS Fixed Healthy OK Be careful, if using this cmdlet on a Windows Cluster, it would format all drives returned by the **Get-Volume** cmdlet. +### Example 4: Full format using NTFS and allocation size 8192 +```powershell +PS C:\Users\Administrator> Format-Volume -DriveLetter D -FileSystem NTFS -AllocationUnitSize 8192 +``` + +This example performs a full format of the D volume using the NTFS file system and allocation size 8192. + ## PARAMETERS ### -AllocationUnitSize diff --git a/docset/winserver2022-ps/storage/Format-Volume.md b/docset/winserver2022-ps/storage/Format-Volume.md index c28d0f841b..cf7a89abf2 100644 --- a/docset/winserver2022-ps/storage/Format-Volume.md +++ b/docset/winserver2022-ps/storage/Format-Volume.md @@ -106,6 +106,13 @@ D NTFS Fixed Healthy OK Be careful, if using this cmdlet on a Windows Cluster, it would format all drives returned by the **Get-Volume** cmdlet. +### Example 4: Full format using NTFS and allocation size 8192 +```powershell +PS C:\Users\Administrator> Format-Volume -DriveLetter D -FileSystem NTFS -AllocationUnitSize 8192 +``` + +This example performs a full format of the D volume using the NTFS file system and allocation size 8192. + ## PARAMETERS ### -AllocationUnitSize From dd5de0dfdc38a26dbf34e816b7f4c1b5a01f5f8d Mon Sep 17 00:00:00 2001 From: Borislav Velkov Date: Mon, 13 Sep 2021 20:22:46 +0300 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: Andres Mariano Gorzelany <36666927+get-itips@users.noreply.github.com> --- docset/winserver2012-ps/storage/Format-Volume.md | 2 +- docset/winserver2012r2-ps/storage/Format-Volume.md | 2 +- docset/winserver2016-ps/storage/Format-Volume.md | 2 +- docset/winserver2019-ps/storage/Format-Volume.md | 2 +- docset/winserver2022-ps/storage/Format-Volume.md | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docset/winserver2012-ps/storage/Format-Volume.md b/docset/winserver2012-ps/storage/Format-Volume.md index 396d808002..71fbf39c53 100644 --- a/docset/winserver2012-ps/storage/Format-Volume.md +++ b/docset/winserver2012-ps/storage/Format-Volume.md @@ -84,7 +84,7 @@ This example performs a full format of the D volume using the FAT32 file system. ### Example 3: Full format using NTFS and allocation size 8192 ```powershell -PS C:\Users\Administrator> Format-Volume -DriveLetter D -FileSystem NTFS -AllocationUnitSize 8192 +PS C:\> Format-Volume -DriveLetter D -FileSystem NTFS -AllocationUnitSize 8192 ``` This example performs a full format of the D volume using the NTFS file system and allocation size 8192. diff --git a/docset/winserver2012r2-ps/storage/Format-Volume.md b/docset/winserver2012r2-ps/storage/Format-Volume.md index fd4b10a21c..41dca6b627 100644 --- a/docset/winserver2012r2-ps/storage/Format-Volume.md +++ b/docset/winserver2012r2-ps/storage/Format-Volume.md @@ -86,7 +86,7 @@ This example performs a full format of the D volume using the FAT32 file system. ### Example 3: Full format using NTFS and allocation size 8192 ```powershell -PS C:\Users\Administrator> Format-Volume -DriveLetter D -FileSystem NTFS -AllocationUnitSize 8192 +PS C:\> Format-Volume -DriveLetter D -FileSystem NTFS -AllocationUnitSize 8192 ``` This example performs a full format of the D volume using the NTFS file system and allocation size 8192. diff --git a/docset/winserver2016-ps/storage/Format-Volume.md b/docset/winserver2016-ps/storage/Format-Volume.md index ac76f66745..1be21bc093 100644 --- a/docset/winserver2016-ps/storage/Format-Volume.md +++ b/docset/winserver2016-ps/storage/Format-Volume.md @@ -108,7 +108,7 @@ Be careful, if using this cmdlet on a Windows Cluster, it would format all drive ### Example 4: Full format using NTFS and allocation size 8192 ```powershell -PS C:\Users\Administrator> Format-Volume -DriveLetter D -FileSystem NTFS -AllocationUnitSize 8192 +PS C:\> Format-Volume -DriveLetter D -FileSystem NTFS -AllocationUnitSize 8192 ``` This example performs a full format of the D volume using the NTFS file system and allocation size 8192. diff --git a/docset/winserver2019-ps/storage/Format-Volume.md b/docset/winserver2019-ps/storage/Format-Volume.md index fd30409522..ae1543681a 100644 --- a/docset/winserver2019-ps/storage/Format-Volume.md +++ b/docset/winserver2019-ps/storage/Format-Volume.md @@ -108,7 +108,7 @@ Be careful, if using this cmdlet on a Windows Cluster, it would format all drive ### Example 4: Full format using NTFS and allocation size 8192 ```powershell -PS C:\Users\Administrator> Format-Volume -DriveLetter D -FileSystem NTFS -AllocationUnitSize 8192 +PS C:\> Format-Volume -DriveLetter D -FileSystem NTFS -AllocationUnitSize 8192 ``` This example performs a full format of the D volume using the NTFS file system and allocation size 8192. diff --git a/docset/winserver2022-ps/storage/Format-Volume.md b/docset/winserver2022-ps/storage/Format-Volume.md index cf7a89abf2..c388637aa4 100644 --- a/docset/winserver2022-ps/storage/Format-Volume.md +++ b/docset/winserver2022-ps/storage/Format-Volume.md @@ -108,7 +108,7 @@ Be careful, if using this cmdlet on a Windows Cluster, it would format all drive ### Example 4: Full format using NTFS and allocation size 8192 ```powershell -PS C:\Users\Administrator> Format-Volume -DriveLetter D -FileSystem NTFS -AllocationUnitSize 8192 +PS C:\> Format-Volume -DriveLetter D -FileSystem NTFS -AllocationUnitSize 8192 ``` This example performs a full format of the D volume using the NTFS file system and allocation size 8192.