bawright
13 years agoLevel 4
Get-BEJobHistory
Hi There
I'm running the below command. However it returns more than the last 12 hours.
Get-BEJobHistory -JobStatus Error -FromStartTime (Get-Date).AddHours(-12) | ft -auto
Any help with would be great?
Cheers,
Brett
However this works
$a = (Get-Date).AddHours(-12)Get-BEJobHistory -JobStatus Error | where-object {$_.StartTime -gt $a} | ft -autoCheers,Brettw