Skip to content

Commit 5afefd8

Browse files
EmilienCourtEmilienCourt
authored andcommitted
fix minor bug when logging LogIngestion. Minor version bump
1 parent 81205c3 commit 5afefd8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

DFIR-O365RC/DFIR-O365RC.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
RootModule = '.\DFIR-O365RC.psm1'
88

99
# Version number of this module.
10-
ModuleVersion = '2.0.6'
10+
ModuleVersion = '2.0.7'
1111

1212
# Supported PSEditions
1313
CompatiblePSEditions = 'Core', 'Desktop'

DFIR-O365RC/Get-O365.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ function Get-O365 {
324324
if (-not $isIngestionEnabled){
325325
Write-Error "Log ingestion is not enabled. This means that the unified audit log is disabled. This is not the default setting, please check https://learn.microsoft.com/en-us/purview/audit-log-enable-disable for more information"
326326
"Log ingestion is not enabled. This means that the unified audit log is disabled. This is not the default setting, please check https://learn.microsoft.com/en-us/purview/audit-log-enable-disable for more information" | Write-Log -LogPath $logFile -LogLevel "Error"
327-
$adminAuditLogConfig | Write-Log -LogPath $logFile -LogLevel "Error"
327+
$adminAuditLogConfig | ConvertTo-Json -Depth 99 | Write-Log -LogPath $logFile -LogLevel "Error"
328328
}
329329
else {
330330
$unifiedAuditLogFirstOptInDate = $adminAuditLogConfig.UnifiedAuditLogFirstOptInDate.ToString()

0 commit comments

Comments
 (0)