PowerShell Logo Small

Initialize-Volume



This is the built-in help made by Microsoft for the command 'Initialize-Volume', in PowerShell version 3 - as retrieved from Windows version 'Microsoft Windows Server 2012 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Formats one or more existing volumes or a new volume on an existing partition.

SYNTAX


Format-Volume [-DriveLetter] <Char[]> [-AllocationUnitSize <UInt32>] [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-Compress
[<SwitchParameter>]] [-FileSystem <String>] [-Force [<SwitchParameter>]] [-Full [<SwitchParameter>]] [-NewFileSystemLabel <String>]
[-SetIntegrityStreams <Boolean>] [-ShortFileNameSupport <Boolean>] [-ThrottleLimit <Int32>] [-UseLargeFRS [<SwitchParameter>]] [-Confirm
[<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]
Format-Volume [-AllocationUnitSize <UInt32>] [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-Compress [<SwitchParameter>]]
[-FileSystem <String>] [-Force [<SwitchParameter>]] [-Full [<SwitchParameter>]] [-NewFileSystemLabel <String>] [-Partition <CimInstance>]
[-SetIntegrityStreams <Boolean>] [-ShortFileNameSupport <Boolean>] [-ThrottleLimit <Int32>] [-UseLargeFRS [<SwitchParameter>]] [-Confirm
[<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]
Format-Volume [-AllocationUnitSize <UInt32>] [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-Compress [<SwitchParameter>]]
[-FileSystem <String>] [-Force [<SwitchParameter>]] [-Full [<SwitchParameter>]] [-NewFileSystemLabel <String>] [-SetIntegrityStreams
<Boolean>] [-ShortFileNameSupport <Boolean>] [-ThrottleLimit <Int32>] [-UseLargeFRS [<SwitchParameter>]] -InputObject <CimInstance[]>
[-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]
Format-Volume [-AllocationUnitSize <UInt32>] [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-Compress [<SwitchParameter>]]
[-FileSystem <String>] [-Force [<SwitchParameter>]] [-Full [<SwitchParameter>]] [-NewFileSystemLabel <String>] [-SetIntegrityStreams
<Boolean>] [-ShortFileNameSupport <Boolean>] [-ThrottleLimit <Int32>] [-UseLargeFRS [<SwitchParameter>]] -FileSystemLabel <String[]> [-Confirm
[<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]
Format-Volume [-AllocationUnitSize <UInt32>] [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-Compress [<SwitchParameter>]]
[-FileSystem <String>] [-Force [<SwitchParameter>]] [-Full [<SwitchParameter>]] [-NewFileSystemLabel <String>] [-SetIntegrityStreams
<Boolean>] [-ShortFileNameSupport <Boolean>] [-ThrottleLimit <Int32>] [-UseLargeFRS [<SwitchParameter>]] -ObjectId <String[]> [-Confirm
[<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]
Format-Volume [-AllocationUnitSize <UInt32>] [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-Compress [<SwitchParameter>]]
[-FileSystem <String>] [-Force [<SwitchParameter>]] [-Full [<SwitchParameter>]] [-NewFileSystemLabel <String>] [-SetIntegrityStreams
<Boolean>] [-ShortFileNameSupport <Boolean>] [-ThrottleLimit <Int32>] [-UseLargeFRS [<SwitchParameter>]] -Path <String[]> [-Confirm
[<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Format-Volume cmdlet formats one or more existing volumes, or a new volume on an existing partition. This cmdlet returns the object
representing the volume that was just formatted, with all properties updated to reflect the format operation.


To create a new volume, use this cmdlet in conjunction with the Initialize-Disk and New-Partition cmdlets.



<

RELATED LINKS

Get-Disk
Initialize-Disk
New-Partition
Get-Partition
Get-Volume
Optimize-Volume
Repair-Volume
Set-Volume

REMARKS

<

Examples


Example 1: Quick format

PS C:\> Format-Volume -DriveLetter D



This example performs a format of the D volume.




Example 2: Full format using FAT32

PS C:\> Format-Volume -DriveLetter C -FileSystem FAT32 -FullFormat –Force



This example performs a full format of the D volume using the FAT32 file system.