Get-ExecutionPolicyIf the value returned is anything other than RemoteSigned, you need to run:
Set-ExecutionPolicy RemoteSignedConnect to online Exchange server run:
$LiveCred = Get-Credential and type the credentials of an cloud administrator account
Then run:
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirectionAfter that run:
Import-PSSession $SessionWhen you are online check for existing Room List Distribution groups and Room mailboxes:
Get-DistributionGroup | Where {$_.RecipientTypeDetails -eq "RoomList"} | Format-Table DisplayName,Identity,PrimarySmtpAddressand
Get-Mailbox | Where-Object {$_.RecipientTypeDetails -eq "RoomMailbox"} | Format-Table DisplayName,Identity,PrimarySmtpAddressCreate new Room List Distribution group:
New-DistributionGroup -Name Building_nr1 -DisplayName "Buildings display name" –PrimarySmtpAddress building_nr1@yourdomain.com –RoomListCreate new Room Mailbox:
New-MailBox -UserPrincipalName room_nr1@yourdomain.com -Name "Room nr1" -RoomAdd existing Room Mailboxes to Room List Distribution Group:
Add-DistributionGroupMember –Identity Building_nr1 -Member room_nr1@yourdomain.comWhen you're finished using the server-side session, always disconnect Windows PowerShell by running the following command:
Remove-PSSession $SessionDetailed procedure described here: Use Windows PowerShell in Exchange Online
and here: Enable Room Finder with Room List Distribution Group
Nav komentāru:
Ierakstīt komentāru