This Blog is to document some founding related to my work experience, most of them are related to Microsoft Technology,
Showing posts with label PowerShell. Show all posts
Showing posts with label PowerShell. Show all posts
Wednesday, 7 December 2011
Add send as permission to a mailbox
You can use the following PowerShell script to added send as permission to a mailbox. It suppose to work on office 365, However I have experience some difficulty and following this up with MS support engineer.
Add-RecipientPermission "support" -AccessRights SendAs -Trustee "Bob"
Referance URL: http://help.outlook.com/en-us/140/ff852815.aspx
Monday, 8 August 2011
Exchange online 2010 assign mailbox permission
Microsoft does not provide a graphic user interface for admin to add/modify mailbox permissions for individual mailboxes in in Exchange online 2010 (Office 365). If you would like to modify mailboxes permissions you will find yourself in doing PowerShell script.
Here is a simple script that will allow you to connect to Office 365 and add permission to a mailbox:
# Set execution policy, you can skip this if you already done this in the past
Set-ExecutionPolicy RemoteSigned
#Create connection section. a login will popup to ask you to loin. Make sure you login as admin
$LiveCred = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection
Import-PSSession $Session
#This line actually add permission. This example actually add permission for admin to access info mailbox
Add-MailboxPermission -Identity info@contoso.com -user admin@contoso.com -AccessRights FullAccess
# End of script, Enjoy
Here is a simple script that will allow you to connect to Office 365 and add permission to a mailbox:
# Set execution policy, you can skip this if you already done this in the past
Set-ExecutionPolicy RemoteSigned
#Create connection section. a login will popup to ask you to loin. Make sure you login as admin
$LiveCred = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection
Import-PSSession $Session
#This line actually add permission. This example actually add permission for admin to access info mailbox
Add-MailboxPermission -Identity info@contoso.com -user admin@contoso.com -AccessRights FullAccess
# End of script, Enjoy
Subscribe to:
Posts (Atom)