[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 61
  • Last Modified:

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
0
VN-PC view
Asked:
VN-PC view
1 Solution
 
VN-PC viewAuthor Commented:
Ii fixed it, thank you all
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Tackle projects and never again get stuck behind a technical roadblock.
Join Now