Scripts de configuración de salas del Sistema de salas de SkypeSkype Room System room setup scripts

Lea este tema para encontrar scripts de ejemplo para el aprovisionamiento de las cuentas de Sistema de salas de Skype.Read this topic to find sample scripts for provisioning Skype Room System accounts.

Esta sección muestra las secuencias de comandos de ejemplo que pueden utilizarse para suministrar cuentas de sistema del sitio de Skype.This section illustrates sample scripts that can be used to provision Skype Room System accounts. Estos scripts se muestran únicamente para fines ilustrativos y solo deben usarse previa consulta con el experto o administrador de dominio.These scripts are for illustrative purposes only and should be used only after consulting with your IT expert or domain administrator.

Secuencia de comandos de configuración de ejemplo: Skype para empresas y de Exchange Server (en instalaciones)Example Setup Script: Skype for Business and Exchange Server (On Premises)

# On Exchange 
Set-Mailbox -Identity -MailTip "This room is equipped with Lync Meeting Room (LRS), please make it a 
Lync Meeting to take advantage of enhanced meeting experience from LRS"

Set-CalendarProcessing -id -RemovePrivateProperty $false -AddOrganizerToSubject $false -AddAdditionalResponse 
$true -AdditionalResponse "This is an LRS room!" -DeleteSubject $false -AutomateProcessing AutoAccept 
# The following is used to preserve the Lync Meeting invitations - so create these based on your Lync Federated partners# Per Lync Federated Partner as a Recommended Practice to ensure Meetings show in Lync with Join#New-RemoteDomain -DomainName -Name Microsoft$true#Set-RemoteDomain -Identity Microsoft -TNEFEnabled $true
Set-ADAccountPassword -Identity "conference room"# Paste the next command on its own. Enter a blank password first, then enter the new password "password" twiceEnable-ADAccount -Identity "confroom"# On LyncEnable-CsMeetingRoom -SipAddress "" -RegistrarPool -Identity 'conference room' 
Set-CsMeetingRoom -Identity "conference room" -LineURI "tel:+14255551669;ext=1669" -EnterpriseVoiceEnabled $true

Secuencia de comandos de configuración de ejemplo: Skype para los negocios y en línea de Exchange ServerExample Setup Script: Skype for Business and Exchange Server Online

Asegúrese de haber revisado los siguientes requisitos previos antes de ejecutar el script:Make sure you've reviewed the following prerequisites before running the script:

  • Microsoft Online Services - Asistente para el inicio de sesión para profesionales de TI BETAMicrosoft Online Services Sign-In Assistant for IT Professionals BETA

  • Módulo Microsoft Azure Active Directory para Windows PowerShell (versión de 64 bits) o (versión de 32 bits)Windows Azure Active Directory Module for Windows PowerShell (64-bit version) or (32-bit version)

  • Módulo de Windows PowerShell para Lync OnlineWindows PowerShell Module for Lync Online

  • Reinicie si es necesarioReboot if needed

# Note you have to enter each command one at a time and update any bold fields for your environment
$rmURI="$rm@$org"$newpass='MyPass@word1'# This Section Signs into Remote PowerShell
$cred=Get-Credential admin@$org
$sess=New-PSSession -ConfigurationName -Credential $cred -AllowRedirection -Authentication basic -ConnectionUri
Import-PSSession $sess
Import-Module LyncOnlineConnector
$cssess=New-CsOnlineSession -Credential $cred
Import-PSSession $cssess -AllowClobber
Connect-MsolService -Credential $cred# This Section Create the Calendar Mailbox and Enables it for Lync
New-Mailbox -MicrosoftOnlineServicesID $rmURI -room -Name $rm -RoomMailboxPassword (ConvertTo-SecureString $newpass -AsPlainText -Force)
 -EnableRoomMailboxAccount $true

Set-CalendarProcessing -Identity $rmURI -DeleteSubject $false -AutomateProcessing AutoAccept 
Set-CalendarProcessing -Identity $rmURI -RemovePrivateProperty $false -AddOrganizerToSubject $false -AddAdditionalResponse $true -AdditionalResponse
 "This is an LRS room!"# Configure the Account to Not Expire
Set-MsolUser -UserPrincipalName $rm -PasswordNeverExpires $true# You need to detect your Lync Pool Registrar name. Using a normal Offic365/LyncOnline user account from your tenant, run the next command and update the RegistrarPool value for the second command coming up
Get-CsOnlineUser -Identity '' | fl *registrar*# Update with above result
Enable-CsMeetingRoom -Identity $rmURI -RegistrarPool "" -SipAddressType EmailAddress# If the previous command fails with an error regarding the account name not being found you might need to wait and try again in a few minutes. If you wait too long, you'll need to sign in again to remote PowerShell as detailed above.