mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-05-14 14:27:22 +00:00
Merge branch 'master' into App-v-revision
This commit is contained in:
commit
bdb0974877
@ -38,11 +38,11 @@ Use this procedure if you use Exchange on-premises.
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
3. Enable the remote mailbox.
|
2. Enable the remote mailbox.
|
||||||
|
|
||||||
Open your on-premises Exchange Management Shell with administrator permissions, and run this cmdlet.
|
Open your on-premises Exchange Management Shell with administrator permissions, and run this cmdlet.
|
||||||
|
|
||||||
```ps1
|
```PowerShell
|
||||||
Enable-RemoteMailbox 'HUB01@contoso.com' -RemoteRoutingAddress 'HUB01@contoso.com' -Room
|
Enable-RemoteMailbox 'HUB01@contoso.com' -RemoteRoutingAddress 'HUB01@contoso.com' -Room
|
||||||
```
|
```
|
||||||
>[!NOTE]
|
>[!NOTE]
|
||||||
@ -54,7 +54,7 @@ Use this procedure if you use Exchange on-premises.
|
|||||||
>
|
>
|
||||||
>msExchRecipientTypeDetails = 8589934592
|
>msExchRecipientTypeDetails = 8589934592
|
||||||
|
|
||||||
2. After you've created the account, run a directory synchronization. When it's complete, go to the users page in your Office 365 admin center and verify that the account created in the previous steps has merged to online.
|
3. After you've created the account, run a directory synchronization. When it's complete, go to the users page in your Office 365 admin center and verify that the account created in the previous steps has merged to online.
|
||||||
|
|
||||||
4. Connect to Microsoft Exchange Online and set some properties for the account in Office 365.
|
4. Connect to Microsoft Exchange Online and set some properties for the account in Office 365.
|
||||||
|
|
||||||
@ -62,8 +62,8 @@ Use this procedure if you use Exchange on-premises.
|
|||||||
|
|
||||||
The next steps will be run on your Office 365 tenant.
|
The next steps will be run on your Office 365 tenant.
|
||||||
|
|
||||||
```ps1
|
```PowerShell
|
||||||
Set-ExecutionPolicy Unrestricted
|
Set-ExecutionPolicy RemoteSigned
|
||||||
$cred=Get-Credential -Message "Please use your Office 365 admin credentials"
|
$cred=Get-Credential -Message "Please use your Office 365 admin credentials"
|
||||||
$sess= New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri 'https://ps.outlook.com/powershell' -Credential $cred -Authentication Basic -AllowRedirection
|
$sess= New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri 'https://ps.outlook.com/powershell' -Credential $cred -Authentication Basic -AllowRedirection
|
||||||
Import-PSSession $sess
|
Import-PSSession $sess
|
||||||
@ -77,13 +77,13 @@ Use this procedure if you use Exchange on-premises.
|
|||||||
|
|
||||||
If you haven’t created a compatible policy yet, use the following cmdlet—-this one creates a policy called "Surface Hubs". Once it’s created, you can apply the same policy to other device accounts.
|
If you haven’t created a compatible policy yet, use the following cmdlet—-this one creates a policy called "Surface Hubs". Once it’s created, you can apply the same policy to other device accounts.
|
||||||
|
|
||||||
```ps1
|
```PowerShell
|
||||||
$easPolicy = New-MobileDeviceMailboxPolicy -Name “SurfaceHubs” -PasswordEnabled $false
|
$easPolicy = New-MobileDeviceMailboxPolicy -Name “SurfaceHubs” -PasswordEnabled $false
|
||||||
```
|
```
|
||||||
|
|
||||||
Once you have a compatible policy, then you will need to apply the policy to the device account.
|
Once you have a compatible policy, then you will need to apply the policy to the device account.
|
||||||
|
|
||||||
```ps1
|
```PowerShell
|
||||||
Set-CASMailbox 'HUB01@contoso.com' -ActiveSyncMailboxPolicy $easPolicy.id
|
Set-CASMailbox 'HUB01@contoso.com' -ActiveSyncMailboxPolicy $easPolicy.id
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -91,31 +91,44 @@ Use this procedure if you use Exchange on-premises.
|
|||||||
|
|
||||||
Setting Exchange properties on the device account to improve the meeting experience. You can see which properties need to be set in the [Exchange properties](exchange-properties-for-surface-hub-device-accounts.md) section.
|
Setting Exchange properties on the device account to improve the meeting experience. You can see which properties need to be set in the [Exchange properties](exchange-properties-for-surface-hub-device-accounts.md) section.
|
||||||
|
|
||||||
```ps1
|
```PowerShell
|
||||||
Set-CalendarProcessing -Identity 'HUB01@contoso.com' -AutomateProcessing AutoAccept -AddOrganizerToSubject $false –AllowConflicts $false –DeleteComments $false -DeleteSubject $false -RemovePrivateProperty $false
|
Set-CalendarProcessing -Identity 'HUB01@contoso.com' -AutomateProcessing AutoAccept -AddOrganizerToSubject $false –AllowConflicts $false –DeleteComments $false -DeleteSubject $false -RemovePrivateProperty $false
|
||||||
Set-CalendarProcessing -Identity 'HUB01@contoso.com' -AddAdditionalResponse $true -AdditionalResponse 'This is a Surface Hub room!'
|
Set-CalendarProcessing -Identity 'HUB01@contoso.com' -AddAdditionalResponse $true -AdditionalResponse 'This is a Surface Hub room!'
|
||||||
```
|
```
|
||||||
|
|
||||||
7. Connect to Azure AD.
|
7. Connect to Azure AD.
|
||||||
|
|
||||||
You need to connect to Azure AD to apply some account settings. You can run this cmdlet to connect.
|
You first need to install Azure AD module for PowerShell version 2. In an elevated powershell prompt run the following command :
|
||||||
|
```PowerShell
|
||||||
```ps1
|
Install-Module -Name AzureAD
|
||||||
Connect-MsolService -Credential $cred
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
You need to connect to Azure AD to apply some account settings. You can run this cmdlet to connect.
|
||||||
|
|
||||||
|
```PowerShell
|
||||||
|
Import-Module AzureAD
|
||||||
|
Connect-AzureAD -Credential $cred
|
||||||
|
```
|
||||||
8. Assign an Office 365 license.
|
8. Assign an Office 365 license.
|
||||||
|
|
||||||
The device account needs to have a valid Office 365 (O365) license, or Exchange and Skype for Business will not work. If you have the license, you need to assign a usage location to your device account—this determines what license SKUs are available for your account.
|
The device account needs to have a valid Office 365 (O365) license, or Exchange and Skype for Business will not work. If you have the license, you need to assign a usage location to your device account—this determines what license SKUs are available for your account.
|
||||||
|
|
||||||
Next, you can use `Get-MsolAccountSku` to retrieve a list of available SKUs for your O365 tenant.
|
You can use `Get-AzureADSubscribedSku` to retrieve a list of available SKUs for your O365 tenant.
|
||||||
|
|
||||||
Once you list out the SKUs, you can add a license using the `Set-MsolUserLicense` cmdlet. In this case, `$strLicense` is the SKU code that you see (for example, *contoso:STANDARDPACK*).
|
Once you list out the SKUs, you'll need to assign the SkuId you want to the `$License.SkuId` variable.
|
||||||
|
|
||||||
```ps1
|
```PowerShell
|
||||||
Set-MsolUser -UserPrincipalName 'HUB01@contoso.com' -UsageLocation 'US'
|
Set-AzureADUser -ObjectId "HUB01@contoso.com" -UsageLocation "US"
|
||||||
Get-MsolAccountSku
|
|
||||||
Set-MsolUserLicense -UserPrincipalName 'HUB01@contoso.com' -AddLicenses $strLicense
|
Get-AzureADSubscribedSku | Select Sku*,*Units
|
||||||
|
$License = New-Object -TypeName Microsoft.Open.AzureAD.Model.AssignedLicense
|
||||||
|
$License.SkuId = SkuId You selected
|
||||||
|
|
||||||
|
$AssignedLicenses = New-Object -TypeName Microsoft.Open.AzureAD.Model.AssignedLicenses
|
||||||
|
$AssignedLicenses.AddLicenses = $License
|
||||||
|
$AssignedLicenses.RemoveLicenses = @()
|
||||||
|
|
||||||
|
Set-AzureADUserLicense -ObjectId "HUB01@contoso.com" -AssignedLicenses $AssignedLicenses
|
||||||
```
|
```
|
||||||
|
|
||||||
Next, you enable the device account with [Skype for Business Online](#skype-for-business-online), [Skype for Business on-premises](#skype-for-business-on-premises), or [Skype for Business hybrid](#skype-for-business-hybrid).
|
Next, you enable the device account with [Skype for Business Online](#skype-for-business-online), [Skype for Business on-premises](#skype-for-business-on-premises), or [Skype for Business hybrid](#skype-for-business-hybrid).
|
||||||
@ -144,25 +157,25 @@ The following table lists the Office 365 plans and Skype for Business options.
|
|||||||
|
|
||||||
1. Start by creating a remote PowerShell session from a PC to the Skype for Business online environment.
|
1. Start by creating a remote PowerShell session from a PC to the Skype for Business online environment.
|
||||||
|
|
||||||
```ps1
|
```PowerShell
|
||||||
Import-Module LyncOnlineConnector
|
Import-Module SkypeOnlineConnector
|
||||||
$cssess=New-CsOnlineSession -Credential $cred
|
$cssess=New-CsOnlineSession -Credential $cred
|
||||||
Import-PSSession $cssess -AllowClobber
|
Import-PSSession $cssess -AllowClobber
|
||||||
```
|
```
|
||||||
|
|
||||||
2. To enable your Surface Hub account for Skype for Business Server, run this cmdlet:
|
2. To enable your Surface Hub account for Skype for Business Server, run this cmdlet:
|
||||||
|
|
||||||
```ps1
|
```PowerShell
|
||||||
Enable-CsMeetingRoom -Identity 'HUB01@contoso.com' -RegistrarPool 'sippoolbl20a04.infra.lync.com' -SipAddressType UserPrincipalName
|
Enable-CsMeetingRoom -Identity 'HUB01@contoso.com' -RegistrarPool 'sippoolbl20a04.infra.lync.com' -SipAddressType UserPrincipalName
|
||||||
```
|
```
|
||||||
|
|
||||||
If you aren't sure what value to use for the `RegistrarPool` parameter in your environment, you can get the value from an existing Skype for Business user using this cmdlet:
|
If you aren't sure what value to use for the `RegistrarPool` parameter in your environment, you can get the value from an existing Skype for Business user using this cmdlet:
|
||||||
|
|
||||||
```ps1
|
```PowerShell
|
||||||
Get-CsOnlineUser -Identity ‘HUB01@contoso.com’| fl *registrarpool*
|
Get-CsOnlineUser -Identity ‘HUB01@contoso.com’| fl *registrarpool*
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Assign Skype for Business license to your Surface Hub account.
|
3. Assign Skype for Business license to your Surface Hub account.
|
||||||
|
|
||||||
Once you've completed the preceding steps to enable your Surface Hub account in Skype for Business Online, you need to assign a license to the Surface Hub. Using the O365 administrative portal, assign either a Skype for Business Online (Plan 2) or a Skype for Business Online (Plan 3) to the device.
|
Once you've completed the preceding steps to enable your Surface Hub account in Skype for Business Online, you need to assign a license to the Surface Hub. Using the O365 administrative portal, assign either a Skype for Business Online (Plan 2) or a Skype for Business Online (Plan 3) to the device.
|
||||||
|
|
||||||
@ -215,10 +228,10 @@ Use this procedure if you use Exchange online.
|
|||||||
|
|
||||||
Start a remote PowerShell session on a PC and connect to Exchange. Be sure you have the right permissions set to run the associated cmdlets.
|
Start a remote PowerShell session on a PC and connect to Exchange. Be sure you have the right permissions set to run the associated cmdlets.
|
||||||
|
|
||||||
```ps1
|
```PowerShell
|
||||||
Set-ExecutionPolicy Unrestricted
|
Set-ExecutionPolicy RemoteSigned
|
||||||
$cred=Get-Credential -Message "Please use your Office 365 admin credentials"
|
$cred=Get-Credential -Message "Please use your Office 365 admin credentials"
|
||||||
$sess= New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/ps1-liveid/ -Credential $cred -Authentication Basic -AllowRedirection
|
$sess= New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/PowerShell-liveid/ -Credential $cred -Authentication Basic -AllowRedirection
|
||||||
Import-PSSession $sess
|
Import-PSSession $sess
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -228,13 +241,13 @@ Use this procedure if you use Exchange online.
|
|||||||
|
|
||||||
If you're changing an existing resource mailbox:
|
If you're changing an existing resource mailbox:
|
||||||
|
|
||||||
```ps1
|
```PowerShell
|
||||||
Set-Mailbox -Identity 'HUB01' -EnableRoomMailboxAccount $true -RoomMailboxPassword (ConvertTo-SecureString -String <password> -AsPlainText -Force)
|
Set-Mailbox -Identity 'HUB01' -EnableRoomMailboxAccount $true -RoomMailboxPassword (ConvertTo-SecureString -String <password> -AsPlainText -Force)
|
||||||
```
|
```
|
||||||
|
|
||||||
If you’re creating a new resource mailbox:
|
If you’re creating a new resource mailbox:
|
||||||
|
|
||||||
```ps1
|
```PowerShell
|
||||||
New-Mailbox -MicrosoftOnlineServicesID 'HUB01@contoso.com' -Alias HUB01 -Name "Hub-01" -Room -EnableRoomMailboxAccount $true -RoomMailboxPassword (ConvertTo-SecureString -String <password> -AsPlainText -Force)
|
New-Mailbox -MicrosoftOnlineServicesID 'HUB01@contoso.com' -Alias HUB01 -Name "Hub-01" -Room -EnableRoomMailboxAccount $true -RoomMailboxPassword (ConvertTo-SecureString -String <password> -AsPlainText -Force)
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -246,13 +259,13 @@ Use this procedure if you use Exchange online.
|
|||||||
|
|
||||||
If you haven’t created a compatible policy yet, use the following cmdlet—this one creates a policy called "Surface Hubs". Once it’s created, you can apply the same policy to other device accounts.
|
If you haven’t created a compatible policy yet, use the following cmdlet—this one creates a policy called "Surface Hubs". Once it’s created, you can apply the same policy to other device accounts.
|
||||||
|
|
||||||
```ps1
|
```PowerShell
|
||||||
$easPolicy = New-MobileDeviceMailboxPolicy -Name “SurfaceHubs” -PasswordEnabled $false
|
$easPolicy = New-MobileDeviceMailboxPolicy -Name “SurfaceHubs” -PasswordEnabled $false
|
||||||
```
|
```
|
||||||
|
|
||||||
Once you have a compatible policy, then you will need to apply the policy to the device account. However, policies can only be applied to user accounts and not resource mailboxes. You need to convert the mailbox into a user type, apply the policy, and then convert it back into a mailbox—you may need to re-enable it and set the password again too.
|
Once you have a compatible policy, then you will need to apply the policy to the device account. However, policies can only be applied to user accounts and not resource mailboxes. You need to convert the mailbox into a user type, apply the policy, and then convert it back into a mailbox—you may need to re-enable it and set the password again too.
|
||||||
|
|
||||||
```ps1
|
```PowerShell
|
||||||
Set-Mailbox 'HUB01@contoso.com' -Type Regular
|
Set-Mailbox 'HUB01@contoso.com' -Type Regular
|
||||||
Set-CASMailbox 'HUB01@contoso.com' -ActiveSyncMailboxPolicy $easPolicy.id
|
Set-CASMailbox 'HUB01@contoso.com' -ActiveSyncMailboxPolicy $easPolicy.id
|
||||||
Set-Mailbox 'HUB01@contoso.com' -Type Room
|
Set-Mailbox 'HUB01@contoso.com' -Type Room
|
||||||
@ -264,7 +277,7 @@ Use this procedure if you use Exchange online.
|
|||||||
|
|
||||||
Various Exchange properties must be set on the device account to improve the meeting experience. You can see which properties need to be set in the [Exchange properties](exchange-properties-for-surface-hub-device-accounts.md) section.
|
Various Exchange properties must be set on the device account to improve the meeting experience. You can see which properties need to be set in the [Exchange properties](exchange-properties-for-surface-hub-device-accounts.md) section.
|
||||||
|
|
||||||
```ps1
|
```PowerShell
|
||||||
Set-CalendarProcessing -Identity 'HUB01@contoso.com' -AutomateProcessing AutoAccept -AddOrganizerToSubject $false –AllowConflicts $false –DeleteComments $false -DeleteSubject $false -RemovePrivateProperty $false
|
Set-CalendarProcessing -Identity 'HUB01@contoso.com' -AutomateProcessing AutoAccept -AddOrganizerToSubject $false –AllowConflicts $false –DeleteComments $false -DeleteSubject $false -RemovePrivateProperty $false
|
||||||
Set-CalendarProcessing -Identity 'HUB01@contoso.com' -AddAdditionalResponse $true -AdditionalResponse "This is a Surface Hub room!"
|
Set-CalendarProcessing -Identity 'HUB01@contoso.com' -AddAdditionalResponse $true -AdditionalResponse "This is a Surface Hub room!"
|
||||||
```
|
```
|
||||||
@ -294,24 +307,38 @@ Use this procedure if you use Exchange online.
|
|||||||
|
|
||||||
7. Connect to Azure AD.
|
7. Connect to Azure AD.
|
||||||
|
|
||||||
|
You first need to install Azure AD module for PowerShell version 2. In an elevated powershell prompt run the following command :
|
||||||
|
|
||||||
|
```PowerShell
|
||||||
|
Install-Module -Name AzureAD
|
||||||
|
```
|
||||||
You need to connect to Azure AD to apply some account settings. You can run this cmdlet to connect.
|
You need to connect to Azure AD to apply some account settings. You can run this cmdlet to connect.
|
||||||
|
|
||||||
```ps1
|
```PowerShell
|
||||||
Connect-MsolService -Credential $cred
|
Import-Module AzureAD
|
||||||
|
Connect-AzureAD -Credential $cred
|
||||||
```
|
```
|
||||||
|
|
||||||
8. Assign an Office 365 license.
|
8. Assign an Office 365 license.
|
||||||
|
|
||||||
The device account needs to have a valid Office 365 (O365) license, or Exchange and Skype for Business will not work. If you have the license, you need to assign a usage location to your device account—this determines what license SKUs are available for your account.
|
The device account needs to have a valid Office 365 (O365) license, or Exchange and Skype for Business will not work. If you have the license, you need to assign a usage location to your device account—this determines what license SKUs are available for your account.
|
||||||
|
|
||||||
Next, you can use `Get-MsolAccountSku` to retrieve a list of available SKUs for your O365 tenant.
|
Next, you can use `Get-AzureADSubscribedSku` to retrieve a list of available SKUs for your O365 tenant.
|
||||||
|
|
||||||
Once you list out the SKUs, you can add a license using the `Set-MsolUserLicense` cmdlet. In this case, `$strLicense` is the SKU code that you see (for example, *contoso:STANDARDPACK*).
|
Once you list out the SKUs, you'll need to assign the SkuId you want to the `$License.SkuId` variable.
|
||||||
|
|
||||||
```ps1
|
```PowerShell
|
||||||
Set-MsolUser -UserPrincipalName 'HUB01@contoso.com' -UsageLocation 'US'
|
Set-AzureADUser -ObjectId "HUB01@contoso.com" -UsageLocation "US"
|
||||||
Get-MsolAccountSku
|
|
||||||
Set-MsolUserLicense -UserPrincipalName 'HUB01@contoso.com' -AddLicenses $strLicense
|
Get-AzureADSubscribedSku | Select Sku*,*Units
|
||||||
|
$License = New-Object -TypeName Microsoft.Open.AzureAD.Model.AssignedLicense
|
||||||
|
$License.SkuId = SkuId You selected
|
||||||
|
|
||||||
|
$AssignedLicenses = New-Object -TypeName Microsoft.Open.AzureAD.Model.AssignedLicenses
|
||||||
|
$AssignedLicenses.AddLicenses = $License
|
||||||
|
$AssignedLicenses.RemoveLicenses = @()
|
||||||
|
|
||||||
|
Set-AzureADUserLicense -ObjectId "HUB01@contoso.com" -AssignedLicenses $AssignedLicenses
|
||||||
```
|
```
|
||||||
|
|
||||||
Next, you enable the device account with [Skype for Business Online](#sfb-online), [Skype for Business on-premises](#sfb-onprem), or [Skype for Business hybrid](#sfb-hybrid).
|
Next, you enable the device account with [Skype for Business Online](#sfb-online), [Skype for Business on-premises](#sfb-onprem), or [Skype for Business hybrid](#sfb-hybrid).
|
||||||
@ -323,22 +350,22 @@ In order to enable Skype for Business, your environment will need to meet the [p
|
|||||||
|
|
||||||
1. Start by creating a remote PowerShell session to the Skype for Business online environment from a PC.
|
1. Start by creating a remote PowerShell session to the Skype for Business online environment from a PC.
|
||||||
|
|
||||||
```
|
```PowerShell
|
||||||
Import-Module LyncOnlineConnector
|
Import-Module SkypeOnlineConnector
|
||||||
$cssess=New-CsOnlineSession -Credential $cred
|
$cssess=New-CsOnlineSession -Credential $cred
|
||||||
Import-PSSession $cssess -AllowClobber
|
Import-PSSession $cssess -AllowClobber
|
||||||
```
|
```
|
||||||
|
|
||||||
2. To enable your Surface Hub account for Skype for Business Server, run this cmdlet:
|
2. To enable your Surface Hub account for Skype for Business Server, run this cmdlet:
|
||||||
|
|
||||||
```
|
```PowerShell
|
||||||
Enable-CsMeetingRoom -Identity 'HUB01@contoso.com' -RegistrarPool
|
Enable-CsMeetingRoom -Identity 'HUB01@contoso.com' -RegistrarPool
|
||||||
'sippoolbl20a04.infra.lync.com' -SipAddressType UserPrincipalName
|
'sippoolbl20a04.infra.lync.com' -SipAddressType UserPrincipalName
|
||||||
```
|
```
|
||||||
|
|
||||||
If you aren't sure what value to use for the `RegistrarPool` parameter in your environment, you can get the value from an existing Skype for Business user using this cmdlet:
|
If you aren't sure what value to use for the `RegistrarPool` parameter in your environment, you can get the value from an existing Skype for Business user using this cmdlet:
|
||||||
|
|
||||||
```
|
```PowerShell
|
||||||
Get-CsOnlineUser -Identity 'HUB01@contoso.com'| fl *registrarpool*
|
Get-CsOnlineUser -Identity 'HUB01@contoso.com'| fl *registrarpool*
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -368,7 +395,7 @@ For validation, you should be able to use any Skype for Business client (PC, And
|
|||||||
|
|
||||||
To run this cmdlet, you will need to connect to one of the Skype front-ends. Open the Skype PowerShell and run:
|
To run this cmdlet, you will need to connect to one of the Skype front-ends. Open the Skype PowerShell and run:
|
||||||
|
|
||||||
```
|
```PowerShell
|
||||||
Enable-CsMeetingRoom -Identity 'HUB01@contoso.com' -RegistrarPool registrarpoolfqdn -SipAddressType UserPrincipalName
|
Enable-CsMeetingRoom -Identity 'HUB01@contoso.com' -RegistrarPool registrarpoolfqdn -SipAddressType UserPrincipalName
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -383,7 +410,7 @@ In a hybrid Skype environment, you have to create the user on-premises first, th
|
|||||||
|
|
||||||
In order to have a functional Surface Hub account in a Skype hybrid configuration, create the Skype account as a normal user type account, instead of creating the account as a meetingroom. First follow the Exchange steps - either [online](#exchange-online) or [on-premises](#exchange-on-premises) - and, instead of enabling the user for Skype for Business Online as described, [enable the account](https://technet.microsoft.com/library/gg398711.aspx) on the on-premises Skype server:
|
In order to have a functional Surface Hub account in a Skype hybrid configuration, create the Skype account as a normal user type account, instead of creating the account as a meetingroom. First follow the Exchange steps - either [online](#exchange-online) or [on-premises](#exchange-on-premises) - and, instead of enabling the user for Skype for Business Online as described, [enable the account](https://technet.microsoft.com/library/gg398711.aspx) on the on-premises Skype server:
|
||||||
|
|
||||||
```
|
```PowerShell
|
||||||
Enable-CsUser -Identity 'HUB01@contoso.com' -RegistrarPool "registrarpoolfqdn" -SipAddressType UserPrincipalName
|
Enable-CsUser -Identity 'HUB01@contoso.com' -RegistrarPool "registrarpoolfqdn" -SipAddressType UserPrincipalName
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ If you have a pure, online (O365) deployment, then you can [use the provided Pow
|
|||||||
Be sure you have the right permissions set to run the associated cmdlets.
|
Be sure you have the right permissions set to run the associated cmdlets.
|
||||||
|
|
||||||
```PowerShell
|
```PowerShell
|
||||||
Set-ExecutionPolicy Unrestricted
|
Set-ExecutionPolicy RemoteSigned
|
||||||
$org='contoso.microsoft.com'
|
$org='contoso.microsoft.com'
|
||||||
$cred=Get-Credential admin@$org
|
$cred=Get-Credential admin@$org
|
||||||
$sess= New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $cred -Authentication Basic -AllowRedirection
|
$sess= New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $cred -Authentication Basic -AllowRedirection
|
||||||
@ -71,36 +71,51 @@ If you have a pure, online (O365) deployment, then you can [use the provided Pow
|
|||||||
|
|
||||||
5. Connect to Azure AD.
|
5. Connect to Azure AD.
|
||||||
|
|
||||||
|
You first need to install Azure AD module for PowerShell version 2. In an elevated powershell prompt run the following command :
|
||||||
|
|
||||||
|
```PowerShell
|
||||||
|
Install-Module -Name AzureAD
|
||||||
|
```
|
||||||
You need to connect to Azure AD to apply some account settings. You can run this cmdlet to connect.
|
You need to connect to Azure AD to apply some account settings. You can run this cmdlet to connect.
|
||||||
|
|
||||||
```PowerShell
|
```PowerShell
|
||||||
Connect-MsolService -Credential $cred
|
Import-Module AzureAD
|
||||||
|
Connect-AzureAD -Credential $cred
|
||||||
```
|
```
|
||||||
|
|
||||||
6. If you decide to have the password not expire, you can set that with PowerShell cmdlets too. See [Password management](password-management-for-surface-hub-device-accounts.md) for more information.
|
6. If you decide to have the password not expire, you can set that with PowerShell cmdlets too. See [Password management](password-management-for-surface-hub-device-accounts.md) for more information.
|
||||||
|
|
||||||
```PowerShell
|
```PowerShell
|
||||||
Set-MsolUser -UserPrincipalName 'HUB01@contoso.com' -PasswordNeverExpires $true
|
Set-AzureADUser -ObjectId "HUB01@contoso.com" -PasswordPolicies "DisablePasswordExpiration"
|
||||||
```
|
```
|
||||||
|
|
||||||
7. Surface Hub requires a license for Skype for Business functionality. In order to enable Skype for Business, your environment will need to meet the [prerequisites for Skype for Business online](hybrid-deployment-surface-hub-device-accounts.md#sfb-online).
|
7. Surface Hub requires a license for Skype for Business functionality. In order to enable Skype for Business, your environment will need to meet the [prerequisites for Skype for Business online](hybrid-deployment-surface-hub-device-accounts.md#sfb-online).
|
||||||
|
|
||||||
Next, you can use `Get-MsolAccountSku` to retrieve a list of available SKUs for your O365 tenant.
|
Next, you can use `Get-AzureADSubscribedSku` to retrieve a list of available SKUs for your O365 tenant.
|
||||||
|
|
||||||
Once you list out the SKUs, you can add a license using the `Set-MsolUserLicense` cmdlet. In this case, `$strLicense` is the SKU code that you see (for example, *contoso:STANDARDPACK*).
|
Once you list out the SKUs, you'll need to assign the SkuId you want to the `$License.SkuId` variable.
|
||||||
|
|
||||||
```PowerShell
|
```PowerShell
|
||||||
Set-MsolUser -UserPrincipalName 'HUB01@contoso.com' -UsageLocation "US"
|
Set-AzureADUser -ObjectId "HUB01@contoso.com" -UsageLocation "US"
|
||||||
Get-MsolAccountSku
|
|
||||||
Set-MsolUserLicense -UserPrincipalName 'HUB01@contoso.com' -AddLicenses $strLicense
|
Get-AzureADSubscribedSku | Select Sku*,*Units
|
||||||
|
$License = New-Object -TypeName Microsoft.Open.AzureAD.Model.AssignedLicense
|
||||||
|
$License.SkuId = SkuId You selected
|
||||||
|
|
||||||
|
$AssignedLicenses = New-Object -TypeName Microsoft.Open.AzureAD.Model.AssignedLicenses
|
||||||
|
$AssignedLicenses.AddLicenses = $License
|
||||||
|
$AssignedLicenses.RemoveLicenses = @()
|
||||||
|
|
||||||
|
Set-AzureADUserLicense -ObjectId "HUB01@contoso.com" -AssignedLicenses $AssignedLicenses
|
||||||
```
|
```
|
||||||
|
|
||||||
8. Enable the device account with Skype for Business.
|
8. Enable the device account with Skype for Business.
|
||||||
|
If you do not have the Skype for Business Powershell module installed, you can download it [here](http://go.microsoft.com/fwlink/?LinkId=294688).
|
||||||
|
|
||||||
- Start by creating a remote PowerShell session from a PC.
|
- Start by creating a remote PowerShell session from a PC.
|
||||||
|
|
||||||
```PowerShell
|
```PowerShell
|
||||||
Import-Module LyncOnlineConnector
|
Import-Module SkypeOnlineConnector
|
||||||
$cssess=New-CsOnlineSession -Credential $cred
|
$cssess=New-CsOnlineSession -Credential $cred
|
||||||
Import-PSSession $cssess -AllowClobber
|
Import-PSSession $cssess -AllowClobber
|
||||||
```
|
```
|
||||||
@ -108,12 +123,13 @@ If you have a pure, online (O365) deployment, then you can [use the provided Pow
|
|||||||
- Next, if you aren't sure what value to use for the `RegistrarPool` parameter in your environment, you can get the value from an existing Skype for Business user using this cmdlet (for example, *alice@contoso.com*):
|
- Next, if you aren't sure what value to use for the `RegistrarPool` parameter in your environment, you can get the value from an existing Skype for Business user using this cmdlet (for example, *alice@contoso.com*):
|
||||||
|
|
||||||
```PowerShell
|
```PowerShell
|
||||||
Get-CsOnlineUser -Identity ‘alice@contoso.com’| fl *registrarpool*
|
(Get-CsTenant).TenantPoolExtension
|
||||||
```
|
```
|
||||||
OR by setting a variable
|
OR by setting a variable
|
||||||
|
|
||||||
```PowerShell
|
```PowerShell
|
||||||
$strRegistrarPool = (Get-CsOnlineUser -Identity ‘alice@contoso.com’).RegistrarPool
|
$strRegistrarPool = (Get-CsTenant).TenantPoolExtension
|
||||||
|
$strRegistrarPool = $strRegistrarPool[0].Substring($strRegistrarPool[0].IndexOf(':') + 1)
|
||||||
```
|
```
|
||||||
|
|
||||||
- Enable the Surface Hub account with the following cmdlet:
|
- Enable the Surface Hub account with the following cmdlet:
|
||||||
|
@ -34,7 +34,7 @@ The **Interactive logon: Prompt user to change password before expiration** poli
|
|||||||
|
|
||||||
### Location
|
### Location
|
||||||
|
|
||||||
Computer Configuration\\Windows Settings\\Security Settings\\Local Policies\\Security Options
|
Computer Configuration\\Policies\\Windows Settings\\Security Settings\\Local Policies\\Security Options
|
||||||
|
|
||||||
### Default values
|
### Default values
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user