Get-Mailbox -ResultSize unlimited -Filter {(RecipientTypeDetails -eq 'UserMailbox') -and (Alias -ne 'Admin')} | Add-MailboxPermission -User <user, role group or security group> -AccessRights fullaccess -InheritanceType all
get-alias:找不到域参数名称 ne 匹配的参数命令:>get-alias: admin administratoradministrator admin