COMMAND EVERYTHING.
Creates a volume with the specified file system.
Microsoft Storage reference: Creates a volume with the specified file system. The syntax and selected example below are adapted from the pinned Windows Server 2025 reference. Module availability, target configuration and delegated permissions determine whether it can run in your environment. Documentation and parameter text: Microsoft, CC BY 4.0; formatting adapted by Cmdlet World. No execution testing is claimed.
Use an account with the target resource permissions documented for New-Volume. Modifying administrative cmdlets may require elevation or delegated administration. This catalog does not assert that ordinary users can execute the command.
Windows / Storage · Windows Server 2025 documentation; feature/module prerequisites apply
-AccessPath- Specifies a drive letter, or a mount point.
-AllocationUnitSize- Specifies the allocation unit size to use when creating the volume.
-AsJob- Runs the cmdlet as a background job. Use this parameter to run commands that take a long time to complete.
-CimSession- Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSession or Get-CimSession cmdlet. The default is the current session on the local computer.
-Disk (required)- Specifies a Disk object. To obtain a Disk object, use the Get-Disk cmdlet.
-DiskNumber (required)- Specifies the disk number of the disk on which to create a volume.
-DiskPath (required)- Specifies the path of the disk on which to create a volume.
-DiskUniqueId (required)- Specifies the ID of the disk on which to create a volume.
-DriveLetter- Specifies the drive letter of the disk on which to create a volume.
-FileSystem- Specified the file system to use on the volume. The acceptable values for this parameter are: NTFS, and ReFS, as well as the cluster shared volume versions of these file systems for use on a scale-out file server: CSVFS_NTFS, and CSVFS_ReFS,
-FriendlyName (required)- Specifies the friendly name to use for the volume.
-MediaType- Specifies the media type of the storage tier. The cmdlet creates the storage tier for the media type that you specify. The acceptable values for this parameter are: - SSD - SCM - HDD Use SCM for storage-class memory such as NVDIMMs.
-NumberOfColumns- Specifies the number of columns to use when creating the volume on a Windows Storage subsystem. Columns represent the number of underlying physical disks across which one stripe of data for a volume is written.
-NumberOfGroups- Specifies the number of groups used by Local Reconstruction Coding (LRC) with a dual parity virtual disk. We recommend omitting this parameter and using the defaults.
-PhysicalDiskRedundancy- Specifies the physical disk redundancy value to use during the creation of a volume on a Windows Storage subsystem. This value represents how many failed physical disks the volume can tolerate without data loss. Redundancy values are as follows: - For two-way mirror spaces, the virtual disk can tolerate 1 failed physical disk without data loss. - For three-way mirror spaces, the virtual disk can tolerate 2 failed physical disks without data loss. - For single-parity spaces, the virtual disk can tolerate 1 failed physical disk without data loss. - For dual-parity spaces the virtual disk can tolerate 2 failed physical disks without data loss.
-ProvisioningType- Specifies the type of provisioning. The acceptable values for this parameter are: Fixed and Thin. Specify Fixed for storage spaces that use storage tiers or a clustered storage pool
-ReadCacheSize- This parameter is no longer supported.
-ResiliencySettingName- Specifies the resiliency setting (storage layout) to use for the volume. Acceptable values vary by storage subsystem. Allowed values for the Windows Storage subsystem are: Simple, Mirror, or Parity. By default, when you specify Mirror, Storage Spaces creates a two-way mirror, and when you specify Parity, Storage Spaces creates a single-parity space. To create a three-way mirror space, specify 3 for the *NumberofDataCopies* parameter or 2 for the *PhysicalDiskRedundancy* parameter. To create a dual-parity space, specify 2 for the *PhysicalDiskRedundancy* parameter and Fixed provisioning for the *ProvisioningType* parameter.
-Size- Specifies the size of the volume to create. The default unit is bytes. To specify a different unit, enter the size followed by one of the following unit values, with no spaces: Bytes, KB, MB, GB, or TB.
-StoragePool (required)- Specifies the storage pool object in which you want to create a volume. To obtain a storage pool object, use the Get-StoragePool cmdlet.
-StoragePoolFriendlyName (required)- Specifies the friendly name of the storage pool in which to create a volume.
-StoragePoolName (required)- Specifies the name of the storage pool in which to create a volume.
-StoragePoolUniqueId (required)- Specifies the unique ID of the storage pool in which to create a volume.
-StorageTierFriendlyNames- Specifies the names of storage tiers to use when creating the volume.
-StorageTierSizes- Specifies how big to make each storage tier on this volume.
-StorageTiers- Specifies the storage tier objects to use when creating the volume.
-ThrottleLimit- Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of 0 is entered, then Windows PowerShell® calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer.
-UseMaximumSize- Indicates that this cmdlet creates the largest volumn possible.
-WriteCacheSize- Specifies the size of the write-back cache. The cmdlet creates the write-back cache of the size that you specify when the cmdlet creates the virtual disk space. The following describes the behavior of this parameter based on the value that you specify: 1. If you do not specify this parameter, the cmdlet sets the value of the WriteCacheSizeDefault property from the storage pool. 1. The default setting of WriteCacheSizeDefault for a storage pool is Auto, which specifies that Windows Server automatically selects the optimal write-back cache size for your configuration. You can change the value of WriteCacheSizeDefault to a concrete value at any time. 1. The Auto setting for *WriteCacheSize* operates as follows: 1. If any of the following is true, Auto is set to 1 GB: 1. The storage pool contains at least N drives with enough capacity and you set the Usage parameter to Journal. N = 1 for simple spaces, N = 2 for two-way mirror and single parity, N = 3 for three-way mirror and dual parity. 1. The storage pool contains at least N drives with enough capacity and the media type of the virtual disk is set to SSD. N = 1 for simple spaces, N = 2 for two-way mirror and single parity, N = 3 for three-way mirror and dual parity. 1. Otherwise, Auto is set to 0 (no log) for simple and mirror spaces, and 32 MB for parity spaces. 1. If you specify Auto or 0 (zero) for this parameter and the storage space is not a parity space, the cmdlet verifies that either 3.a.i or 3.a.ii is true. If either 3.a.i or 3.a.ii is not true, you cannot set *WriteCacheSize* to Auto or 0. 1. The objective of these conditions is to help you avoid scenarios in which you force the creation of a write-back cache in situations that result in slower performance.
Windows with the Storage module and the Windows feature or management tools that provide it. Confirm target connectivity and version compatibility using the linked Microsoft reference.
This cmdlet changes system state. Review every target and parameter in the official reference, test outside production, and prepare an appropriate backup or rollback. Do not execute the example automatically.