V. 3.9.3
Using the following:
$Profiles = Get-UserProfiles -ExcludeNTAccount @('NT SERVICE\SplunkForwarder',"$envComputerName\Admin","$envComputerName\classic","$envComputerName\altiris","$envComputerName\new","$($LoggedOnUserSessions.DomainName)\AltirisDSsvc")
All excluded items are NOT excluded and are contained in $Profiles
.
The only way I can remove the unwanted is to remove them after with:
$Profiles = $Profiles|Where-Object{$_.NTAccount -inotmatch 'altirisdssvc'}, etc.
Ideas?