Link to home
Start Free TrialLog in
Avatar of cawasaki
cawasaki

asked on

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

hello,

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

thank you
Avatar of Ivan
Ivan
Flag of Serbia image

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,
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?
Avatar of cawasaki
cawasaki

ASKER

hello

one mailbox need to get right for all mailbox in all database :)
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.
i need a way for all organisation.

i mean tomorow if i create 100 new mailbox, i need the right automaticly applicated to it
You can use my powershell script which will do this for all users in your organization. Either one will work.

Will.
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
This command should do it:
Get-MailboxDatabase -Identity "Mailbox Database Name" | Add-ADPermission -User "Your User Name" -ExtendedRights Send-As

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Will Szymkowski
Will Szymkowski
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
hello

thanks will, i have use your method and its work