I’m comparing 2 Get-ADGroupmember arrays:
$DiffMems = (Compare-Object $users1 $users2 -PassThru)
[array]$DiffMems = (Compare-Object $users1 $users2 -PassThru)
If the results contain more than one user I get a SideIndicator of => or <=.
If the results contain only a single user I get no side indicator the field drops to the bottom of the list and I have a WriteErrorStream field with no value.
Unfortunately I need to use the side indicator to tailor an email with the results of the group comparison.
What am I missing?