< Back
Set-NsFilesystem
Post
NAME Set-NsFilesystem
SYNOPSIS
Sets properties of a filesystem
SYNTAX
Set-NsFilesystem [-Path] <String> [-ReferencedQuota <String>] [-Quota <String>] [-CustomProperties <String[]>]
[-NoWait] [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Sets properties of a filesystem
PARAMETERS
-Path <String>
Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-ReferencedQuota <String>
path
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Quota <String>
referencedQuotaSize
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-CustomProperties <String[]>
quotaSize
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-NoWait [<SwitchParameter>]
Invoke to make the cmdlet start the job and return the GUID of the JobID
Required? false
Position? named
Default value False
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
The cmdlet will wait (30sec) for the task to complete and return a Filesystem object for the updated filesystem
If -NoWait was invoked it will return the href of the creation task
If the cmdlet waits for more then 30sec it will return the href of the task.
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Set-FileSystem -Path p2/top2 -ReferencedQuota 10Gb
name path Available LogicalUsed ActualUsed UsedBySnapshots quotaSize compressionRatio
---- ---- --------- ----------- ---------- --------------- --------- ----------------
top2 p2/top2 10.00 Gb 12.00 Kb 24.00 Kb 0 B 15.00 Gb 1
PS C:\\> (Get-Filesystem -Path p2/top2 -Detailed)[0] | select referencedQuotaSize,example:
referencedQuotaSize example:
------------------- --------
10737418240 attribute
Create new filesystem with quotas and custom attributes.
RELATED LINKS
SYNOPSIS
Sets properties of a filesystem
SYNTAX
Set-NsFilesystem [-Path] <String> [-ReferencedQuota <String>] [-Quota <String>] [-CustomProperties <String[]>]
[-NoWait] [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Sets properties of a filesystem
PARAMETERS
-Path <String>
Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-ReferencedQuota <String>
path
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Quota <String>
referencedQuotaSize
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-CustomProperties <String[]>
quotaSize
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-NoWait [<SwitchParameter>]
Invoke to make the cmdlet start the job and return the GUID of the JobID
Required? false
Position? named
Default value False
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
The cmdlet will wait (30sec) for the task to complete and return a Filesystem object for the updated filesystem
If -NoWait was invoked it will return the href of the creation task
If the cmdlet waits for more then 30sec it will return the href of the task.
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Set-FileSystem -Path p2/top2 -ReferencedQuota 10Gb
name path Available LogicalUsed ActualUsed UsedBySnapshots quotaSize compressionRatio
---- ---- --------- ----------- ---------- --------------- --------- ----------------
top2 p2/top2 10.00 Gb 12.00 Kb 24.00 Kb 0 B 15.00 Gb 1
PS C:\\> (Get-Filesystem -Path p2/top2 -Detailed)[0] | select referencedQuotaSize,example:
referencedQuotaSize example:
------------------- --------
10737418240 attribute
Create new filesystem with quotas and custom attributes.
RELATED LINKS