Skip to content

Commit

Permalink
Increase max depth to 99. Closes #3
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilienCourt authored and EmilienCourt committed Nov 8, 2024
1 parent 9279b4b commit b60eba4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dfir4vsphere/Start-VC_Investigation.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ if($LightVIEvents -eq $false)
$outputfile = "$($foldertoprocess)\VIEvents_" + $outputdate + ".json"

try{
$vievents = Get-VIEventPlus -startdate $newstarthour -enddate $newendhour -Entities $Entities -eventMgr $eventMgr | convertto-json -depth 5 -compress
$vievents = Get-VIEventPlus -startdate $newstarthour -enddate $newendhour -Entities $Entities -eventMgr $eventMgr | convertto-json -depth 99 -compress
}
catch {
"Falied to retrieve VIEvents for $($outputdate)" | Write-Log -LogPath $logfile -LogLevel "Warning"
Expand All @@ -226,7 +226,7 @@ if($LightVIEvents -eq $false)
$outputfile = "$($VIEventsfolder)\VIEvents_" + $VIEventTypeId + ".json"
try
{
$vievents = Get-VIEventPlus -startdate $StartDate -enddate $enddate -Entities $Entities -eventMgr $eventMgr -EventTypeId $VIEventTypeId | convertto-json -depth 5 -compress
$vievents = Get-VIEventPlus -startdate $StartDate -enddate $enddate -Entities $Entities -eventMgr $eventMgr -EventTypeId $VIEventTypeId | convertto-json -depth 99 -compress
}
catch
{
Expand Down

0 comments on commit b60eba4

Please sign in to comment.