Forum Discussion

Johnavata19's avatar
Johnavata19
Copper Contributor
Nov 20, 2020

Cannot find Sensitivity ID to apply a label with PowerShell

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,

John

Resources