tests/Test-Assessment.21833.ps1
<# .SYNOPSIS #> function Test-Assessment-21833{ [ZtTest( Category = 'Privileged access', ImplementationCost = 'High', Pillar = 'Identity', RiskLevel = 'Low', SfiPillar = 'Protect identities and secrets', TenantType = ('Workforce'), TestId = 21833, Title = 'Directory Sync account credentials haven''t been rotated recently', UserImpact = 'Low' )] [CmdletBinding()] param() Write-PSFMessage '🟦 Start' -Tag Test -Level VeryVerbose $activity = "Checking Directory Sync account credentials haven't been rotated recently" Write-ZtProgress -Activity $activity -Status "Getting policy" $result = $false $testResultMarkdown = "Planned for future release." $passed = $result Add-ZtTestResultDetail -TestId '21833' -Title "Directory Sync account credentials haven't been rotated recently" ` -UserImpact Low -Risk Low -ImplementationCost High ` -AppliesTo Identity -Tag Identity ` -Status $passed -Result $testResultMarkdown -SkippedBecause UnderConstruction } |