< Back

Get-LaCompliancePolicy

Sun Jan 19, 2020 6:26 pm

NAME Get-LaCompliancePolicy



SYNOPSIS

Report on each Office 365 Retention Policies, Label Polices (including Auto-Applied Label Policies) and the Labels

linked to each (policy).





SYNTAX

Get-LaCompliancePolicy [<CommonParameters>]





DESCRIPTION

Report on each Office 365 Retention Policies, Label Polices (including Auto-Applied Label Policies) and the Labels

linked to each (policy).



Make sure you are first connected to the Office 365 compliance service. Simply use Get-LaConnected, e.g.

Get-LaConnected -Tenant Contoso -Compliance





PARAMETERS

<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



NOTES









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



Get-LaConnected -Tenant Contoso -Compliance



Get-LaCompliancePolicy | Out-GridView





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



Get-LaConnected -Tenant Contoso -Compliance



Get-LaCompliancePolicy | Export-Csv ./labelsandpols.csv -NoTypeInformation







RELATED LINKS