Skip to content

Commit

Permalink
fixes something
Browse files Browse the repository at this point in the history
  • Loading branch information
krjhitch committed Apr 4, 2017
1 parent 5f9c9dd commit fa37e48
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions functions/Start-DSCEAscan.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,20 @@ param
$JobFailedError = $_
}
}
return [PSCustomObject]@{
Computer = $computer

$obj = [PSCustomObject]@{
RunTime = $runTime
Compliance = $compliance
Exception = $JobFailedError
}
if($PSBoundParameters.ContainsKey('CimSession'))
{
obj += @{Computer = $cimsession.ComputerName}
} else {
$obj += @{Computer = $computer}
}

return $obj
}

$jobs = @()
Expand Down

0 comments on commit fa37e48

Please sign in to comment.