34
POWERSHELL COMMANDS FOR BOOKIT
CONNECT POWERSHELL TO EXCHANGE 365
Run PowerShell as administrator.
Enable PowerShell to run scripts. (only once)
▶
[PS] c:\>Set-ExecutionPolicy RemoteSigned
Close PowerShell as administrator and run it again without administrative privileges.
Run the following command sequence. (In the Windows PowerShell Credential Request dialog box,
type your Office 365 username and password, then click OK.)
▶
[PS] c:\>$UserCredential = Get-Credential
▶
[PS] c:\>$Session = New-PSSession -ConfigurationName Microsoft.Exchange
-ConnectionUri https://outlook.office365.com/powershell –liveid/ -Credential
$UserCredential -Authentication Basic -AllowRedirection
▶
[PS] c:\>Import-PSSession $Session
Disconnect the remote PowerShell session
▶
[PS] c:\>Remvove-PSSession $Session
ROOM LISTS
Create a room list
▶
[PS] c:\>New-DistributionGroup -Name “Building 31 Rooms” –RoomList
Add rooms to a room list individually
▶
[PS] c:\> Add-DistributionGroupMember -Identity “RoomListName”
–Member [email protected]
Add rooms all at once
Create a list called $Members filtered by recipient details matching FilterCriteria.
▶
[PS] c:\>$Members=Get-Mailbox -Filter {(RecipientTypeDetails -eq “FilterCriteria”)}
Add members on the list $Members
▶
[PS] c:\>Add-DistributionGroupMember -Identity “RoomListName” -Member $Members
GRANT AUTHOR PERMISSIONS TO SECURITY GROUP ON ROOM MAILBOX
▶
[PS] c:\>Add-MailboxFolderPermission -Identity [email protected]:\Calendar
-User [email protected] -AccessRights Author
▶
You can add members to the security group via EMC/EAC
APPENIX - A
Содержание BookIT
Страница 1: ...USER GUIDE WWW BOOKIT TECH MAY 2017...