fix: Test-Error verbose call and Get-CISMgOutput Parameter

This commit is contained in:
DrIOS
2024-06-23 17:58:27 -05:00
parent ca1734381f
commit 4e0b20fc14
3 changed files with 4 additions and 3 deletions

View File

@@ -60,7 +60,8 @@ function Get-CISMgOutput {
# Test-PasswordNeverExpirePolicy.ps1
$domains = if ($DomainName) {
Get-MgDomain -DomainId $DomainName
} else {
}
else {
Get-MgDomain
}
return $domains