New-CMStorageFolder

Creates a new storage folder in Configuration Manager.

Syntax

New-CMStorageFolder
   -StorageFolderName <String>
   [-MaximumClientNumber <Int32>]
   [-MinimumFreeSpace <Int32>]
   [-SpaceUnit <MinSpaceType>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

The New-CMStoragefolder cmdlet creates a new storage folder to store user migration data in Microsoft System Center Configuration Manager.

A storage folder identifies a location on a state migration point site system to store user migration data. Use this cmdlet in conjunction with the Add-CMStateMigrationPoint cmdlet to create a new state migration point with storage folders.

Examples

Example 1: Create a new storage folder

PS C:\> New-CMStoragefolder -MaximumClientNumber 80 -MinimumFreeSpace 10 -SpaceUnit Megabyte -StorageFolderName "D:\Contoso-Mobile-Users"

This command creates a new storage folder for migration data by using the maximum number of clients, minimum free space, and storage folder path parameters.

Required Parameters

-StorageFolderName

Specifies a local path for the storage folder. The associated state migration point site system role in Configuration Manager uses this path.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-DisableWildcardHandling

DisableWildcardHandling treats wildcard characters as literal character values. Cannot be combined with ForceWildcardHandling.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForceWildcardHandling

ForceWildcardHandling processes wildcard characters and may lead to unexpected behavior (not recommended). Cannot be combined with DisableWildcardHandling.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-MaximumClientNumber

Specifies the maximum number of clients that the storage folder can hold. The storage folder contains user state migration data in Configuration Manager. Valid values are: numbers between 1 and 99999.

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-MinimumFreeSpace

Specifies the minimum amount of free space for storage of user state migration data. Valid values are: numbers between 1 - 99999 when specifying a byte value, or numbers between 1 - 100 when specifying a percentage.

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SpaceUnit

Specifies the storage units for the MinimumFreeSpace parameter.

Type:MinSpaceType
Parameter Sets:Megabyte, Gigabyte, Percent
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False