mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-05-13 05:47:23 +00:00
Merge pull request #5471 from illfated/ps_cmdlet_formatting
Surface Hub 2S/PowerShell: cmdlet formatting
This commit is contained in:
commit
215b103e3f
@ -54,25 +54,26 @@ Instead of using the Microsoft Admin Center portal, you can create the account u
|
|||||||
|
|
||||||
### Connect to Exchange Online PowerShell
|
### Connect to Exchange Online PowerShell
|
||||||
|
|
||||||
```
|
```powershell
|
||||||
$365Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential (Get-Credential) -Authentication Basic –AllowRedirection $ImportResults = Import-PSSession $365Session
|
$365Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential (Get-Credential) -Authentication Basic –AllowRedirection
|
||||||
|
$ImportResults = Import-PSSession $365Session
|
||||||
```
|
```
|
||||||
|
|
||||||
### Create a new Room Mailbox
|
### Create a new Room Mailbox
|
||||||
|
|
||||||
```
|
```powershell
|
||||||
New-Mailbox -MicrosoftOnlineServicesID account@YourDomain.com -Alias SurfaceHub2S -Name SurfaceHub2S -Room -EnableRoomMailboxAccount $true -RoomMailboxPassword (ConvertTo-SecureString -String "<Enter Strong Password>" -AsPlainText -Force)
|
New-Mailbox -MicrosoftOnlineServicesID account@YourDomain.com -Alias SurfaceHub2S -Name SurfaceHub2S -Room -EnableRoomMailboxAccount $true -RoomMailboxPassword (ConvertTo-SecureString -String "<Enter Strong Password>" -AsPlainText -Force)
|
||||||
```
|
```
|
||||||
|
|
||||||
### Set Calendar Auto processing
|
### Set Calendar Auto processing
|
||||||
|
|
||||||
```
|
```powershell
|
||||||
Set-CalendarProcessing -Identity "account@YourDomain.com" -AutomateProcessing AutoAccept -AddOrganizerToSubject $false –AllowConflicts $false –DeleteComments $false -DeleteSubject $false -RemovePrivateProperty $false -AddAdditionalResponse $true -AdditionalResponse "This room is equipped with a Surface Hub"
|
Set-CalendarProcessing -Identity "account@YourDomain.com" -AutomateProcessing AutoAccept -AddOrganizerToSubject $false –AllowConflicts $false –DeleteComments $false -DeleteSubject $false -RemovePrivateProperty $false -AddAdditionalResponse $true -AdditionalResponse "This room is equipped with a Surface Hub"
|
||||||
```
|
```
|
||||||
|
|
||||||
### Assign a license
|
### Assign a license
|
||||||
|
|
||||||
```
|
```powershell
|
||||||
Connect-MsolService
|
Connect-MsolService
|
||||||
Set-Msoluser -UserPrincipalName account@YourDomain.com -UsageLocation IE
|
Set-Msoluser -UserPrincipalName account@YourDomain.com -UsageLocation IE
|
||||||
Set-MsolUserLicense -UserPrincipalName "account@YourDomain.com" -AddLicenses "contoso:MEETING_ROOM"
|
Set-MsolUserLicense -UserPrincipalName "account@YourDomain.com" -AddLicenses "contoso:MEETING_ROOM"
|
||||||
@ -85,10 +86,11 @@ Set-MsolUserLicense -UserPrincipalName "account@YourDomain.com" -AddLicenses "co
|
|||||||
- [Visual C++ 2017 Redistributable](https://aka.ms/vs/15/release/vc_redist.x64.exe)
|
- [Visual C++ 2017 Redistributable](https://aka.ms/vs/15/release/vc_redist.x64.exe)
|
||||||
- [Skype for Business Online PowerShell Module](https://www.microsoft.com/download/confirmation.aspx?id=39366)
|
- [Skype for Business Online PowerShell Module](https://www.microsoft.com/download/confirmation.aspx?id=39366)
|
||||||
|
|
||||||
```
|
```powershell
|
||||||
Import-Module LyncOnlineConnector
|
Import-Module LyncOnlineConnector
|
||||||
$SfBSession = New-CsOnlineSession -Credential (Get-Credential)
|
$SfBSession = New-CsOnlineSession -Credential (Get-Credential)
|
||||||
Import-PSSession $SfBSession -AllowClobber
|
Import-PSSession $SfBSession -AllowClobber
|
||||||
Enable the Skype for Business meeting room
|
|
||||||
|
# Enable the Skype for Business meeting room
|
||||||
Enable-CsMeetingRoom -Identity account@YourDomain.com -RegistrarPool(Get-CsTenant).Registrarpool -SipAddressType EmailAddress
|
Enable-CsMeetingRoom -Identity account@YourDomain.com -RegistrarPool(Get-CsTenant).Registrarpool -SipAddressType EmailAddress
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user