$user="*fonamn.efternamn*"
get-adobject -filter 'ObjectClass -eq "user"' -Properties managedby,manager | where {$_.managedby -like $user -or $_.manager -like $user} | Select-Object objectclass,name,managedby,manager | fl
- Details
- Category: PowerShell
$user="*fonamn.efternamn*"
get-adobject -filter 'ObjectClass -eq "user"' -Properties managedby,manager | where {$_.managedby -like $user -or $_.manager -like $user} | Select-Object objectclass,name,managedby,manager | fl