Get-FeatureConfiguration
This cmdlet is available only in Security & Compliance PowerShell. For more information, see Security & Compliance PowerShell.
Note
This cmdlet is currently available in Public Preview, isn't available in all organizations, and is subject to change.
Use the Get-FeatureConfiguration cmdlet to view Microsoft Purview feature configurations within your organization, including:
- Collection policies.
- Advanced label based protection.
For information about the parameter sets in the Syntax section below, see Exchange cmdlet syntax.
Syntax
Default (Default)
Get-FeatureConfiguration
[[-Identity] <PolicyIdParameter>]
[-FeatureScenario] <PolicyScenario>
[-Confirm]
[-WhatIf]
[<CommonParameters>]
Description
To use this cmdlet in Security & Compliance PowerShell, you need to be assigned permissions. For more information, see Permissions in Security & Compliance.
Examples
Example 1
Get-FeatureConfiguration -FeatureScenario KnowYourData | Format-Table Name,Mode
This example returns a summary list of all collection policies in the organization.
Example 2
Get-FeatureConfiguration -FeatureScenario KnowYourData -Identity "Engineering Group"
This example returns detailed information about the specified collection policy.
Parameters
-Confirm
Applicable: Security & Compliance
This parameter is reserved for internal Microsoft use.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | cf |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-FeatureScenario
Applicable: Security & Compliance
The FeatureScenario parameter specifies the scenario for the feature configuration. Currently, the only valid values are:
KnowYourData
for collection policiesTrustContainer
for Endpoint DLP trust container
Parameter properties
Type: | PolicyScenario |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Identity
Applicable: Security & Compliance
The Identity policy specifies the feature configuration that you want to view. You can use any value that uniquely identifies the configuration. For example:
- Name
- Distinguished name (DN)
- GUID
Parameter properties
Type: | PolicyIdParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 1 |
Mandatory: | False |
Value from pipeline: | True |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-WhatIf
Applicable: Security & Compliance
This parameter is reserved for internal Microsoft use.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | wi |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.