關於會議室日曆顯示預訂者信息shell
首先下載如下工具並安裝
ide
Microsoft OnlineServices 登陸助手,下載連接以下:
http://www.microsoft.com/zh-cn/download/details.aspx?id=41950工具
Microsoft AzureActive Directory 模塊,下載連接以下:
http://go.microsoft.com/fwlink/p/?linkid=236297spa
1:打開用戶鏈接office365的powershell,右鍵以管理員身份運行ise命令行
2在命令行中分別執行如下命令rest
1)鏈接到Exchange Online orm
$UserCredential =Get-Credential xml
$Session = New-PSSession-ConfigurationName Microsoft.Exchange -ConnectionUri https://partner.outlook.cn/PowerShell-LiveID/ -Credential$UserCredential -Authentication Basic -AllowRedirectionget
Import-PSSession $Sessionit
PSC:\Windows\system32> $UserCredential = Get-Credential
$Session= New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUrihttps://partner.outlook.cn/PowerShell-LiveID/ -Credential $UserCredential-Authentication Basic -AllowRedirection
Import-PSSession$Session
2.)Set-ExecutionPolicy RemoteSigned
PSC:\Windows\system32> Set-ExecutionPolicy RemoteSigned
PSC:\Windows\system32> Get-ExecutionPolicy
Unrestricted
PSC:\Windows\system32> Set-ExecutionPolicy RemoteSigned
PSC:\Windows\system32> Get-ExecutionPolicy
RemoteSigned
3)Set-MailboxFolderPermission-Acce***ights LimitedDetails -Identity ‘會議室的郵件地址:\calendar’-User default
PSC:\Windows\system32> Set-MailboxFolderPermission -Identity'會議室的電子郵件地址.cn:\Calendar' -User default -Acce***ights LimitedDetails
4)Set-CalendarProcessing -Identity 會議室的電子郵件地址 -AddOrganizerToSubject$true -DeleteComments $false -DeleteSubject $false
PSC:\Windows\system32> Set-CalendarProcessing -Identity 會議室的電子郵件地址.cn-AddOrganizerToSubject $true -DeleteComments $false -DeleteSubject $false
5)查詢某個會議室郵箱是否有權限
Get-CalendarProcessing-Identity 會議室的電子郵件地址 | selectAddOrganizerToSubject,DeleteComments,DeleteSubject
PS C:\Windows\system32> Get-CalendarProcessing -Identitybj.djs.meet@huoyunren.com | selectAddOrganizerToSubject,DeleteComments,DeleteSubject
6)查詢全部會議室郵箱是否有權限
Get-Mailbox |where{$_.ResourceType -eq "Room"} | Get-CalendarProcessing | selectIdentity,AddOrganizerToSubject,DeleteComments,DeleteSubject
PS C:\Windows\system32> Get-Mailbox |where{$_.ResourceType -eq "Room"} | Get-CalendarProcessing | selectIdentity,AddOrganizerToSubject,DeleteComments,DeleteSubject
當AddOrganizerToSubject爲Ture, DeleteComments爲False,DeleteSubject爲False時 表示該會議狀態已對外公佈。