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
i need a command to give one mailbox a send as permission to entire exchange 2013 mailbox.
thank you
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?
ASKER
hello
one mailbox need to get right for all mailbox in all database :)
one mailbox need to get right for all mailbox in all database :)
Use the following command below to accomplish this...
Will.
$Users = get-mailbox -resultsize "unlimited"
Foreach ($user in $users) {
Add-ADPermission -Identity $user -User "yourusername" -Extendedrights "Send As"
}
Get-mailbox -resultsize "unlimited" | Add-ADPermission -User "yourusername" -Extendedrights "Send As"
Will.
ASKER
i need a way for all organisation.
i mean tomorow if i create 100 new mailbox, i need the right automaticly applicated to it
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.
Will.
ASKER
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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
hello
thanks will, i have use your method and its work
thanks will, i have use your method and its work
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,