PowerShell Logo Small

Initialize-Volume



This is the built-in help made by Microsoft for the command 'Initialize-Volume', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 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] [-CimSession <CimSession[]>] [-Compress] [-DisableHeatGathering] [-FileSystem <String>]
[-Force] [-Full] [-NewFileSystemLabel <String>] [-SetIntegrityStreams <Boolean>] [-ShortFileNameSupport <Boolean>] [-ThrottleLimit <Int32>] [-UseLargeFRS] [-Confirm]
[-WhatIf] [<CommonParameters>]
Format-Volume [-AllocationUnitSize <UInt32>] [-AsJob] [-CimSession <CimSession[]>] [-Compress] [-DisableHeatGathering] [-FileSystem <String>] [-Force] [-Full]
[-NewFileSystemLabel <String>] [-Partition <CimInstance>] [-SetIntegrityStreams <Boolean>] [-ShortFileNameSupport <Boolean>] [-ThrottleLimit <Int32>] [-UseLargeFRS]
[-Confirm] [-WhatIf] [<CommonParameters>]
Format-Volume [-AllocationUnitSize <UInt32>] [-AsJob] [-CimSession <CimSession[]>] [-Compress] [-DisableHeatGathering] [-FileSystem <String>] [-Force] [-Full]
[-NewFileSystemLabel <String>] [-SetIntegrityStreams <Boolean>] [-ShortFileNameSupport <Boolean>] [-ThrottleLimit <Int32>] [-UseLargeFRS] -FileSystemLabel <String[]>
[-Confirm] [-WhatIf] [<CommonParameters>]
Format-Volume [-AllocationUnitSize <UInt32>] [-AsJob] [-CimSession <CimSession[]>] [-Compress] [-DisableHeatGathering] [-FileSystem <String>] [-Force] [-Full]
[-NewFileSystemLabel <String>] [-SetIntegrityStreams <Boolean>] [-ShortFileNameSupport <Boolean>] [-ThrottleLimit <Int32>] [-UseLargeFRS] -InputObject <CimInstance[]>
[-Confirm] [-WhatIf] [<CommonParameters>]
Format-Volume [-AllocationUnitSize <UInt32>] [-AsJob] [-CimSession <CimSession[]>] [-Compress] [-DisableHeatGathering] [-FileSystem <String>] [-Force] [-Full]
[-NewFileSystemLabel <String>] [-SetIntegrityStreams <Boolean>] [-ShortFileNameSupport <Boolean>] [-ThrottleLimit <Int32>] [-UseLargeFRS] -Path <String[]> [-Confirm]
[-WhatIf] [<CommonParameters>]
Format-Volume [-AllocationUnitSize <UInt32>] [-AsJob] [-CimSession <CimSession[]>] [-Compress] [-DisableHeatGathering] [-FileSystem <String>] [-Force] [-Full]
[-NewFileSystemLabel <String>] [-SetIntegrityStreams <Boolean>] [-ShortFileNameSupport <Boolean>] [-ThrottleLimit <Int32>] [-UseLargeFRS] -ObjectId <String[]> [-Confirm]
[-WhatIf] [<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

Online Version: http://go.microsoft.com/fwlink/?LinkID=294431
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.