User Profile
Mandy18
Copper Contributor
Joined 5 years ago
User Widgets
Recent Discussions
Get-AzureADUser using filter with -notlike
Hey, I am trying filter out Azure guest accounts which doesn't include public domain using following command but its not showing proper output. Its showing all guest accounts. Can someone please help here. Get-AzureADUser -Filter "UserType eq 'Guest' and AccountEnabled eq true" | Where-Object {$_.mail -notlike '*@hotmail.com' -or $_.mail -notlike '*@gmail.com' -or $_.mail -notlike '*@yahoo.com'}3.6KViews0likes1Comment
Groups
Recent Blog Articles
No content to show