Using Label Policy Rules to Troubleshoot Label Issues

Published Jan 24 2022 10:00 AM 7,477 Views

In the Microsoft Cloud, Sensitivity Labels have several components, including a label, a label policy, and one (or more) label policy rule(s). Typically, you first create a label and then publish the label so that its available for users, and when publishing a label, one (or more) label policy rule(s) is created.

Auto labeling policies are similar. You still create a label but instead publish it via an auto labeling policy and create auto labeling rule(s) based on one or more conditions. The main difference between auto labeling rules and label policy rules is that with auto labeling, the admin specifies and creates the rule(s) when creating the policy, while on label policies the rules are created based on action(s) you specified on the label.

Label actions are the specific actions that an admin sets on a label. Things like encrypt or placing a footer will generate a new entry under the "LabelActions" parameter of a label. You can see what actions exist on a label using S&C PowerShell:

$LabelName="Intended Label Name"
(Get-Label $AffectedLabel).LabelActions|ConvertFrom-Json|FT Type,SubType

Labels01.png

Each action will create a rule for each label added to the label policy. So, if you have 2 labels and each has 3 actions, you will have 6 rules on the policy for those labels (3 per label). In turn, if you place the same 2 labels in 2 policies, you'll have 12 rules (3 actions x 2 labels x 2 policies).

For example, I created the label “TestEncryptUD” which has the following actions:

labels02.png

I then published this label on two label policies (scoped to different sets of users):

labels03.png

Now, let’s see how many rules were created. For you to visualize the label policy rules, you need to specify the policy by Name, ExchangeObjectId or Guid. We’ll also need to filter rules that refer to the label “TestEncryptUd”.

So, for the first policy, we have 2 rules, one per each action. (click to expand):

labels04.png

What about the second policy?

labels05.png

It’s also 2; one per each action. As such, in total there are 4 rules in this example (2 actions x 1 label x 2 policies).

If you create a label without any actions and add it to a label policy, it will still create a rule for the action "ApplyLabel" so that users specified in the policy have it available to use and apply:

labels06.png

If you have an action but remove it after adding it to the policy, the label actions are disabled (but not removed). Once created, actions are either disabled or enabled but they all still generate rules.

labels07.png

In this case, the ApplyLabel is necessary to connect the label to the policy when no action exists.

Above we see how label actions are reflected in the label policy rules upon being added (or published) into a label policy. But that is not the only link. The parameter “settings” on the label policy rule should be the same as what’s defined in the settings of the label policy:

labels08.png

This is true for all rules associated with a specific policy. In other words, if you see a label rule that does not correctly reflect the policy settings, that rule may be causing issues for users.
Troubleshooting using Label Policy Rules and other cmdlets
Each time labels or label policies are updated, the rules are updated in the backend as well. Sometimes, either by tempering with incorrect settings (in labels or label policies) or deleting objects that haven’t finished replicating can lead to orphan label policy rules (e.g., rules that are present but refer to an incorrect label action or a label that doesn’t exist). These can cause problems when a client downloads the policies and labels. In some cases, this can lead to some or all labels not showing, or showing only in certain clients.

Now that we understand how label rules integrate with policies and labels, let’s take a look at how you can use label policy rules to find and address orphaned objects.

The problem: In the following example, Contoso organization engaged Microsoft support because they weren’t able to see labels in any of their Office apps. Changing labeling clients didn’t change the behavior. The only difference was when using the Office (UL) client, the button would not be greyed out:

labels09.png

You can find more information about both clients at The client for Azure Information Protection.

In the web client, the labels were displayed and could be used. Contoso reported that they have 4 labels and 2 label policies. Here’s what we did to troubleshoot this.

Client Logs
The first step was to export and collect logs from the installable UL plugin to assist with troubleshooting the issue. After analyzing the exported logs, especially mip_sdk.miplog, we could see several entries; one was particularly interesting:

Labels10.png

But this didn’t help much as the remaining log doesn’t indicate what is inconsistent on the labels, policies, or rules. Next, we looked at the current label configuration.

Label Configuration
Before checking the rules, we must verify that the labels do not have parsing errors and aren’t in a PendingDeletion state. For collecting this info, we can use the following:

$LabelDetails=Get-Label -IncludeDetailedLabelActions $true

Next, we filter the parameters, as shown below:

labels11.png

There are 4 labels. So, there’s no distribution or parsing issue. Let’s see how many actions these labels contain:

labels12.png

There are 2 labels with no action, 1 label with one action, and 1 label with 2 actions. This means that, if we add all 4 to a single label policy, we’d expect 5 rules to be created.

Label Policies
Let’s now take a look at the label policies by checking their DistributionStatus and Mode:

labels13.png

We can see a label policy in PendingDeletion and two in “Pending” status. If the policy shows Pending status, you should wait until its successfully distributed. Labels, label policies and label policy rules can also be in a PendingDeletion state. This should not last more than 24 hours, and if it does, we recommend contacting Microsoft support.

Next, we need to verify if the 2 label policies are really pending or not. Label policies show the correct “DistributionStatus” when you specify the label policy name. If you want to check all policies at once, you can use the following command:

$DistDetails=(Get-LabelPolicy|%{Get-LabelPolicy -Identity $_.Identity})|Select Name,DistributionStatus,Mode;DistDetails|FT

labels14.png

According to Contoso, LabelPolicy3 was deleted several days ago. So, until now we haven’t seen any errors on labels, there’s a label policy in PendingDeletion (LabelPolicy3), and the remaining two policies are correctly distributed. Now let’s check the label policy rules.

Label Policy Rules
Let’s look at LabelPolicy3 as its in PendingDeletion. Since it doesn’t contain any labels, rules shouldn’t exist, right?

labels15.png

But here we see a rule still linked to this policy that is also in a PendingDeletion state.

Next, let’s check LabelPolicy1. This policy contains all labels; therefore, we would expect 5 rules to be listed:

labels16.png

In this case, we have 6 rules. There’s a rule in PendingDeletion that was previously associated with a label called MarketingTest, which no longer exists.

Now let’s check the second policy.

labels17.png

Here we see the expected 5 rules associated with LabelPolicy3.

As stated previously, the label policy rules should reflect the same settings as the associated policy. So, for the first one (LabelPolicy1), we see:

labels18.png

It seems one of the label actions from the internal label didn’t update/replicate correctly. This can be due to several deletion actions occurring before replication completed. The DefaultLabelId values refer to the MarketingTest label, which is no longer available.

Reviewing the second one (LabelPolicy2) and its respective rules, we see:

labels19.png

Although all rule settings match the policy settings, there’s another parameter that’s incorrectly set/placed. The OutlookDefaultLabel is a label policy advanced setting.
This value is expected to have an immutable label ID assigned. If the setting is disabled, it should be removed as there is no “none” value for this option. You can learn more about advanced settings here.

Lastly, just for consistency, let’s check the last policy (LabelPolicy3):

labels20.png

Although there are no inconsistencies, we already know that the label policy and label policy rule are in PendingDeletion, and as such, they will need to be eliminated.
Working towards issue resolution
Based on the above, we conclude that:

  • LabelPolicy1 has a rule mentioning a label action for a label that no longer exists and a rule for an existing label that hasn’t correctly updated/replicated. Therefore it contains incorrect settings.
  • LabelPolicy2 has an incorrect advanced setting value (OutlookDefaultLabel -> None) which led to the same incorrect value in all associated rules.
  • LabelPolicy3 is in pending deletion state and it contains a rule that is also pending deletion.

To resolve this, the Contoso admin removed all labels from this policy using Set-LabelPolicy -Identity LabelPolicy1 -RemoveLabels Public, HR, Internal, Confidential. Next, they created a new label policy (with a new name) and re-added all the labels. After confirming the previous LabelPolicy1 has no labels, they deleted it.

Once the admin performed these actions, Microsoft Support issued a forced removal of the “PendingDeletion” rule associated with this policy and verified LabelPolicy1 was deleted.

For the second, the admin ran:

Set-LabelPolicy -Identity LabelPolicy2 -AdvancedSettings @{outlookdefaultlabel=""}

We later confirmed that all rules from this policy had the setting removed, as well.

For the last issue, Microsoft Support performed a forced deletion of the last label policy and label policy rule, both of which were in a pending deletion state.

After all this, the Contoso admin cleared/reset the labeling client (please see post appendix below) by closing all Office apps and re-opening one of them to check. Here’s what they found:

labels21.png

At this point, the issue was fixed!
Appendix
The Unified labeling plugin has a reset option but if you want to reset the built-in labeling client, you can use the UnifiedLabelingSupportTool (PowerShell Gallery | UnifiedLabelingSupportTool 3.0.1).

After installing and importing the module, you can run “UnifiedLabelingSupportTool -Reset Silent” in PowerShell with all Office apps closed. This tool can also be used to reset the Plugin or as a troubleshooting tool.

The script used for label data collection:

# Create a folder under C:\ called "Temp". Then, connected to S&C, run:

Get-Label|Export-Clixml -path "C:\Temp\Labels.xml"
$AllPolicies=Get-LabelPolicy; $AllPolicies|Export-Clixml -path "C:\Temp\LabelPolicies.xml"

# Collect label parsing issues:

Get-Label -IncludeDetailedLabelActions $true|Export-CliXml -path c:\Temp\LabelDetails.xml

# Collect Label Policy Distribution Details:

$DistDetails=Foreach ($AS in $AllPolicies) {Get-LabelPolicy $AS.name | Select Name,Dist*};$DistDetails |Export-Clixml -path C:\Temp\DistDetails.xml

# Collect LabelPolicy Rules:

$AllRules=Foreach ($AP in $AllPolicies) {Get-ccLabelPolicyRule -Policy $AP.ExchangeObjectId.guid}; $AllRules|Export-Clixml -path C:\Temp\LabelRules.xml

# For Auto Labeling Policies and Rules:

Get-AutoSensitivityLabelPolicy | Export-Clixml -Path C:\Temp\AutoLabelPolicies.xml
Get-AutoSensitivityLabelRule | Export-Clixml -Path C:\Temp\AutoLabelPolicyRules.xml

This will generate 7 xml files that can be imported to another PowerShell without the need to be connected.

For importing all the files into variables:

$path="Path to folder" # Ex: C:\testfolder
$Items=Get-ChildItem -Path $path |? {$_.Extension -match "xml"}; foreach ($it in $Items) {New-Variable -Name $it.Basename -Value (Import-Clixml -Path $it.Fullname) -Description "LabelsTroubleshoot"}; $SensitivityVars=Get-Variable |? {$_.Description -match "LabelsTroubleshoot"}| % {'$'+"$($_.Name)"};$SensitivityVars

Hopefully you found this useful! Please let me know below if questions!

Manuel Pereira
(Exchange Online Tech Lead / Support Escalation Engineer)

1 Comment
%3CLINGO-SUB%20id%3D%22lingo-sub-3070314%22%20slang%3D%22en-US%22%3EUsing%20Label%20Policy%20Rules%20to%20Troubleshoot%20Label%20Issues%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3070314%22%20slang%3D%22en-US%22%3E%3CP%3EIn%20the%20Microsoft%20Cloud%2C%20Sensitivity%20Labels%20have%20several%20components%2C%20including%20a%20label%2C%20a%20label%20policy%2C%20and%20one%20(or%20more)%20label%20policy%20rule(s).%20Typically%2C%20you%20first%20create%20a%20label%20and%20then%20publish%20the%20label%20so%20that%20its%20available%20for%20users%2C%20and%20when%20publishing%20a%20label%2C%20one%20(or%20more)%20label%20policy%20rule(s)%20is%20created.%3C%2FP%3E%0A%3CP%3EAuto%20labeling%20policies%20are%20similar.%20You%20still%20create%20a%20label%20but%20instead%20publish%20it%20via%20an%20auto%20labeling%20policy%20and%20create%20auto%20labeling%20rule(s)%20based%20on%20one%20or%20more%20conditions.%20The%20main%20difference%20between%20auto%20labeling%20rules%20and%20label%20policy%20rules%20is%20that%20with%20auto%20labeling%2C%20the%20admin%20specifies%20and%20creates%20the%20rule(s)%20when%20creating%20the%20policy%2C%20while%20on%20label%20policies%20the%20rules%20are%20created%20based%20on%20action(s)%20you%20specified%20on%20the%20label.%3C%2FP%3E%0A%3CP%3ELabel%20actions%20are%20the%20specific%20actions%20that%20an%20admin%20sets%20on%20a%20label.%20Things%20like%20encrypt%20or%20placing%20a%20footer%20will%20generate%20a%20new%20entry%20under%20the%20%22LabelActions%22%20parameter%20of%20a%20label.%20You%20can%20see%20what%20actions%20exist%20on%20a%20label%20using%20S%26amp%3BC%20PowerShell%3A%3C%2FP%3E%0A%3CP%20class%3D%22code%22%3E%24LabelName%3D%22Intended%20Label%20Name%22%3CBR%20%2F%3E(Get-Label%20%24AffectedLabel).LabelActions%7CConvertFrom-Json%7CFT%20Type%2CSubType%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Labels01.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F341881i64260F2766E2E31A%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Labels01.png%22%20alt%3D%22Labels01.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EEach%20action%20will%20create%20a%20rule%20for%20each%20label%20added%20to%20the%20label%20policy.%20So%2C%20if%20you%20have%202%20labels%20and%20each%20has%203%20actions%2C%20you%20will%20have%206%20rules%20on%20the%20policy%20for%20those%20labels%20(3%20per%20label).%20In%20turn%2C%20if%20you%20place%20the%20same%202%20labels%20in%202%20policies%2C%20you'll%20have%2012%20rules%20(3%20actions%20x%202%20labels%20x%202%20policies).%3C%2FP%3E%0A%3CP%3EFor%20example%2C%20I%20created%20the%20label%20%E2%80%9CTestEncryptUD%E2%80%9D%20which%20has%20the%20following%20actions%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22labels02.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F341882iC8FBF2120B725815%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22labels02.png%22%20alt%3D%22labels02.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EI%20then%20published%20this%20label%20on%20two%20label%20policies%20(scoped%20to%20different%20sets%20of%20users)%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22labels03.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F341883i1D948FE747728361%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22labels03.png%22%20alt%3D%22labels03.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ENow%2C%20let%E2%80%99s%20see%20how%20many%20rules%20were%20created.%20For%20you%20to%20visualize%20the%20label%20policy%20rules%2C%20you%20need%20to%20specify%20the%20policy%20by%20Name%2C%20ExchangeObjectId%20or%20Guid.%20We%E2%80%99ll%20also%20need%20to%20filter%20rules%20that%20refer%20to%20the%20label%20%E2%80%9CTestEncryptUd%E2%80%9D.%3C%2FP%3E%0A%3CP%3ESo%2C%20for%20the%20first%20policy%2C%26nbsp%3Bwe%20have%202%20rules%2C%20one%20per%20each%20action.%20(click%20to%20expand)%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22labels04.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F341884i1F93DE474AEFFF08%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22labels04.png%22%20alt%3D%22labels04.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EWhat%20about%20the%20second%20policy%3F%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22labels05.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F341885i7263AE600E5508A9%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22labels05.png%22%20alt%3D%22labels05.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EIt%E2%80%99s%20also%202%3B%20one%20per%20each%20action.%20As%20such%2C%20in%20total%20there%20are%204%20rules%20in%20this%20example%20(2%20actions%20x%201%20label%20x%202%20policies).%3C%2FP%3E%0A%3CP%3EIf%20you%20create%20a%20label%20without%20any%20actions%20and%20add%20it%20to%20a%20label%20policy%2C%20it%20will%20still%20create%20a%20rule%20for%20the%20action%20%22ApplyLabel%22%20so%20that%20users%20specified%20in%20the%20policy%20have%20it%20available%20to%20use%20and%20apply%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22labels06.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F341886i51554CAE9AC1A899%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22labels06.png%22%20alt%3D%22labels06.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EIf%20you%20have%20an%20action%20but%20remove%20it%20after%20adding%20it%20to%20the%20policy%2C%20the%20label%20actions%20are%20disabled%20(but%20not%20removed).%20Once%20created%2C%20actions%20are%20either%20disabled%20or%20enabled%20but%20they%20all%20still%20generate%20rules.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22labels07.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F341887iB1FA94D5E1B1FEB8%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22labels07.png%22%20alt%3D%22labels07.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EIn%20this%20case%2C%20the%20ApplyLabel%20is%20necessary%20to%20connect%20the%20label%20to%20the%20policy%20when%20no%20action%20exists.%3C%2FP%3E%0A%3CP%3EAbove%20we%20see%20how%20label%20actions%20are%20reflected%20in%20the%20label%20policy%20rules%20upon%20being%20added%20(or%20published)%20into%20a%20label%20policy.%20But%20that%20is%20not%20the%20only%20link.%20The%20parameter%20%E2%80%9Csettings%E2%80%9D%20on%20the%20label%20policy%20rule%20should%20be%20the%20same%20as%20what%E2%80%99s%20defined%20in%20the%20settings%20of%20the%20label%20policy%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22labels08.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F341888iC43F136CBB43340E%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22labels08.png%22%20alt%3D%22labels08.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThis%20is%20true%20for%20all%20rules%20associated%20with%20a%20specific%20policy.%20In%20other%20words%2C%20if%20you%20see%20a%20label%20rule%20that%20does%20not%20correctly%20reflect%20the%20policy%20settings%2C%20that%20rule%20may%20be%20causing%20issues%20for%20users.%3CBR%20%2F%3E%3CFONT%20size%3D%226%22%3ETroubleshooting%20using%20Label%20Policy%20Rules%20and%20other%20cmdlets%3C%2FFONT%3E%3CBR%20%2F%3EEach%20time%20labels%20or%20label%20policies%20are%20updated%2C%20the%20rules%20are%20updated%20in%20the%20backend%20as%20well.%20Sometimes%2C%20either%20by%20tempering%20with%20incorrect%20settings%20(in%20labels%20or%20label%20policies)%20or%20deleting%20objects%20that%20haven%E2%80%99t%20finished%20replicating%20can%20lead%20to%20orphan%20label%20policy%20rules%20(e.g.%2C%20rules%20that%20are%20present%20but%20refer%20to%20an%20incorrect%20label%20action%20or%20a%20label%20that%20doesn%E2%80%99t%20exist).%20These%20can%20cause%20problems%20when%20a%20client%20downloads%20the%20policies%20and%20labels.%20In%20some%20cases%2C%20this%20can%20lead%20to%20some%20or%20all%20labels%20not%20showing%2C%20or%20showing%20only%20in%20certain%20clients.%3C%2FP%3E%0A%3CP%3ENow%20that%20we%20understand%20how%20label%20rules%20integrate%20with%20policies%20and%20labels%2C%20let%E2%80%99s%20take%20a%20look%20at%20how%20you%20can%20use%20label%20policy%20rules%20to%20find%20and%20address%20orphaned%20objects.%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EThe%20problem%3A%3C%2FSTRONG%3E%20In%20the%20following%20example%2C%20Contoso%20organization%20engaged%20Microsoft%20support%20because%20they%20weren%E2%80%99t%20able%20to%20see%20labels%20in%20any%20of%20their%20Office%20apps.%20Changing%20labeling%20clients%20didn%E2%80%99t%20change%20the%20behavior.%20The%20only%20difference%20was%20when%20using%20the%20Office%20(UL)%20client%2C%20the%20button%20would%20not%20be%20greyed%20out%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22labels09.png%22%20style%3D%22width%3A%20834px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F341894i46C4C171A4BA7C15%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22labels09.png%22%20alt%3D%22labels09.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EYou%20can%20find%20more%20information%20about%20both%20clients%20at%20The%20client%20for%20Azure%20Information%20Protection.%3C%2FP%3E%0A%3CP%3EIn%20the%20web%20client%2C%20the%20labels%20were%20displayed%20and%20could%20be%20used.%20Contoso%20reported%20that%20they%20have%204%20labels%20and%202%20label%20policies.%20Here%E2%80%99s%20what%20we%20did%20to%20troubleshoot%20this.%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%225%22%3EClient%20Logs%3C%2FFONT%3E%3CBR%20%2F%3EThe%20first%20step%20was%20to%20export%20and%20collect%20logs%20from%20the%20installable%20UL%20plugin%20to%20assist%20with%20troubleshooting%20the%20issue.%20After%20analyzing%20the%20exported%20logs%2C%20especially%20mip_sdk.miplog%2C%20we%20could%20see%20several%20entries%3B%20one%20was%20particularly%20interesting%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Labels10.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F341898i6B69A159E46D3CD2%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Labels10.png%22%20alt%3D%22Labels10.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EBut%20this%20didn%E2%80%99t%20help%20much%20as%20the%20remaining%20log%20doesn%E2%80%99t%20indicate%20what%20is%20inconsistent%20on%20the%20labels%2C%20policies%2C%20or%20rules.%20Next%2C%20we%20looked%20at%20the%20current%20label%20configuration.%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%225%22%3ELabel%20Configuration%3C%2FFONT%3E%3CBR%20%2F%3EBefore%20checking%20the%20rules%2C%20we%20must%20verify%20that%20the%20labels%20do%20not%20have%20parsing%20errors%20and%20aren%E2%80%99t%20in%20a%20PendingDeletion%20state.%20For%20collecting%20this%20info%2C%20we%20can%20use%20the%20following%3A%3C%2FP%3E%0A%3CP%20class%3D%22code%22%3E%24LabelDetails%3DGet-Label%20-IncludeDetailedLabelActions%20%24true%3C%2FP%3E%0A%3CP%3ENext%2C%20we%20filter%20the%20parameters%2C%20as%20shown%20below%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22labels11.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F341899i3AF290C9D9F9B2E8%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22labels11.png%22%20alt%3D%22labels11.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThere%20are%204%20labels.%20So%2C%20there%E2%80%99s%20no%20distribution%20or%20parsing%20issue.%20Let%E2%80%99s%20see%20how%20many%20actions%20these%20labels%20contain%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22labels12.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F341900i572F1B2C43E9BE35%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22labels12.png%22%20alt%3D%22labels12.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThere%20are%202%20labels%20with%20no%20action%2C%201%20label%20with%20one%20action%2C%20and%201%20label%20with%202%20actions.%20This%20means%20that%2C%20if%20we%20add%20all%204%20to%20a%20single%20label%20policy%2C%20we%E2%80%99d%20expect%205%20rules%20to%20be%20created.%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%225%22%3ELabel%20Policies%3C%2FFONT%3E%3CBR%20%2F%3ELet%E2%80%99s%20now%20take%20a%20look%20at%20the%20label%20policies%20by%20checking%20their%20DistributionStatus%20and%20Mode%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22labels13.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F341901i18524F351F0D48FA%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22labels13.png%22%20alt%3D%22labels13.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EWe%20can%20see%20a%20label%20policy%20in%20PendingDeletion%20and%20two%20in%20%E2%80%9CPending%E2%80%9D%20status.%20If%20the%20policy%20shows%20Pending%20status%2C%20you%20should%20wait%20until%20its%20successfully%20distributed.%20Labels%2C%20label%20policies%20and%20label%20policy%20rules%20can%20also%20be%20in%20a%20PendingDeletion%20state.%20This%20should%20not%20last%20more%20than%2024%20hours%2C%20and%20if%20it%20does%2C%20we%20recommend%20contacting%20Microsoft%20support.%3C%2FP%3E%0A%3CP%3ENext%2C%20we%20need%20to%20verify%20if%20the%202%20label%20policies%20are%20really%20pending%20or%20not.%20%3CU%3ELabel%20policies%20show%20the%20correct%20%E2%80%9CDistributionStatus%E2%80%9D%20when%20you%20specify%20the%20label%20policy%20name%3C%2FU%3E.%20If%20you%20want%20to%20check%20all%20policies%20at%20once%2C%20you%20can%20use%20the%20following%20command%3A%3C%2FP%3E%0A%3CP%20class%3D%22code%22%3E%24DistDetails%3D(Get-LabelPolicy%7C%25%7BGet-LabelPolicy%20-Identity%20%24_.Identity%7D)%7CSelect%20Name%2CDistributionStatus%2CMode%3BDistDetails%7CFT%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22labels14.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F341902iF47DC9294D7A4C3C%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22labels14.png%22%20alt%3D%22labels14.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EAccording%20to%20Contoso%2C%20LabelPolicy3%20was%20deleted%20several%20days%20ago.%20So%2C%20until%20now%20we%20haven%E2%80%99t%20seen%20any%20errors%20on%20labels%2C%20there%E2%80%99s%20a%20label%20policy%20in%20PendingDeletion%20(LabelPolicy3)%2C%20and%20the%20remaining%20two%20policies%20are%20correctly%20distributed.%20Now%20let%E2%80%99s%20check%20the%20label%20policy%20rules.%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%225%22%3ELabel%20Policy%20Rules%3C%2FFONT%3E%3CBR%20%2F%3ELet%E2%80%99s%20look%20at%20LabelPolicy3%20as%20its%20in%20PendingDeletion.%20Since%20it%20doesn%E2%80%99t%20contain%20any%20labels%2C%20rules%20shouldn%E2%80%99t%20exist%2C%20right%3F%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22labels15.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F341903iA8BF8EBDBC3D7F8F%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22labels15.png%22%20alt%3D%22labels15.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EBut%20here%20we%20see%20a%20rule%20still%20linked%20to%20this%20policy%20that%20is%20also%20in%20a%20PendingDeletion%20state.%3C%2FP%3E%0A%3CP%3ENext%2C%20let%E2%80%99s%20check%20LabelPolicy1.%20This%20policy%20contains%20all%20labels%3B%20therefore%2C%20we%20would%20expect%205%20rules%20to%20be%20listed%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22labels16.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F341904iC936617A04B92B0B%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22labels16.png%22%20alt%3D%22labels16.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EIn%20this%20case%2C%20we%20have%206%20rules.%20There%E2%80%99s%20a%20rule%20in%20PendingDeletion%20that%20was%20previously%20associated%20with%20a%20label%20called%20MarketingTest%2C%20which%20no%20longer%20exists.%3C%2FP%3E%0A%3CP%3ENow%20let%E2%80%99s%20check%20the%20second%20policy.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22labels17.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F341905i95C11D7002E1B047%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22labels17.png%22%20alt%3D%22labels17.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EHere%20we%20see%20the%20expected%205%20rules%20associated%20with%20LabelPolicy3.%3C%2FP%3E%0A%3CP%3EAs%20stated%20previously%2C%20the%20label%20policy%20rules%20should%20reflect%20the%20same%20settings%20as%20the%20associated%20policy.%20So%2C%20for%20the%20first%20one%20(LabelPolicy1)%2C%20we%20see%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22labels18.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F341906i41FE6D51CA03539B%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22labels18.png%22%20alt%3D%22labels18.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EIt%20seems%20one%20of%20the%20label%20actions%20from%20the%20internal%20label%20didn%E2%80%99t%20update%2Freplicate%20correctly.%20This%20can%20be%20due%20to%20several%20deletion%20actions%20occurring%20before%20replication%20completed.%20The%20DefaultLabelId%20values%20refer%20to%20the%20MarketingTest%20label%2C%20which%20is%20no%20longer%20available.%3C%2FP%3E%0A%3CP%3EReviewing%20the%20second%20one%20(LabelPolicy2)%20and%20its%20respective%20rules%2C%20we%20see%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22labels19.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F341907iA67075C03C48E000%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22labels19.png%22%20alt%3D%22labels19.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EAlthough%20all%20rule%20settings%20match%20the%20policy%20settings%2C%20there%E2%80%99s%20another%20parameter%20that%E2%80%99s%20incorrectly%20set%2Fplaced.%20The%20OutlookDefaultLabel%20is%20a%20label%20policy%20advanced%20setting.%20%3CBR%20%2F%3EThis%20value%20is%20expected%20to%20have%20an%20immutable%20label%20ID%20assigned.%20If%20the%20setting%20is%20disabled%2C%20it%20should%20be%20removed%20as%20there%20is%20no%20%E2%80%9Cnone%E2%80%9D%20value%20for%20this%20option.%20You%20can%20learn%20more%20about%20advanced%20settings%20here.%3C%2FP%3E%0A%3CP%3ELastly%2C%20just%20for%20consistency%2C%20let%E2%80%99s%20check%20the%20last%20policy%20(LabelPolicy3)%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22labels20.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F341908i5D11C7E8733996A3%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22labels20.png%22%20alt%3D%22labels20.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EAlthough%20there%20are%20no%20inconsistencies%2C%20we%20already%20know%20that%20the%20label%20policy%20and%20label%20policy%20rule%20are%20in%20PendingDeletion%2C%20and%20as%20such%2C%20they%20will%20need%20to%20be%20eliminated.%3CBR%20%2F%3E%3CFONT%20size%3D%226%22%3EWorking%20towards%20issue%20resolution%3C%2FFONT%3E%3CBR%20%2F%3EBased%20on%20the%20above%2C%20we%20conclude%20that%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ELabelPolicy1%20has%20a%20rule%20mentioning%20a%20label%20action%20for%20a%20label%20that%20no%20longer%20exists%20and%20a%20rule%20for%20an%20existing%20label%20that%20hasn%E2%80%99t%20correctly%20updated%2Freplicated.%20Therefore%20it%20contains%20incorrect%20settings.%3C%2FLI%3E%0A%3CLI%3ELabelPolicy2%20has%20an%20incorrect%20advanced%20setting%20value%20(OutlookDefaultLabel%20-%26gt%3B%20None)%20which%20led%20to%20the%20same%20incorrect%20value%20in%20all%20associated%20rules.%3C%2FLI%3E%0A%3CLI%3ELabelPolicy3%20is%20in%20pending%20deletion%20state%20and%20it%20contains%20a%20rule%20that%20is%20also%20pending%20deletion.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3ETo%20resolve%20this%2C%20the%20Contoso%20admin%20removed%20all%20labels%20from%20this%20policy%20using%20Set-LabelPolicy%20-Identity%20LabelPolicy1%20-RemoveLabels%20Public%2C%20HR%2C%20Internal%2C%20Confidential.%20Next%2C%20they%20created%20a%20new%20label%20policy%20(with%20a%20new%20name)%20and%20re-added%20all%20the%20labels.%20After%20confirming%20the%20previous%20LabelPolicy1%20has%20no%20labels%2C%20they%20deleted%20it.%3C%2FP%3E%0A%3CP%3EOnce%20the%20admin%20performed%20these%20actions%2C%20Microsoft%20Support%20issued%20a%20forced%20removal%20of%20the%20%E2%80%9CPendingDeletion%E2%80%9D%20rule%20associated%20with%20this%20policy%20and%20verified%20LabelPolicy1%20was%20deleted.%3C%2FP%3E%0A%3CP%3EFor%20the%20second%2C%20the%20admin%20ran%3A%3C%2FP%3E%0A%3CP%20class%3D%22code%22%3ESet-LabelPolicy%20-Identity%20LabelPolicy2%20-AdvancedSettings%20%40%7Boutlookdefaultlabel%3D%22%22%7D%3C%2FP%3E%0A%3CP%3EWe%20later%20confirmed%20that%20all%20rules%20from%20this%20policy%20had%20the%20setting%20removed%2C%20as%20well.%3C%2FP%3E%0A%3CP%3EFor%20the%20last%20issue%2C%20Microsoft%20Support%20performed%20a%20forced%20deletion%20of%20the%20last%20label%20policy%20and%20label%20policy%20rule%2C%20both%20of%20which%20were%20in%20a%20pending%20deletion%20state.%3C%2FP%3E%0A%3CP%3EAfter%20all%20this%2C%20the%20Contoso%20admin%20cleared%2Freset%20the%20labeling%20client%20(please%20see%20post%20appendix%20below)%20by%20closing%20all%20Office%20apps%20and%20re-opening%20one%20of%20them%20to%20check.%20Here%E2%80%99s%20what%20they%20found%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22labels21.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F341909i19F2DB3A8E0A00BA%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22labels21.png%22%20alt%3D%22labels21.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EAt%20this%20point%2C%20the%20issue%20was%20fixed!%3CBR%20%2F%3EAppendix%3CBR%20%2F%3EThe%20Unified%20labeling%20plugin%20has%20a%20reset%20option%20but%20if%20you%20want%20to%20reset%20the%20built-in%20labeling%20client%2C%20you%20can%20use%20the%20UnifiedLabelingSupportTool%20(PowerShell%20Gallery%20%7C%20UnifiedLabelingSupportTool%203.0.1).%3C%2FP%3E%0A%3CP%3EAfter%20installing%20and%20importing%20the%20module%2C%20you%20can%20run%20%E2%80%9CUnifiedLabelingSupportTool%20-Reset%20Silent%E2%80%9D%20in%20PowerShell%20with%20all%20Office%20apps%20closed.%20This%20tool%20can%20also%20be%20used%20to%20reset%20the%20Plugin%20or%20as%20a%20troubleshooting%20tool.%3C%2FP%3E%0A%3CP%3EThe%20script%20used%20for%20label%20data%20collection%3A%3C%2FP%3E%0A%3CP%3E%23%20Create%20a%20folder%20under%20C%3A%5C%20called%20%22Temp%22.%20Then%2C%20connected%20to%20S%26amp%3BC%2C%20run%3A%3C%2FP%3E%0A%3CP%20class%3D%22code%22%3EGet-Label%7CExport-Clixml%20-path%20%22C%3A%5CTemp%5CLabels.xml%22%3CBR%20%2F%3E%24AllPolicies%3DGet-LabelPolicy%3B%20%24AllPolicies%7CExport-Clixml%20-path%20%22C%3A%5CTemp%5CLabelPolicies.xml%22%3C%2FP%3E%0A%3CP%3E%23%20Collect%20label%20parsing%20issues%3A%3C%2FP%3E%0A%3CP%20class%3D%22code%22%3EGet-Label%20-IncludeDetailedLabelActions%20%24true%7CExport-CliXml%20-path%20c%3A%5CTemp%5CLabelDetails.xml%3C%2FP%3E%0A%3CP%3E%23%20Collect%20Label%20Policy%20Distribution%20Details%3A%3C%2FP%3E%0A%3CP%20class%3D%22code%22%3E%24DistDetails%3DForeach%20(%24AS%20in%20%24AllPolicies)%20%7BGet-LabelPolicy%20%24AS.name%20%7C%20Select%20Name%2CDist*%7D%3B%24DistDetails%20%7CExport-Clixml%20-path%20C%3A%5CTemp%5CDistDetails.xml%3C%2FP%3E%0A%3CP%3E%23%20Collect%20LabelPolicy%20Rules%3A%3C%2FP%3E%0A%3CP%20class%3D%22code%22%3E%24AllRules%3DForeach%20(%24AP%20in%20%24AllPolicies)%20%7BGet-ccLabelPolicyRule%20-Policy%20%24AP.ExchangeObjectId.guid%7D%3B%20%24AllRules%7CExport-Clixml%20-path%20C%3A%5CTemp%5CLabelRules.xml%3C%2FP%3E%0A%3CP%3E%23%20For%20Auto%20Labeling%20Policies%20and%20Rules%3A%3C%2FP%3E%0A%3CP%20class%3D%22code%22%3EGet-AutoSensitivityLabelPolicy%20%7C%20Export-Clixml%20-Path%20C%3A%5CTemp%5CAutoLabelPolicies.xml%3CBR%20%2F%3EGet-AutoSensitivityLabelRule%20%7C%20Export-Clixml%20-Path%20C%3A%5CTemp%5CAutoLabelPolicyRules.xml%3C%2FP%3E%0A%3CP%3EThis%20will%20generate%207%20xml%20files%20that%20can%20be%20imported%20to%20another%20PowerShell%20without%20the%20need%20to%20be%20connected.%3C%2FP%3E%0A%3CP%3EFor%20importing%20all%20the%20files%20into%20variables%3A%3C%2FP%3E%0A%3CP%20class%3D%22code%22%3E%24path%3D%22Path%20to%20folder%22%20%23%20Ex%3A%20C%3A%5Ctestfolder%3CBR%20%2F%3E%24Items%3DGet-ChildItem%20-Path%20%24path%20%7C%3F%20%7B%24_.Extension%20-match%20%22xml%22%7D%3B%20foreach%20(%24it%20in%20%24Items)%20%7BNew-Variable%20-Name%20%24it.Basename%20-Value%20(Import-Clixml%20-Path%20%24it.Fullname)%20-Description%20%22LabelsTroubleshoot%22%7D%3B%20%24SensitivityVars%3DGet-Variable%20%7C%3F%20%7B%24_.Description%20-match%20%22LabelsTroubleshoot%22%7D%7C%20%25%20%7B'%24'%2B%22%24(%24_.Name)%22%7D%3B%24SensitivityVars%3C%2FP%3E%0A%3CP%3EHopefully%20you%20found%20this%20useful!%20Please%20let%20me%20know%20below%20if%20questions!%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22author%22%3EManuel%20Pereira%3C%2FSPAN%3E%3CBR%20%2F%3E(Exchange%20Online%20Tech%20Lead%20%2F%20Support%20Escalation%20Engineer)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-3070314%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20wanted%20to%20share%20tips%20for%20troubleshooting%20Label%20issues%20using%20Label%20Policy%20Rules.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3070314%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ETips%20'n%20Tricks%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Etroubleshooting%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3072488%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20Label%20Policy%20Rules%20to%20Troubleshoot%20Label%20Issues%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3072488%22%20slang%3D%22en-US%22%3E%3CP%3ESmall%20Update%20-%26nbsp%3B%3CSPAN%3EAdvanced%20setting%20OutlookDefaultLabel%20with%20value%20%22none%22%20is%20now%20a%20supported%20setting%20as%20per%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Finformation-protection%2Frms-client%2Fclientv2-admin-guide-customizations%23set-a-different-default-label-for-outlook%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ECustom%20configurations%20-%20Azure%20Information%20Protection%20unified%20labeling%20client%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Co-Authors
Version history
Last update:
‎Jan 24 2022 09:59 AM
Updated by: