Regarding Office 365 Audit Log Power Script RRS feed

  • Question

  • Hi,

    I am trying to fetch Office 365 Audit log via power shell script. Microsoft Documentation suggest below cmdlet.

    When I execute this command it says "The term 'Search-UnifiedAuditLog' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or
    if a path was included, verify that the path is correct and try again.
    " error.

    Search-UnifiedAuditLog -StartDate 9/11/2018 -EndDate 9/15/2018 -RecordType PowerBI -ResultSize 1000 | Format-Table | More

    I install ExchangeOnline module in powershell but still getting the same error.

    Appreciate if someone can help or suggest in this direction.



    Tuesday, October 22, 2019 10:12 AM