Cannot find Sensitivity ID to apply a label with PowerShell

New Contributor

Hi everyone,

I created and publish Sensitivity labels the followings:



And I use Powershell to apply Sensitivity as the following:


I can get ID but I use this ID to apply Sensitivity label then has the error above.

I use : Set-AIPFileLabel -Path D:\DocumentTest\ -LabelId 7de79cc8-8618-4629-97dc-981860a8f817

Error : Set-AIPFileLabel : Can't find label ID: 7de79cc8-8618-4629-97dc-981860a8f817

Please help me resolve this error.

Thank you,


1 Reply
Have you checked if the label is included in the Labelpolicy by using the Get-LabelPolicy cmdlet? (