天天看点

使用PowerShell管理Office 365资源邮箱1.创建资源邮箱2.会议室邮箱管理3.显示有关资源邮箱的信息

PowerShell命令:

New-Mailbox -Name "<Identity>" -Room

PowerShell命令示例:

New-MailBox -Name "11F22Room" -Room
New-Mailbox -Name "<Name>" -Equipment
New-Mailbox -Name "EQ01" -Equipment
Set-CalendarProcessing "<Identity>" -AutomateProcessing AutoAccept
Set-CalendarProcessing "11F22Room" -AutomateProcessing AutoAccept
Get-MailBox | Where {$_.ResourceType -eq "Room"} | Set-CalendarProcessing -AutomateProcessing:AutoAccept
Set-CalendarProcessing "<Identity>" –ResourceDelegates "<Identity>"
Set-CalendarProcessing "11F22Room" –ResourceDelegates "zhangc"
Add-MailBoxPermission "<Identity>" -User "<Identity>" -AccessRights FullAccess
Add-MailBoxPermission "11F22Room" -User "zhangc" -AccessRights FullAccess
Add-RecipientPermission "<Identity>" -Trustee "<Identity>" -AccessRights SendAs -Confirm:$False
Add-RecipientPermission "11F22Room" -Trustee "zhangc" -AccessRights SendAs -Confirm:$False
Set-CalendarProcessing "<Room name>" -AllowConflicts $True
Set-CalendarProcessing "11F22Room" -AllowConflicts $True
Get-Mailbox -Filter '(RecipientTypeDetails -eq "RoomMailBox")' | Select Name,Alias
Get-Mailbox -Filter '(RecipientTypeDetails -eq "quipmentMailBox")' | Select Name,Alias 本文转自  zyliday   51CTO博客,原文链接: http://blog.51cto.com/itsoul/2056285

继续阅读