|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Add-NaFpolicyExtension
NAME
Add-NaFpolicyExtension
SYNOPSIS
Adds to the list of extensions in exclude or include set.
SYNTAX
Add-NaFpolicyExtension [-Name] <String> [-SetName] <String> [-Extensions] <S
tring[]> [-Controller <NaController>] [-WhatIf] [-Confirm] [<CommonParameter
s>]
DESCRIPTION
Adds to the list of extensions in exclude or include set. Exlcude set defin
es extension patterns that won't trigger fpolicy processing.
PARAMETERS
-Name <String>
Name of the fpolicy to modify extension lists for.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-SetName <String>
Defines to which set (exclude or include) the add will be applied to. Po
ssible values: "exclude", "include".
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Extensions <String[]>
List of extensions. Allowed are only DOS like, three character long exte
nsions. The extensions are case insensitive. Supported wild card values:
"???" to match any extension and "?" to match any character. Examples o
f allowed extension specifications: EXE ??? ?XT P??
Required? true
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Controller <NaController>
The Data ONTAP controller object, embodied by an NaController object. T
his parameter is returned by the Connect-NaController cmdlet. If not sp
ecified, the value in the global variable CurrentNaController is used.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm
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 and OutVariable. For more information, type,
"get-help about_commonparameters".
INPUTS
OUTPUTS
NetApp.Ontapi.Filer.Fpolicy.PolicyInfo
NOTES
Category: fpolicy
API: fpolicy-extensions
-------------- Example 1 --------------
C:\PS>Add-NaFpolicyExtension policy1 include EXE ??T J?? | Get-NaFpolicyExte
nsionList
Adds the extensions "EXE", "??T", and "J??" to the include list for policy1
then get the extension list for policy1.
Name : policy1
Include : {???, ??T, EXE, J??}
Exclude : {}
-------------- Example 2 --------------
C:\PS>Add-NaFpolicyExtension policy1 exclude TXT | Get-NaFpolicyExtensionLis
t
Add the extension TXT to the exclude list for policy1 then get the extension
list for policy1.
Name : policy1
Include : {???, ??T, EXE, J??}
Exclude : {TXT}
RELATED LINKS
Remove-NaFpolicyExtension
Set-NaFpolicyExtensionList
Reset-NaFpolicyExtensionList
Get-NaFpolicyExtensionList
| Copyright © 2012 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|