SHELL/1.3.6.ps1
|
$CheckId = "1.3.6" $Title = "Ensure the customer lockbox feature is enabled" try { $Config = Get-OrganizationConfig | Select-Object CustomerLockBoxEnabled $Pass = [bool]$Config.CustomerLockBoxEnabled [pscustomobject]@{ CheckId = $CheckId Title = $Title Status = if ($Pass) { "PASS" } else { "FAIL" } Pass = $Pass Evidence = $Config Error = $null Timestamp = Get-Date } } catch { [pscustomobject]@{ CheckId = $CheckId Title = $Title Status = "ERROR" Pass = $null Evidence = $null Error = $_.Exception.Message Timestamp = Get-Date } } |