< Back

Get-LinaProtectionRule

Fri Jan 10, 2020 9:19 pm

NAME Get-LinaProtectionRule



SYNOPSIS

Retrieves the protection rules on a Lina server.





SYNTAX

Get-LinaProtectionRule [-Name <String>] [<CommonParameters>]



Get-LinaProtectionRule [-ID <Int32>] [<CommonParameters>]





DESCRIPTION

Retrieves the protection rules on a Lina server. Returns a set of file categories that correspond to the filter

criteria provided.





PARAMETERS

-Name <String>

Optional : Name of the protection rule to retrieve. Wilcards are allowed. For example : *FILECAT*



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ID <Int32>

Optional : ID of the protection rule to retrieve.



Required? false

Position? named

Default value 0

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

None





OUTPUTS

Array of LinaProtectionRules Objects





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-LinaProtectionRule



Retrieves all the protection rules.









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-LinaProtectionRule -Name "*Office*"



Retrieves all the protection rules with Office inside their names.











RELATED LINKS