Exchange, office 365

Hi All,

I ran this and get this error , i added my account to "Organization Management" role
Get-Mailbox -ResultSize unlimited | Add-MailboxPermission -User ServiceAccount@domain.com -AccessRights fullaccess -InheritanceType all -Automapping $false

Thank You in advance


User or group "ServiceAccount@domain.com" wasn't found. Please make sure
you've typed it correctly.
    + CategoryInfo          : InvalidData: (:) [Add-MailboxPermission], Manage
   mentObjectNotFoundException
    + FullyQualifiedErrorId : [Server=BN3PR1201MB0996,RequestId=379f45dd-a188-
   41f5-978d-ac17cf49a9ab,TimeStamp=10/22/2016 3:46:23 PM] [FailureCategory=C
  mdlet-ManagementObjectNotFoundException] 8E93FC4,Microsoft.Exchange.Manage
 ment.RecipientTasks.AddMailboxPermission
    + PSComputerName        : outlook.office365.com
VN-PC viewAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
VN-PC viewConnect With a Mentor Author Commented:
Ii fixed it, thank you all
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.