Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Reply To: Exclude results of a compare-object if they meet a specific criteria

$
0
0

Robert that was what I was looking for. I modified the code a little bit because it was pulling in some extra groups.

New = $_.Group | Where { $_.SideIndicator -eq '=>' }| ?{$_.GROUP_Name -eq 'FacStaffStudents14Spring' -or $_.GROUP_Name -eq 'Students14Spring'}
Old = $_.Group | Where { $_.SideIndicator -eq '<=' }| ?{$_.GROUP_Name -eq 'FacStaffStudents14Spring' -or $_.GROUP_Name -eq 'Students14Spring'}
}

Does using the Group EmplId command make the compare-object cmdlet work more efficiently?

Thanks for your help.


Viewing all articles
Browse latest Browse all 13067

Trending Articles