Showing posts with label Lync 2010. Show all posts
Showing posts with label Lync 2010. Show all posts

Monday, April 29, 2013

Limited Functionality Error After Cumulative update

After Installing cumulaive update on all Lync servers we need to update database.
Installation of update will be very smooth and very less issues.But when it comes to update database its very critical and your heart beat will increase!!!For me yes..i have very bad experience on update database command.Whenever i have updated my database(SQL Cluster) My lync shows limited Functionlity error.
I tried with bothe of the commands

1- Install-CsDatabase -Update -ConfiguredDatabases -SqlServerFqdn <EEBE.Fqdn> -UseDefaultSqlPaths

2- Install-CsDatabase -Update -ConfiguredDatabases -SqlServerFqdn <EEBE.Fqdn>

Initially i struggled alot and played in SQL,but no luck last i got the solution.
Whenever i am getting Limited Functionlaty error i went and checked in my SQL databases using SQL management Studio and Found my rtcdyn database changed to single user mode.If i try to alter the same to multiuser mode it will not allow.
But Dont worry rtcdyn doesn't have any critical datat and it is only a dynamic content based on users login and activities it will udate.So what i done here is

Stoped SQL services
Gone to the physical path of the rtcdyn data path and Log Path
Renamed those files to something Else
Started SQL services
Open SQL Management Studio
Now you can see empty rtcdyn Database
Just right Click and delete the same.
Now goto the Front end server and run Below command

Install-CsDatabase -Update -ConfiguredDatabases -SqlServerFqdn < EEBE.Fqdn > -DatabasePaths <RtcDyn log path>, <RtcDyn data path>

 This will recreate your rtcdyn database and if you signout your Lync and signin back you can see preence and contacts.
Enjoy!!!!!!

If you have any suggession or any other solution Feel free to write here in Comments.

 

Thursday, December 20, 2012

Move CMS from Lync 2010 to Lync 2013

When we introduce Lync 2013 on Lync 2010 infra CMS will be on Lync 2010.So if we want to move the CMS to new 2013 pool here is the steps.
For safer part we can take config backup using export-csconfig and export-cslisconfig.
Next step is to install CMS store new Lync 2013 pool for that run the below command.

Install-Csdatabase -centralmanagementdatabase -usedefaultsqlpaths -sqlserverfqdn <backendsqlserverfqdn>

Next step is to move CMS server.

move-csmanagementserver

If the source cms server is offline you can use below command.

Move-CsManagementServer -ConfigurationFileName "C:\configfile.zip" -LisConfigurationFileName "C:\CsLisConfigfile.zip" -Force

Thursday, November 22, 2012

Lync with Cisco VCS Integration/HD Integration

Most of the organisation wil be having High defnition conference feature available.So the users who are using Lync they can utilise that feature using Lync client easily with below steps.The document is svailable on Cisco sites but still below one will be an easy refernce for you.

First you need to add VCS domain as truted application in Lync topology then only Lync will accept request from VCS.

Here is command to make VCS as trusted application:
1- Add application pool
New-CsTrustedApplicationPool -Identity <vcsdomainfqdn> -Registrar LyncFEPool -site <Sitenumber you want to integrate> -RequiresReplication $false -ThrottleAsServer $true -TreatAsAuthenticated $true

2- Add application
New-CsTrustedApplication -ApplicationID VCSApplication1 -TrustedApplicationPoolFqdn <vcsdomainfqdn> -Port 5061
3- Set The encryption Level.
set-CsMediaConfiguration -EncryptionLevel supportencryption
4- Create static route to route the request towards VCS.
$Route1=New-CsStaticRoute -TLSRoute -Destination "vcsdomainfqdn" -MatchUri "domainname" –Port 5061 -UseDefaultCertificate $true
Set-CsStaticRoutingConfiguration -Identity global -Route @{Add=$Route1}

Above part is from Lync side.Same way need to configure Cisco VCS to accept lync request.
Once both side configured you can dial conference number from Lync and enjoy the conference from your Desk.
 

Wednesday, November 21, 2012

Port Requirements for Lync 2010 Application sharing with external user

For Small buisness network this topic may not be that much usefull,but for a Large enterprise with restricted network setup this will be very usefull.Below requirements i captured using lot of testing and network tracing.When i recieved this requirement there was no articles clearly mentioned about how we can achieve this,all was mentioned some specific ports for application wise.

Scenario:Users are sitting in a restricted network.User only have text IM access with othere users as well as federation/external users.Requirement here is to application sharing with external/federated users.After the study i concluded with below ports for application sharing with external users.

Public to edgeserver:

TCP/443

UDP/3478

TCP/8057

TCP/50,000-59,999 (Outbound only)
From the internal Client to the internal Edge:

TCP - 443
UDP – 3478
Above ports for only to conference and Media traffic from internal user to External user.
If you wanted to have internal conference between 2 restricted netwok users below is the port requirements.
Client to Front End Pool
UDP
49152 to 57500
TCP
8057
TCP
443
TCP
49152 to 65535
TCP
448
Client to AV Pool
UDP
49152 to 57500
UDP
57501 to 65535
 

Monday, November 12, 2012

Lync 2010 User provisioning using AD Attributes

When it comes to Large setup you may need to provision users using some thirdparty tools or any other scripts.Here i faced major challenge like tried with dfault attributes but it was not success.User was showing not enabled for Lync access.

Below is the attributes i enabled initially.

sRTCSIP-PrimaryUserAddress:
msRTCSIP-UserEnabled: TRUE
msRTCSIP-PrimaryHomeServer:
msRTCSIP-FederationEnabled: TRUE
msRTCSIP-InternetAccessEnabled: TRUE
msRTCSIP-OptionFlags: 257

But it failed to enable users in Lync.Finally after lot of try i got solution like i need to enable default user policy also.below is the attribute which we need to enable.

msRTCSIP-UserPolicies:

Hope this will help you to enable using AD attributes or using FIM or any other provisioning tools.

Set Media Port Ranges in Lync

Here i am explaining this mainly for Enabing QoS for Lync services.If your organization is with large network this is necessary to limit lync Media traffic into a defined port ranges.SO this QoS can be enabled inall network appliances and assign the bandwidth from the network level.
Below is the commands to set the mediaports in Lync 2010

Client Ranges

Set-CsConferencingConfiguration -ClientMediaPortRangeEnabled 1
Set-CsConferencingConfiguration -ClientAudioPort 20000 -ClientAudioPortRange 40 -ClientVideoPort 20040 -ClientVideoPortRange 40 -ClientAppSharingPort 20080 -ClientAppSharingPortRange 40 -ClientFileTransferPort 20120 -ClientFileTransferPortRange 40 -ClientMediaPort 20160 -ClientMediaPortRange 40

Lync Pools

Set-CsConferenceServer -Identity <PoolFQDN> -AppSharingPortStart 40803 -AppSharingPortCount 8348

Set-CsApplicationServer -Identity <PoolFQDN> -AppSharingPortStart 40803 -AppSharingPortCount 8348

 
 

Thursday, November 1, 2012

Intermittent AOL PIC issue in Lync

Initially when we configured Lync fo Public IM communication we have recieved lot of omplaints from users related IM failed when the communicate with AOL users.After Lot of touble shooting found one solution and it helped me to resolve our issue.

In order to resolve this, you need to change the Cipher Suite order used by Windows such that TLS RSA with RC4 128 MD5 is tried first.
In order to change the Cipher Suite order, do the following on your Access Edge server:
  1. Launch the Group Policy Object Editor using: Start --> Run -> gpedit.msc
  2. Within the Group Policy Object Editor, traverse down to; Computer Configuration --> Administrative Templates --> Network --> SSL Configuration
  3. Click on SSL Configuration, and then double-click on SSL Cipher Suite Order (by default, the SSL Cipher Suite Order is set to "Not Configured")
  4. Select the “Enabled” radio button, and in the in the SSL Cipher Suites text box, copy the entire string into Notepad.
  5. Find  TLS_RSA_WITH_RC4_128_MD5, in the list and cut and paste it to the first item in the list.  (Be sure to take the trailing comma with it so you don't end up with a ",," in the list)
  6. Paste the newly-formatted string back into the text field in the GPO Editor, click OK
  7. Restart (reboot) the Lync Access Edge server for these changes to take effect.
Thanks for below Link.
http://blogs.technet.com/b/messaging_with_communications/archive/2011/09/27/lync-and-aol-pic-issues.aspx

Saturday, October 13, 2012

Lync Server 2010 Cumulative Update 7

Microsoft has realeased new Lync 2010 Cumulative update on October 2012.
It fixes multiple issues reported till date,below are the major features of new update.

1-New Media Quality Comparison Report in Monitoring server
2-Call Leg media Quality report addition in Monitoring
3-Mobile user status showing as inactive in some users.

Also it fixing some invalid meeting URL error and some other web component issues.
http://support.microsoft.com/kb/2740403
http://support.microsoft.com/?kbid=2493736


Wednesday, September 12, 2012

Remove + from FromURI or RequestURI in Lync 2010

Some of the call manager will not suppot when lync initiate call with +symbol in both to and From URI's(E.164).In such cases You can remove the + from lync side while sending to the call manager or gateway.

ToURI + you can strip from the trunk configuration using GUI.Like below.

But to remove + from FromURi there is  no option available in GUI mode.Format will be something  like this.from<sip:+12345@.....>.In this case gateway or call manager may not acept such request.
This option you can change using powersehell script.Run the get-cstrunkconfiguration.You will get output like below.


Here in the image highlighted seeting we need to make it as true.So it will remove + before sending to Call manager or gateway.Command will be like this.Set-CStrunk configuration -identity "test" RemovePlusFromUri $true.Now the Header wil be like From<Sip:12345@.....>to<.....>


Monday, June 4, 2012

Change Lync Database default path

This is one of the major topic which i faced lot of issues.I tried multiple time to create databse using install-csdatabase command but it always create database its on logic.not wher you want.So after lot of study i found a solution and moved databse in to proper disks where i required.
Here in my case most of the databses created in C drive.I wanted create in E drive.Find the below steps how i achived the same.
Logon to SQL server
Open SQL managemnet Studio
Click on New Query
Follow the Steps Below
Example:-
rtccab
Note down the database path
  use rtcab
  go
  sp_helpfile
  go
C:\CsData\ABSStore\(default)\dbpath\rtcab.mdf
c:\csdata\absstore\(default)\logpath\rtcab.ldf
Detatch the databse
   use master
   go
   sp_detach_db 'rtcab'
   go

Lync Simultaneous ring Leads to grabbled voicemail

When you enable simultaneous ring in lync client and your not answered the call.you will get a grabbled voice mail.
This issue is because your ifrastructure configuration mismatch of lync and call manager.below is the solution for this issue.
Go to UM dial plan o your Unified messaging server configuration.In general tab go to VOIP security settings select secured insted of SIP secured.



This solved my issue.Hope this will Help you also.

If this solved your issue dont forget to write down your feedback here..........

Thursday, April 12, 2012

Unified Messaging Service Not Starting

After installing Unified Messaging Role on Exchange 2010 the Unified Messaging service is not starting.Getting below Error.

The Microsoft Exchange Unified Messaging service was unable to start. More information: "Microsoft.Exchange.UM.UMService.UMServiceException: No certificate was found using the thumbprint '' specified in the UMCertificateThumbprint property of the UMServer object.

at Microsoft.Exchange.UM.UMService.UMConnectionManagerHelper.TLSConnectionManager.Initialize()

at Microsoft.Exchange.UM.UMService.UMService.InitializeConnectionManager()

at Microsoft.Exchange.UM.UMService.UMService.StartService()

at Microsoft.Exchange.UM.UMService.UMService.OnStartInternal(String[] args)"

For this issue First thing you need to check poper certificate is available in local system.
If certificate availbale Follow the below steps.
Go to Exchange management Console
Open Server configuration
Click on Unified Messaging
Click on the server
Go to right pane
Click on Assign certificate option
Follow the wizard and select the decided certificate.
Start the Service again..

Wow...now it is started right??????

Dont forget to put feedback.

Wednesday, March 28, 2012

Lync 2010 Power Shell Commands

NameSynopsisHelpUri
Approve-CsDeviceUpdateRuleApproves a device update rule that has been imported to the system. After a device update rule has been approved, the corresponding update will automatically be downloaded and installed by client devices affected by the update.Link
Clear-CsDeviceUpdateFileDeletes any rejected device update files that are no longer associated with a device.Link
Clear-CsDeviceUpdateLogDeletes all the Device Update Web service log and audit files that are older than the specified number of days.Link
Debug-CsLisConfigurationDisplays the Enhanced 9-1-1 (E9-1-1) Location Information service (LIS) configuration in XML format.Link
Disable-CsAdDomainUndoes the domain preparation tasks carried out by the Enable-CsAdDomain cmdlet. This cmdlet is typically used only if you are uninstalling Microsoft Lync Server 2010 from a domain.Link
Disable-CsAdForestUndoes the forest preparation tasks carried out by the Enable-CsAdForest cmdlet. This cmdlet is typically used only if you are uninstalling Microsoft Lync Server 2010.Link
Disable-CsComputerDisables a service or server role that has been removed from a computer running Microsoft Lync Server 2010.Link
Disable-CsHostingProviderDisables a hosting provider currently in use in your organization. A hosting provider is a third-party organization that provides instant messaging, presence, and related services for a domain that you would like to federate with. Hosting providers, such as Microsoft Lync Online 2010, differ from public providers (such as Yahoo!, MSN, and AOL) in that their services are not offered to the general public.Link
Disable-CsPublicProviderDisables a public provider configured for use in your organization. A public provider is an organization that provides instant messaging, presence, and related services to the general public. Microsoft Lync Server 2010 ships with three public providers configured but not enabled: Yahoo!; AOL; and MSN.

Force to use Lync Web App for conferences

If you have lync 2010 instaled on your system ,when you click on join conference URL it will launch your Lync 2010 client.What will happen some other organisation send you the link to join conference?you will not be able to join the meeting.
If you dont have Lync 2010 in your system you wil get below screen


 
So this will give you the option to join the meeting.But for such above case it is difficult because Lync default behaviour is like that.So if you want to force the use of Lync web app follow the below steps
simply add ?sl= to the meeting URL
The Lync Client will not launch and you can choose to run Lync Web App
 

Thursday, March 22, 2012

User count in Lync using Powershell

To get the number of users enable for lync run the below command

Get-CsUser -OnLyncServer | Measeure

OR

(Get-CsUser -OnLyncServer).count

To get the list of enterprise voice enabled users run below commands

get-csuser -Filter {EnterpriseVoiceEnabled -eq $true}

For count

get-csuser -Filter {EnterpriseVoiceEnabled -eq $true} | Measure

Wednesday, March 21, 2012

Limit number of Contacts user can have in Lync

If you want to set the number of contacts a user can have please go though below steps.

To check the current configuration run below commands.It will display the current limit

Get-CsUserServicesConfiguration

Result will be like

MaxContacts: 250

Set contacts limit in global lvele follow the below comands

Set-CsUserServicesConfiguration –Identity global –MaxContacts 750

To create new policy follow the below steps

New-CsUserServicesConfiguration –Identity site:Redmond –MaxContacts 400

To create pool level find below commands

New-CsUserServicesConfiguration –Identity service:UserServer:Servername –MaxContacts 100

 To find out number of contacts for a user use the Lync resource kit tool.There is no powershell script available.

Run below command from the command prompt wher the resource kit directory

DBAnalyze.exe /user:user@domain.com> c:\output.txt

Wednesday, March 7, 2012

Lync Push Notification not working in Mobile Clients

Most Of the time Lync URL Filter setting causing the issue.Blow option woked for me.Lets have a Try!
Option 1
  1. Open the Lync Server Control Panel (LSCP)
  2. Choose the IM and Presence feature from the LSCP menu
  3. Select the URL Filter page button
  4. On the Edit URL Filter - Global page, choose the Do not filter option as the Hyperlink prefix
  5. Click on the Commit button
 Option  2
  1. Open the Lync Server Control Panel (LSCP)
  2. Choose the IM and Presence feature from the LSCP menu
  3. Select the URL Filter page
  4. Leave the Send warning message option chosen as the Hyperlink prefix
  5. Click on the Select... button for the Filter these hyperlinks prefixes: feature
  6. On the Select Hyperlink Prefix page, expand the HTTP Hyperlink prefixes
  7. Remove the check mark from the http: and https: hyperlink prefixes
  8. Click on the OK button
  9. On the Edit URL Filter - Global page, click on the Commit button

Note the following Lync Server 2010 PowerShell cmdlets can be used to remove hyperlink prefixes using the Lync Server Management Shell:
  • Set-CsImFilterConfiguration -Identity -Prefixes @{remove="http:"}
  • Set-CsImFilterConfiguration -Identity -Prefixes @{remove="https:"}

Tuesday, March 6, 2012

Configure UAG Direct Access for Lync 2010

An NRPT exception consists of a fully-qualified DNS name that has no associated DirectAccess DNS Server address. This tells the DNS client to resolve the excepted name using its normal interface-configured DNS server instead of following the more general rule and sending the query to the internal DNS server.
The example below, output from the netsh namespace show policy command on a DirectAccess-enabled client, shows an exception followed by a more general rule:
Settings for sip.yourdomain.com
———————————————————————-
Certification authority :
DNSSEC (Validation) : disabled
DNSSEC (IPsec) : disabled
DirectAccess (DNS Servers) :
DirectAccess (IPsec) : disabled
DirectAccess (Proxy Settings) : Bypass proxy

Monday, March 5, 2012

Lync Server Front End Service Failed to Start

After installing Lync Front End server some times it wont start.Some time it will start and stop.
Some time it will give error like failed to start.Service code 1008193023
  
To resolve this problem, follow these steps to enable cross-database ownership chaining for the RTC database and for the RTCdyn database:
  1. On a computer that is running Microsoft SQL Server, connect to the RTC database, and then run the following SQL command from SQL Server Management Studio:
    "sp_dboption rtc, 'db chaining', TRUE"
  2. Connect to the RTCdyn database, and then run the following SQL command from SQL Server Management Studio:
    "sp_dboption rtcdyn,  'db chaining', TRUE"
  3. Start the Front End services.
Ref:http://support.microsoft.com/kb/968100

Sunday, March 4, 2012

Export user details in Lync 2010 using Powershell

List of users

Get-CsUser | select-object SipAddress,LineUri,EnterpriseVoiceEnabled  ..etc


List all users who are Enterprise Voice Enabled, and have a Dial Plan of Calgary


Get-CsUser -Filter {EnterpriseVoiceEnabled -eq $True} | where {$_.DialPlan -match "Calgary"}


List all users with phone number where their AD telephone number contains xxx


Get-CsAduser -Filter {Phone -like "*xxxx"} | select-object DisplayName,Phone


Count Enterprise Voice Users with a Phone Number

(get-csuser -OnLyncServer -Filter {EnterpriseVoiceEnabled -eq $true} | Where-Object {$_.LineURI –match "tel:+"} ).count


Export a List of Enterprise Voice Users

get-csuser -Filter {EnterpriseVoiceEnabled -eq $true} | export-csv evenabled.csv