Forum Discussion

Ukiman1014's avatar
Ukiman1014
Brass Contributor
May 19, 2023

Security & Compliance Command Not Recognized

I need to use the Set-AutoSensitivityLabelPolicy command, and I have v3.1.0 of Exchange Online PowerShell installed.  After successfully connecting with Connect-IPPSSession, I get an error that the Set-AutoSensitivityLabelPolicy isn't a command.  When I look up the command, it's supposed to be a part of Exchange Online PowerShell, but when I use get-command -module ExchangeOnlineManagement, it's not listed.  What am I missing?

 

I have also tried loading the older 2.0.5 version of ExchangePowerShell, but that did not help either.

  • Ukiman1014's avatar
    Ukiman1014
    Brass Contributor

    If I connect as the service account, which is an Exchange Admin and a Security Admin, the command is not recognized.  If I connect as a global admin, it is.  What role is needed?

     

     

Resources