Created
December 19, 2018 09:25
-
-
Save AsishP/aedbeaaad79a69fcdd27274e556eb15b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$data = Search-UnifiedAuditLog | |
-StartDate $startInterval | |
-EndDate $endInterval | |
-Operations FileAccessed, FilePreviewed, PageViewed, PageViewedExtended, SearchViewed, CompanyLinkUsed, SecureLinkUsed, FileDownloaded, FileModified, FileUploaded, FileDeleted, FolderModified, CompanyLinkCreated, SharingInheritanceBroken, ListUpdated, FileSyncDownloadedFull, FileSyncUploadedFull | |
-SessionId $sessionId | |
-SessionCommand ReturnLargeSet | |
-ResultSize 5000 | |
## Start Date - Date and Time in local Computer Date Time format | |
## End Date - Date and Time in local Computer Date Time format | |
## Operations - For more information see here - https://docs.microsoft.com/en-gb/office365/securitycompliance/search-the-audit-log-in-security-and-compliance#sharing-and-access-request-activities | |
## Session Id - Essential for paging and handling when data goes more than threshold limit | |
## Session Command - Determines the size of the data returned | |
## ResultSize - 5000 seems to be the upper limit for a successfull data pull |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment