< Back

Get-LinaProtection

Fri Jan 10, 2020 9:18 pm

NAME Get-LinaProtection



SYNOPSIS

Retrieves the protection policies on a Lina server.





SYNTAX

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



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



Get-LinaProtection [-ProtectionRule <String>] [<CommonParameters>]



Get-LinaProtection [-ProtectionZone <String>] [<CommonParameters>]





DESCRIPTION

Retrieves the protection policies on a Lina server. Returns a set of protections that correspond to the filter

criteria provided.





PARAMETERS

-Name <String>

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



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ID <Int32>

Optional : ID of the protection to retrieve.



Required? false

Position? named

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-ProtectionRule <String>

Optional : Filter by Protection rule name used in subrules. No wildcard allowed.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ProtectionZone <String>

Optional : Filter by Protection zone name used in subrules. No wildcard allowed.



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

None





OUTPUTS

Array of LinaProtection Objects





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



PS C:\\>Get-LinaProtection



Retrieves all the protections.









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



PS C:\\>Get-LinaProtection -Name "*PROT*"



Retrieves all the protection with PROT inside their names.









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>Get-LinaProtection -ID 15



Retrieves the protection with ID 15









-------------------------- EXAMPLE 4 --------------------------



PS C:\\>Get-LinaProtection -ProtectionZone "The entire computer"



Retrieves the protection with a subrule containing the protection zone named "MyProtection"









-------------------------- EXAMPLE 5 --------------------------



PS C:\\>Get-LinaProtection -ProtectionRule "Protect all objects"



Retrieves the protection with a subrule containing the protection rule named "MyProtection"











RELATED LINKS