try something like this:
Get-ADUser -Filter "*" | where UserPrincipalName -eq "[email protected]" | select name, surname, SamAccountName
2
solved How to filter users with powershell script
try something like this:
Get-ADUser -Filter "*" | where UserPrincipalName -eq "[email protected]" | select name, surname, SamAccountName
2
solved How to filter users with powershell script