Skip to content

Commit 3b42d64

Browse files
committed
targetdisplayuser var reset
1 parent 3bf0ae2 commit 3b42d64

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/powershell/tests/Test-Assessment.25371.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ function Get-GroupDisplayNameById {
123123
# Check for policies that disable CAE
124124
if ($caePolicies -and $caePolicies.Count -gt 0) {
125125
foreach ($policy in $caePolicies) {
126+
$targetUsersDisplayNames = @()
126127
$appCondition = $policy.conditions.applications
127128
# Primary check: Check if policy targets All applications
128129
$targetsAllApps = $appCondition.includeApplications -contains "All"

0 commit comments

Comments
 (0)