Search code examples
powershelloffice365exchange-server

New-ComplianceSearchAction Invalid parameter 'ShareRootPath'


I run the following command for an existing search result "xxx":

New-ComplianceSearchAction -SearchName "xxx" -export

I get the following error message:

Die Aufgabe kann nicht ausgeführt werden. Ursache: Der Wert für den ShareRootPath-Parameter ist ungültig. Er sollte im

Any ideas, what "ShareRootPath-parameter" means? There isn't such parameter in the documentation...


Solution

  • I had to use

    Connect-IPPSSession
    

    instead of

    Connect-EXOPSSession
    

    before executing the New-ComplianceSearchAction cmdlet