|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Add-NcFileDirectorySecurityPolicyTask
NAME
Add-NcFileDirectorySecurityPolicyTask
SYNOPSIS
Add a file security policy task.
SYNTAX
Add-NcFileDirectorySecurityPolicyTask [-Name] <String> [-Path] <String> [-Se
curityType <String>] [-NtfsMode <String>] [-NtfsSecurityDescriptor <String>]
[-Index <Int32>] [-VserverContext <String>] [-Controller <NcController[]>]
[<CommonParameters>]
Add-NcFileDirectorySecurityPolicyTask [-Name] <String> [-Path] <String> [-Se
curityType <String>] [-NtfsMode <String>] [-NtfsSecurityDescriptor <String>]
[-Index <Int32>] -PassThru [-VserverContext <String>] [-Controller <NcContr
oller[]>] [<CommonParameters>]
DESCRIPTION
Add a file security policy task. A task maps security descriptor with a fil
e or folder.
PARAMETERS
-Name <String>
The name of the policy to which the task needs to be added.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Path <String>
The file or folder path of the task.
Required? true
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-SecurityType <String>
The type of security. Possible values: "ntfs", "nfsv4"
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-NtfsMode <String>
NTFS propagation mode. Possible values: "propagate", "ignore", "replace
"
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-NtfsSecurityDescriptor <String>
NTFS security descriptor identifier.
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Index <Int32>
the target index/position of this task in the policy. If a policy has a
lready 5 tasks and this is the 6th task you are adding and you want to a
dd this task as 2nd task, you can specifiy the index 2. By default the t
ask gets added as last task. If the index number exceeds the number of p
ositions, it will go at the end.
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-VserverContext <String>
Vserver to which to direct this command. If the currently connected con
troller (as embodied by an NcController object) represents a cluster, th
ere are multiple means to address commands to one of its vservers. Eith
er set the Vserver field on the NcController object to direct all subseq
uent commands to that vserver, or supply the VserverContext parameter to
an individual cmdlet. Only cmdlets which may be invoked on vservers of
fer the VserverContext parameter.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Controller <NcController[]>
A clustered Data ONTAP controller to receive this cmdlet, as embodied by
an NcController object. This parameter is returned by the Connect-NcCo
ntroller cmdlet. If not specified, the value in the global variable Cur
rentNcController is used. In the latter case, if CurrentNcController co
ntains a collection of NcController objects, this cmdlet is invoked on e
ach controller in succession.
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-PassThru
If specified, output an object representing the NTFS security policy.
Required? true
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 and OutVariable. For more information, type,
"get-help about_commonparameters".
INPUTS
OUTPUTS
DataONTAP.C.Types.FileDirectorySecurity.FileDirectorySecurityPolicyTask
NOTES
Category: file directory security
API: file-directory-security-policy-task-add
Family: vserver
-------------- Example 1 --------------
C:\PS>Add-NcFileDirectorySecurityPolicyTask -Name policy_1 -Path /powershell
/cifs -SecurityType ntfs -NtfsSecurityDescriptor ntfssd
Add the security policy task to the given path.
NcController : 10.63.165.62
NtfsMode : propagate
NtfsSd : ntfssd
Path : /powershell/cifs
PolicyName : policy_1
SecurityType : ntfs
TaskIndexNumber : 1
Vserver : beam01
TaskIndexNumberSpecified : True
RELATED LINKS
Remove-NcFileDirectorySecurityPolicyTask
Set-NcFileDirectorySecurityPolicyTask
Get-NcFileDirectorySecurityPolicyTask
| Copyright © 2013 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|