I am trying to filter only the email with dot(Sam.Smith@forfun.com). But all email would be displayed to me. Is this somehow possible to get only “Sam.Smith@forfun.com” this? I try it in powershell.
OK, that’s strange. It should work if it’s an array. Maybe the emails are just a string with a line break in between. In that case you would need to split it into an array first.
Sorry I do not quite understand. I have to search it before as first name and last name. (Get-AzureADUser -SearchString “name surname”) As a result I get for some users different and multiple email address of . But I need only email address between first name and last name a dot. The others should not be shown to me.
regards
did not work unfortunately But thank you. Found other solution thanks for tip about array:
PS C:\Users\Rayman> (Get-AzureADUser -SearchString “Sam Smith”| Select Mail)[0].
Array [0] is for every user the right mail
regards