Solved

powershell command to give send as permission to one mailbox for all exchange mailbox

Posted on 2015-02-04
11
57 Views
Last Modified: 2015-02-18
hello,

i need a command to give one mailbox a send as permission to entire exchange 2013 mailbox.

thank you
0
Comment
Question by:cawasaki
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
  • +2
11 Comments
 
LVL 17

Expert Comment

by:Ivan
ID: 40588319
Hi,

command is: Add-ADPermission "Test" -User "Domain\User" -Extendedrights "Send As"
where -User "Domain\User" is a user that will get Send As right to a "Test" mailbox.

Regards,
0
 
LVL 17

Expert Comment

by:Ivan
ID: 40588321
Btw, did you mean 1 user to get Send As right to all mailboxes in one database or in all databases, eg. on all mailboxes?
0
Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

 

Author Comment

by:cawasaki
ID: 40588328
hello

one mailbox need to get right for all mailbox in all database :)
0
 
LVL 53

Expert Comment

by:Will Szymkowski
ID: 40588329
Use the following command below to accomplish this...
$Users = get-mailbox -resultsize "unlimited"
Foreach ($user in $users) { 
Add-ADPermission -Identity $user -User "yourusername" -Extendedrights "Send As"
}

Open in new window


Get-mailbox -resultsize "unlimited" | Add-ADPermission -User "yourusername" -Extendedrights "Send As"

Open in new window


Will.
0
 

Author Comment

by:cawasaki
ID: 40588337
i need a way for all organisation.

i mean tomorow if i create 100 new mailbox, i need the right automaticly applicated to it
0
 
LVL 53

Expert Comment

by:Will Szymkowski
ID: 40588363
You can use my powershell script which will do this for all users in your organization. Either one will work.

Will.
0
 

Author Comment

by:cawasaki
ID: 40588396
hi Will,

your powershell script will work only for existing mailbox, and i need my mailbox to have right to all new mailbox created in future without execute script every time
0
 
LVL 24

Expert Comment

by:VB ITS
ID: 40588418
This command should do it:
Get-MailboxDatabase -Identity "Mailbox Database Name" | Add-ADPermission -User "Your User Name" -ExtendedRights Send-As

Open in new window

0
 
LVL 53

Accepted Solution

by:
Will Szymkowski earned 500 total points
ID: 40588445
If you want Send As on everything in the domain what you need to do is Open Active Directory Users and Computers, from there at the top level domain domain.com do the following...
- make sure that "view advanced features" is enabled
- right click domain.com
- select properties
- click security tab
- click the advanced button
- click Add button
- add your account (or a group) that you want to apply this permission to
- Add the Send As permission at this level

As view the Exchange Team Blog for additonal details.
http://blogs.technet.com/b/exchange/archive/2005/01/07/348596.aspx

Will.
0
 

Author Comment

by:cawasaki
ID: 40616045
hello

thanks will, i have use your method and its work
0

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Previously, on our Nano Server Deployment series, we've created a new nano server image and deployed it on a physical server in part 2. Now we will go through configuration.
In previous parts of this Nano Server deployment series, we learned how to create, deploy and configure Nano Server as a Hyper-V host. In this part, we will look for a clustering option. We will create a Hyper-V cluster of 3 Nano Server host nodes w…
In this video we show how to create a Shared Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Sha…
To show how to create a transport rule in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Rules tab.:  To cr…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question