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

Reply To: Handling Array With Multiple Object Types

$
0
0

This should do the trick:

$users = $groupuser.PartComponent | Where-Object { $_.CimClass.CimClassName -eq 'Win32_UserAccount' }
$users

Viewing all articles
Browse latest Browse all 13067

Trending Articles