Hello,
If I run:
Get-Mailbox -RecipientTypeDetails UserMailbox -ResultSize unlimited | select samaccountname
It will out put all the samaccounts. What I need to be able to do is list only those that are 3 characters or less long.
Doing this in powershell, tried working with length such as:
Get-Mailbox -RecipientTypeDetails UserMailbox -ResultSize unlimited | select samaccountname | select $_.length -lt 3
However, it doesn't work.
Anyone have experience with this?