Skip to content

Commit d18ca09

Browse files
Update src/powershell/tests/Test-Assessment.25398.ps1
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 9f00260 commit d18ca09

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,8 @@ function Test-Assessment-25398 {
210210
$appType = 'General RDP'
211211
}
212212

213-
# Remove duplicates
214-
$rdpApps = $rdpApps | Sort-Object AppId -Unique
213+
# Remove duplicates (per AppId and DestinationHost)
214+
$rdpApps = $rdpApps | Sort-Object AppId, DestinationHost -Unique
215215

216216
Write-PSFMessage "Found $($rdpApps.Count) RDP application(s)" -Tag Test -Level VeryVerbose
217217

0 commit comments

Comments
 (0)