Cerrar
InicioComunicaciones UnificadasLync ServerCMDLets interesantes para Lync Server

CMDLets interesantes para Lync Server

Aquí os dejo algunos cmdlets que os pueden ser de utilidad para gestionar entornos Microsoft Lync Server:

Búsqueda de usuarios con plan de marcado asigando: Get-CsUser -Filter {LineURI -ne $Null} | Sort-Object -Property LineUri | Format-Table Displayname,LineURI -AutoSize (en este ejemplo yo he añadio el modificador -Identity para no mostrar todo el listado de usuarios, sino se mostraría el listado de usuarios completo)
CMDLETS_Lync_2013_1.png
Identificar el pool al cual está asignado un usuario: Get-CsUserPoolInfo -identity sbuitrago@asirsl.com

CMDLETS_Lync_2013_2.png

Asignar una línea privada a un usuario: Set-CsUser -Identity “sip:sbuitrago@asirsl.com” -PrivateLine “Tel:+34986000000”

CMDLETS_Lync_2013_3.png
Ver el número de la línea privada asignada a los usuarios:  Get-CsUser | Where {$_.privateline -ne “”} | FL DisplayName, PrivateLine

CMDLETS_Lync_2013_4.png

Asignar una directiva de Voz a todos los usuarios de una OU: Get-CsUser -OU “OU=Usuarios,OU=AsirLAB,DC=asirsl,DC=com” | Grant-CsVoicePolicy -PolicyName “DV_NO_PSTN”

CMDLETS_Lync_2013_5.png

Mostrar los usuarios desactivados temporalmente en Lync: Get-CsUser -Filter {Enabled -eq $False} | FT Name,SipAddress

CMDLETS_Lync_2013_6.png
Listado de certificados emitidos a usuarios de Lync por el Lync Server: Get-CsClientCertificate -Identity sbuitrago

CMDLETS_Lync_2013_7.png

Eliminar certificados emitidos por el Lync Server a un usuario: Revoke-CsClientCertificate -Identity <usuario>

Este cmdlet nos muestra información sobre los roles y servicios de los servidores de nuestra infraestructura de Lync Server:

 Get-CsService -PoolFqdn <fqdn_pool>

Identity                        : CentralManagement:pool.asirsl.com
FileStore                       : FileStore:asirsl.com
CentralManagementDatabase       : CentralManagementDatabase:srv-sql00
MirrorCentralManagementDatabase : CentralManagementDatabase:srv-sql2.asirsl.com
Active                          : True
DependentServiceList            : {}
ServiceId                       : 1-CentralMgmt-1
SiteId                          : Site:Asir Lync
PoolFqdn                        : pool.asirsl.com
Version                         : 6
Role                            : CentralManagement
Identity                     : UserServer:pool.asirsl.com
UserDatabase                 : UserDatabase:srv-sql00
MirrorUserDatabase           : UserDatabase:srv-sql2.asirsl.com
ConferenceServer             : ConferencingServer:pool.asirsl.com
MediaOnlyConferenceServer    :
McuFactorySipPort            : 444
UserPinManagementWcfHttpPort : 443
ConfDirManagementWcfTcpPort  : 9001
DependentServiceList         : {Registrar:pool.asirsl.com,
WebServer:pool.asirsl.com,
ConferencingServer:pool.asirsl.com}
ServiceId                    : 1-UserServices-21
SiteId                       : Site:Asir Lync
PoolFqdn                     : pool.asirsl.com
Version                      : 6
Role                         : UserServer
Identity                   : Registrar:pool.asirsl.com
MonitoringServer           :
MonitoringDatabase         : MonitoringDatabase:srv-sql00.asirsl.com
MirrorMonitoringDatabase   :
ArchivingServer            :
ArchivingDatabase          : ArchivingDatabase:srv-sql00.asirsl.com
MirrorArchivingDatabase    : ArchivingDatabase:srv-sql2.asirsl.com
WebServer                  : WebServer:pool.asirsl.com
EdgeServer                 : EdgeServer:edgelync.asirsl.com
UserServer                 : UserServer:pool.asirsl.com
SipPort                    : 5061
WebPort                    : 444
SipHealthPort              :
SipServerTcpPort           : 5060
SipClientTlsPort           :
LyssWcfMtlsPort            : 5077
XmppGatewaySipPort         : 5098
WinFabClientConnectionPort : 5092
WinFabLeaseAgentPort       : 5091
WinFabFederationPort       : 5090
WinFabIPCPort              : 5093
WinFabReplicationPort      : 5094
EnableAutomaticFailover    : False
FailbackDetectionInterval  :
FailureDetectionInterval   :
BackupRegistrar            :
DependentServiceList       : {ApplicationServer:pool.asirsl.com,
PersistentChatServer:srv-lync01.asirsl.com,
MediationServer:srv-lync02.asirsl.com,
EdgeServer:edgelync.asirsl.com…}
ServiceId                  : 1-Registrar-21
SiteId                     : Site:Asir Lync
PoolFqdn                   : pool.asirsl.com
Version                    : 6
Role                       : Registrar
Identity                                         : WebServer:pool.asirsl.com
FileStore                                        : FileStore:asirsl.com
UserServer                                       : UserServer:pool.asirsl.com
PrimaryHttpPort                                  : 80
PrimaryHttpsPort                                 : 443
ExternalHttpPort                                 : 8080
ExternalHttpsPort                                : 4443
PublishedPrimaryHttpPort                         :
PublishedPrimaryHttpsPort                        :
PublishedExternalHttpPort                        : 80
PublishedExternalHttpsPort                       : 443
ReachPrimaryPsomServerPort                       : 8060
ReachExternalPsomServerPort                      : 8061
AppSharingPortStart                              : 49152
AppSharingPortCount                              : 16383
McxSipPrimaryListeningPort                       : 5086
McxSipExternalListeningPort                      : 5087
RmWebSipPrimaryListeningPort                     : 5095
RmWebSipExternalListeningPort                    : 5096
SupportConferenceConsoleSipPrimaryListeningPort  :
SupportConferenceConsoleSipExternalListeningPort :
UcwaSipPrimaryListeningPort                      : 5088
UcwaSipExternalListeningPort                     : 5089
MeetingRoomAdminPortalInternalListeningPort      :
MeetingRoomAdminPortalExternalListeningPort      :
LIServiceInternalUri                             : https://pool.asirsl.com/locationinformation/liservice.svc
ABHandlerInternalUri                             : https://pool.asirsl.com/abs/handler
ABHandlerExternalUri                             : https://pool.asirsl.com/abs/handler
DLExpansionInternalUri                           : https://pool.asirsl.com/groupexpansion/service.svc
DLExpansionExternalUri                           : https://pool.asirsl.com/groupexpansion/service.svc
CAHandlerInternalUri                             : https://pool.asirsl.com/CertProv/CertProvisioningService.svc
CAHandlerInternalAnonUri                         : http://pool.asirsl.com/CertProv/CertProvisioningService.svc
CollabContentInternalUri                         : https://pool.asirsl.com/CollabContent
CollabContentExternalUri                         : https://pool.asirsl.com/CollabContent
CAHandlerExternalUri                             : https://pool.asirsl.com/CertProv/CertProvisioningService.svc
DeviceUpdateDownloadInternalUri                  : https://pool.asirsl.com/RequestHandler/ucdevice.upx
DeviceUpdateDownloadExternalUri                  : https://pool.asirsl.com/RequestHandlerExt/ucdevice.upx
DeviceUpdateStoreInternalUri                     : http://pool.asirsl.com/RequestHandler/Files
DeviceUpdateStoreExternalUri                     : https://pool.asirsl.com/RequestHandlerExt/Files
RgsAgentServiceInternalUri                       : https://pool.asirsl.com/RgsClients/AgentService.svc
RgsAgentServiceExternalUri                       : https://pool.asirsl.com/RgsClients/AgentService.svc
MeetExternalUri                                  : https://pool.asirsl.com/Meet
DialinExternalUri                                : https://pool.asirsl.com/Dialin
CscpInternalUri                                  : https://pool.asirsl.com/Cscp
ReachExternalUri                                 : https://pool.asirsl.com/Reach
ReachInternalUri                                 : https://pool.asirsl.com/Reach
WebTicketExternalUri                             : https://pool.asirsl.com/WebTicket/WebTicketService.svc
WebTicketInternalUri                             : https://pool.asirsl.com/WebTicket/WebTicketService.svc
McxServiceExternalUri                            : https://pool.asirsl.com/Mcx/McxService.svc
McxServiceInternalUri                            : https://pool.asirsl.com/Mcx/McxService.svc
SupportConferenceConsoleExternalUri              : https://pool.asirsl.com/SupportConferenceConsole
SupportConferenceConsoleInternalUri              : https://pool.asirsl.com/SupportConferenceConsole
AutodiscoverServiceExternalUri                   : https://pool.asirsl.com/Autodiscover/AutodiscoverService.svc/root
AutodiscoverServiceInternalUri                   : https://pool.asirsl.com/Autodiscover/AutodiscoverService.svc/root
HostedMigrationServiceExternalUri                : https://pool.asirsl.com/HostedMigration/HostedMigrationService.svc
UcwaServiceInternalUri                           : https://pool.asirsl.com/ucwa/
UcwaServiceExternalUri                           : https://pool.asirsl.com/ucwa/
BRBStorageServiceExternalUri                     : https://pool.asirsl.com/BRBStorage
BRBStorageServiceInternalUri                     : https://pool.asirsl.com/BRBStorage
PersistentChatWebInternalUri                     : https://pool.asirsl.com/PersistentChat/MGCWebService.asmx
PersistentChatWebManagerInternalUri              : https://pool.asirsl.com/PersistentChat/RM
PersistentChatWebManagerExternalUri              : https://pool.asirsl.com/PersistentChat/RM
HybridConfigServiceExternalUri                   : https://pool.asirsl.com/HybridConfig/HybridConfigService.svc
HybridConfigServiceInternalUri                   : https://pool.asirsl.com/HybridConfig/HybridConfigService.svc
ExternalFqdn                                     : pool.asirsl.com
InternalFqdn                                     : pool.asirsl.com
DependentServiceList                             : {Registrar:pool.asirsl.com,
ConferencingServer:pool.asir
sl.com}
ServiceId                                        : 1-WebServices-21
SiteId                                           : Site:Asir Lync
PoolFqdn                                         : pool.asirsl.com
Version                                          : 6
Role                                             : WebServer
Identity             : ConferencingServer:pool.asirsl.com
FileStore            : FileStore:asirsl.com
WebServer            : WebServer:pool.asirsl.com
EdgeServer           : EdgeServer:edgelync.asirsl.com
UserServer           : UserServer:pool.asirsl.com
WacServer            : WacServer:office.asirsl.com
ImSipPort            : 5062
DataPsomPort         : 8057
AudioVideoSipPort    : 5063
PhoneSipPort         :
AppSharingSipPort    : 5065
ImWebPort            : 444
DataWebPort          : 444
AudioVideoWebPort    : 444
PhoneWebPort         :
AppSharingWebPort    : 444
AudioPortStart       : 49152
AudioPortCount       : 8348
AppSharingPortStart  : 49152
AppSharingPortCount  : 16383
VideoPortStart       : 57501
VideoPortCount       : 8034
MeetingPsomPort      :
MeetingWebPort       :
Mcus                 : {IMConf, DataConf, AppSharingConf, AVConf}
DependentServiceList : {UserServer:pool.asirsl.com}
ServiceId            : 1-ConfServices-21
SiteId               : Site:Asir Lync
PoolFqdn             : pool.asirsl.com
Version              : 6
Role                 : ConferencingServer
Identity                  : ApplicationServer:pool.asirsl.com
FileStore                 : FileStore:asirsl.com
Registrar                 : Registrar:pool.asirsl.com
ApplicationDatabase       : ApplicationDatabase:srv-sql00
MirrorApplicationDatabase : ApplicationDatabase:srv-sql2.asirsl.com
CaaSipPort                : 5072
CasSipPort                : 5073
CpsSipPort                : 5075
PdpSipPort                :
PdpTurnPort               :
RgsSipPort                : 5071
RgsWcfMtlsPort            : 8404
AtsSipPort                : 5076
AudioPortStart            : 49152
AudioPortCount            : 8348
AppSharingPortStart       : 49152
AppSharingPortCount       : 16383
VideoPortStart            : 57501
VideoPortCount            : 8034
PrimaryUcwaSipPort        :
ExternalUcwaSipPort       :
Applications              : {urn:application:Cas, urn:application:Caa,
urn:application:testbot, urn:application:Cps…}
DependentServiceList      : {}
ServiceId                 : 1-ApplicationServer-21
SiteId                    : Site:Asir Lync
PoolFqdn                  : pool.asirsl.com
Version                   : 6
Role                      : ApplicationServer
Identity             : TrustedApplicationPool:pool.asirsl.com
Registrar            : Registrar:pool.asirsl.com
FileStore            :
ThrottleAsServer     : True
TreatAsAuthenticated : True
OutboundOnly         : False
RequiresReplication  : True
AudioPortStart       :
AudioPortCount       : 0
AppSharingPortStart  :
AppSharingPortCount  : 0
VideoPortStart       :
VideoPortCount       : 0
Applications         : {urn:application:sefautil}
DependentServiceList : {}
ServiceId            : 1-ExternalServer-32
SiteId               : Site:Asir Lync
PoolFqdn             : pool.asirsl.com
Version              : 6
Role                 : TrustedApplicationPool
Hay muchísimos más, pero con estos  y algunos modificadores diferentes podéis hacer muchas cosas interesantes.

Espero que os sea de utilidad!!!

Cómo asignar las li
Métodos abreviados

sbuytrago@asirsl.com

NO HAY COMENTARIOS

Este sitio web utiliza cookies. Si continúas navegando, consideramos que aceptas su uso. Puedes obtener más información en nuestra política de cookies. ACEPTAR

Aviso de cookies
Share This