How uninstall a Lync Server 2013 deployment?

Hi,
I have one question... how uninstall a Lync Server 2013 deployment?
Thks!!!

To uninstall Lync 2013, You can check below link
http://www.logicspot.net/index.php?id=51
For uninstall Lync Enterprise, you can refer below link {it's same for Lync 2013}
http://terenceluk.blogspot.com/2011/01/step-by-step-instructions-for.html
After uninstall Lync roles and components, you will need to
remove it from Active Directory
Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"
Mai Ali | My blog: Technical | Twitter:
Mai Ali

Similar Messages

  • Please help me resolve the Lync server 2013 deployment error: "An error occurred while applying SQL script for the feature BackendStore."

    I am getting an error in "Step 2 - Setup or Remove Lync Server Components" of "Install or Update Lync Server System" step.
    "An error occured while applying SQL script for the feature BackendStore. For details, see the log file...."
    Additionally, all previous steps such as: Prepare Active Directory, Prepare first Standard Edition server, Install Administrative Tools, Create and publish topology are done without any errors. The user that I used to setup the Lync server is member of:
    Administrators
    CSAdministrator
    Domain Admins
    Domain Users
    Enterprise Admins
    Group Policy Creator Owners
    RTCComponentUniversalServices
    RTCHSUniversalServices
    RTCUniversalConfigReplicator
    RTCUniversalServerAdmins
    Schema Admins
    I have tried to re-install all the things and started to setup a new one many times but the same error still occurred. Please see the log below and give me any ideas/solutions to tackle this problem.
    ****Creating DbSetupInstance for 'Microsoft.Rtc.Common.Data.BlobStore'****
    Initializing DbSetupBase
    Parsing parameters...
    Found Parameter: SqlServer Value lync.lctbu.com\rtc.
    Found Parameter: SqlFilePath Value C:\Program Files\Common Files\Microsoft Lync Server 2013\DbSetup.
    Found Parameter: Publisheracct Value LCTBU\RTCHSUniversalServices;RTC Server Local Group;RTC Local Administrators;LCTBU\RTCUniversalServerAdmins.
    Found Parameter: Replicatoracct Value LCTBU\RTCHSUniversalServices;RTC Server Local Group.
    Found Parameter: Consumeracct Value LCTBU\RTCHSUniversalServices;RTC Server Local Group;RTC Local Read-only Administrators;LCTBU\RTCUniversalReadOnlyAdmins.
    Found Parameter: DbPath Value D:\CsData\BackendStore\rtc\DbPath.
    Found Parameter: LogPath Value D:\CsData\BackendStore\rtc\LogPath.
    Found Parameter: Role Value master.
    Trying to connect to Sql Server lync.lctbu.com\rtc. using windows authentication...
    Sql version: Major: 11, Minor: 0, Build 2100.
    Sql version is acceptable.
    Validating parameters...
    DbName rtcxds validated.
    SqlFilePath C:\Program Files\Common Files\Microsoft Lync Server 2013\DbSetup validated.
    DbFileBase rtcxds validated.
    DbPath D:\CsData\BackendStore\rtc\DbPath validated.
    Effective database Path: \\lync.lctbu.com\D$\CsData\BackendStore\rtc\DbPath.
    LogPath D:\CsData\BackendStore\rtc\LogPath validated.
    Effective Log Path: \\lync.lctbu.com\D$\CsData\BackendStore\rtc\LogPath.
    Checking state for database rtcxds.
    Checking state for database rtcxds.
    State of database rtcxds is detached.
    Attaching database rtcxds from Data Path \\lync.lctbu.com\D$\CsData\BackendStore\rtc\DbPath, Log Path \\lync.lctbu.com\D$\CsData\BackendStore\rtc\LogPath.
    The operation failed because of missing file '\\lync.lctbu.com\D$\CsData\BackendStore\rtc\DbPath\rtcxds.mdf'
    Attaching database failed because one of the files not found. The database will be created.
    State of database rtcxds is DbState_DoesNotExist.
    Creating database rtcxds from scratch. Data File Path = D:\CsData\BackendStore\rtc\DbPath, Log File Path= D:\CsData\BackendStore\rtc\LogPath.
    Clean installing database rtcxds.
    Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.
    ****Creating DbSetupInstance for 'Microsoft.Rtc.Common.Data.RtcSharedDatabase'****
    Initializing DbSetupBase
    Parsing parameters...
    Found Parameter: SqlServer Value lync.lctbu.com\rtc.
    Found Parameter: SqlFilePath Value C:\Program Files\Common Files\Microsoft Lync Server 2013\DbSetup.
    Found Parameter: Serveracct Value LCTBU\RTCHSUniversalServices;RTC Server Local Group.
    Found Parameter: DbPath Value D:\CsData\BackendStore\rtc\DbPath.
    Found Parameter: LogPath Value D:\CsData\BackendStore\rtc\LogPath.
    Trying to connect to Sql Server lync.lctbu.com\rtc. using windows authentication...
    Sql version: Major: 11, Minor: 0, Build 2100.
    Sql version is acceptable.
    Validating parameters...
    DbName rtcshared validated.
    SqlFilePath C:\Program Files\Common Files\Microsoft Lync Server 2013\DbSetup validated.
    DbFileBase rtcshared validated.
    DbPath D:\CsData\BackendStore\rtc\DbPath validated.
    Effective database Path: \\lync.lctbu.com\D$\CsData\BackendStore\rtc\DbPath.
    LogPath D:\CsData\BackendStore\rtc\LogPath validated.
    Effective Log Path: \\lync.lctbu.com\D$\CsData\BackendStore\rtc\LogPath.
    Checking state for database rtcshared.
    Reading database version for database rtcshared.
    Database version for database rtcshared - Schema Version5, Sproc Version 0, Update Version 1.
    Thanks and Regards,
    Thanh Le

    Thanks Lạc
    Phạm 2
    I Had similar issue i end up uninstalling and reinstallting but same issue, then i change the drive but same issue. It was I/O issue. After adjusting my I/O it fix our issue and installation went on without any issue. 
    If any one using KVM here is detail article 
    We just  give this option cache=‘writeback
    using this article http://www.ducea.com/2011/07/06/howto-improve-io-performance-for-kvm-guests/ and http://itscblog.tamu.edu/improve-disk-io-performance-in-kvm/ this fix my issue thanks 

  • How to reinstall Lync server 2013 Core Component Server Applications

    Hi Would like to know how to register back the core server applications and where can i find the priority list. I incidentally
    removed the server applications (ClientVersionFilter, IIMFilter, VoIP Apps and EumRouting and Outbouding) when i removed my MSPL script application from the pool. I missed out to put my script
    app name after pool name when i run the command remove-cstrustedapplication. Then, it removed all the core apps from that pool.
    I found that .am files and .exe files are still in the C:\Program Files\Microsoft Lync Server 2013\Core and tried
    to register back using cmdlets but not very sure about the priority of the apps. Or can I install RTCHost.exe? Now Outgoing call is not working. Please kindly help. Thanks in Advance.

    Oh.. thank you very much both
    Saleesh and Eric. I will try it. 
    What I did is that I used the cmdlets New-CsServerApplication and registered the server apps (checked the server apps
    list from testing fe server) like how I register MSPL script app. But I may miss out some components since testing fe server uses Standard Edition. I registered my
    MSPL script app back too, but after a while Lync Front End Service keeps on stopping.  I am not sure that
    MSPL script or missing components which one causes to stop front end service. Now I am checking the event viewer logs.
    If I run add-remove Lync component wizard on the server, will it remove any other settings like removing users from
    pool? or it just install/unstall lync server core components only?
    Many thanks!

  • Issues repairing a Lync Server 2013 deployment

    Hi,
    Due to a malfunctioning of CAC service I decided to uninstall and then install those components again (using the Wizard).
    I unchecked CAC in Topology Builder and republished.
    Then I followed the steps:
    1) Install Local Configuration Store
    I found a problem. The last command, Replicate-CsCmsCertificates, arises an error (the others run fine):
    I haven't found anything about this error. When I checked the log:
    It only said something related to a registry key, probably permissions.
    I compared the three registry keys with the name "LS Replica Replicator Agent Service" with other Lync Server's registry that is working and they are the same. The keys are in
    HKLM\System\{ControlSet001|ControlSet002|CurrentControlSet}\services\eventlog\Lync Server.
    Nevertheless, when clicking "Finish" Step 1 state was Complete, so I went on.
    2) Setup or Remove Lync Server Components
    It was OK and removed PDP (CAC) components.
    3) Request, Install or Assign Certificates
    Didn't do it as they were right.
    4) Start services
    None services started:
         Front-End, error -2147024809
         A/V Conferencing, error 1053: The service did not respond to the start or control request in a timely fashion
         And so on.
    I have tried several things:
    a) Deleting xds-replica so it creates it again: it fails in Replicate-CsCmsCertificates also
    b) Deleting and repeating Certificates step: they go right but OAuth certificate, that end also with a Replicate-CsCmsCertificates and fails
    c) Repairing software through Control Panel>Programs: it didn't work as it failed again when repeating the steps
    Maybe I could try to uninstall all the software and install again but I'm not sure it's going to work and I would prefer to know what's happening so, if the other Lync Server fails (other environment, not the same pool), be able to fix it. The pool has just
    one server and I'm not sure if I can "delete" the server and deploy it again keeping the information in the database about users, monitoring, etc.
    Does anybody have an idea about what could be happening?
    (Server was patched to last month updates)
    Thank you in advance.
    Kind regards.

    Thank you for your reply, Eric.
    I already tried something like that (renaming instead of deleting) but it didn't worked.
    Actually, I have uninstalled Lync software and reinstalled again. Every service is starting but Front-End but it seems it's due to a known error. I'm trying to fix it in a couple of minutes.
    Kind regards.

  • Lync Server 2013 Deployment - Cross domain within Single Forest

    Hello Team,
    We have 5 separate domains in a Single Forest with two-way trust between domains. We are planning to deploy Lync 2013 On-Premise across all domains.
    1) What would be best possible approach to deploy Lync Servers ?
    2) We are planning to get 16000 Users (spread across 5 different domains) on Lync account, Can we have a Single pool managing all users ? 
    3) What high availability options should we opt for ?

    Hello Saleesh,
    Thanks for the update.
    I could just go ahead with below steps, Could you advise ?
    1) add additional sip domains as part of Lync pool configuration
    2) Install Certificates on all the domains
    3) update DNS suffix for all the domains - Any other changes i need to do with respect to DNS.
    4) Web publishing rules - Do i need to add seperate simple URLS for all domains ?
    5) Should i do any further changes on Office web app servers to make sure it works for all users from 5 seperate domains.
    Thanks,
    Shady

  • Lync Server 2013 Deployment Log Error

    Error: An error occurred: system.IO.FileNotfound.Exception, Could not find file \\local.sample.com\C$\CsData\CentralMgmtStore\rtc\DbPath.
    I tried to publish the topology and it's giving this kind of error, I have also prepare another topology to publish and it's the same.
    What do I need to do?
    Kindly help

    OK I have done that but still the same
    Let me break it down
    Here is what I did from the beginning.
    My active directory FQDN local.sample.com
    so on my system the domain name is showing local.sample.com
    computer name xxxxx.local.sample.com
    So I prepare launched Topology Builder
    Prepare New Topology
    1st Step: Primary Sip Domain: sample.com
    2nd Step: Front End Pool FQDN: local.sample.com
    Created the Folder on the C/: gave it all the permissions
    3rd Step: Define File Store: 
    File Server FQDN: local.sample.com
    File Share: I removed the share and put the name of the new folder i created instead of going to delete it from the topology
    4th Step: External Base Url: local.sample.com
    Finished
    On the Topology Builder
    Edited properties: set administrative access
    Central Management Server: Selected sample.local.com   xxxxx
    Finished
    Then Published
    Giving the error code 
    What do you think I need to do? Have I made any mistakes during the setup?
    Looking forward to hear from you.

  • Microsoft Lync Server 2013, Backup Service user store backup module detected items having pool ownership conflict during import.

    Dear Team,
    I have two Enterprise lync 2013 pools, abcPool and abcpool1. abcPool1 has got two servers, Server1 and server2. and abcpool has one FE server named "Server 3". and they have pool pairing.
    Replication was fine between them when i had only one FE server in each pool, one day FE service broke on one of the FE server on abcpool1 and failed to start so i had to do failover to another pool, at that time i introduced one more FE in abcPool1, that
    why now 2 FEs in abcPool2. Server1 FE service was resolved by reinstalling the binaries. However after that im unable to get the backupservice state to normal, i tried the below articles with no luck,
    http://social.technet.microsoft.com/Forums/lync/en-US/0403621e-26b6-4cd0-bbca-8534a20de665/backup-service-pool-ownership-conflict-during-import?forum=lyncdeploy 
    http://msucmenow.blogspot.in/2013/05/troubleshooting-lync-2013-pool-pairing.html
    "Event on Server 1"
    Log Name:      Lync Server
    Source:        LS Backup Service
    Date:          1/21/2014 8:02:33 AM
    Event ID:      4073
    Task Category: (4000)
    Level:         Warning
    Keywords:      Classic
    User:          N/A
    Computer:      ABC.net
    Description:
    Microsoft Lync Server 2013, Backup Service user store backup module detected items having pool ownership conflict during import.
    Items having pool ownership conflict: 
    ItemId: 1b3be172-b121-43cf-bd4e-b3d368eae6a9, DocId: 7972, DocName: urn:hcd:[email protected]
    ItemId: 1b3be172-b121-43cf-bd4e-b3d368eae6a9, DocId: 7973, DocName: urn:lcd:[email protected]
    ItemId: 1b3be172-b121-43cf-bd4e-b3d368eae6a9, DocId: 7974, DocName: urn:upc:[email protected]
    PS C:\Users\lyncadmin> Get-CsBackupServiceStatus -PoolFqdn pool1.net | fl
    ActiveMachineFqdn   : abc1.net
    OverallExportStatus : SteadyState
    OverallImportStatus : ErrorState
    BackupModules       : {UserServices.PresenceFocus:[SteadyState,ErrorState],
                          ConfServices.DataConf:[FinalState,NormalState],
                          CentralMgmt.CMSMaster:[FinalState,NotInitialized]}
    Following error in "Lync Server" logs on server3 on abcPool.
    Log Name:      Lync Server
    Source:        LS Backup Service
    Date:          1/21/2014 9:37:47 AM
    Event ID:      4069
    Task Category: (4000)
    Level:         Warning
    Keywords:      Classic
    User:          N/A
    Computer:     SQL1.net
    Description:
    Microsoft Lync Server 2013, Backup Service user store backup module encountered an exception that was handled gracefully when importing document batch.
    Batch file: UserServices\PresenceFocus\1-UserServices-8\Data\488bc218-9954-4caf-a5da-89efdb7b85a7_0_1562.xml.
     Exception: System.Data.SqlClient.SqlException (0x80131904): Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.Batch' directly or indirectly in database 'rtcxds' to update, delete, or
    insert the row that has been modified or deleted by another transaction. Retry the transaction or change the isolation level for the update/delete statement.
    Log Name:      Lync Server
    Source:        LS Backup Service
    Date:          1/21/2014 9:52:45 AM
    Event ID:      4064
    Task Category: (4000)
    Level:         Warning
    Keywords:      Classic
    User:          N/A
    Computer:     SQL1.net
    Description:
    Microsoft Lync Server 2013, Backup Service user store backup module encountered an exception that was handled gracefully during export.
    Additional Message: 
     Exception: System.IO.IOException: The process cannot access the file '\\SQl1.net\LyncShare\1-BackupService-10\BackupStore\UserServices\PresenceFocus\Cookie\Cookie.zip' because it is being used by another process.
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath,
    Boolean checkHost)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
    Praveen | MCSE Messaging 2003

    When you add a new FE in pool acdpool1, please check you have run the following:
    <system drive>\Program Files\Microsoft Lync Server 2013\Deployment\Bootstrapper.exe
    For the details, check
    http://technet.microsoft.com/en-us/library/jj204773.aspx
    Lisa Zheng
    TechNet Community Support

  • Lync Server 2013 in a Remote Desktop Environment

    Hello Community,
    We have a client who is sold on Lync. He wants to install Lync server in a Terminal Server but his environment is RDHS 2008v2 and his end users have thin clients. According to MS official position It is not supported. Has anyone successfully implemented
    this ? If yes what are the pitfalls that lay ahead with regards to audio/video redirection, desktop sharing etc. He has traditional phones but really he wants to get rid of them and go Lync full blown.

    The Virtualizing Lync Server 2013
    (WindowsITPro) article presents a nice overview to this topic.
    In additon, do take a look at the following resources which may be helpful:
    Planning a Lync Server 2013 Deployment on Virtual Servers
    http://www.microsoft.com/en-us/download/details.aspx?id=41936
    Deploying the Lync VDI plug-in in Lync Server 2013
    http://technet.microsoft.com/en-us/library/jj204683.aspx
    Making the Microsoft Lync to work best in your virtualization environment
    http://www.youtube.com/watch?v=WiZX3uoVKV8
    Note that unlike Lync Server 2010, the Lync 2013 VDI browser plug-in is designed to support VDI environments (with paired audio/video) running on supported platforms (from Windows Server 2008 R2 to 2012/R2).
    Hope this helps.
    Thanks / rgds,
    TechNet/MSDN Forum Moderator - http://www.leedesmond.com

  • How to unattended deploy Lync Server 2013 administrative tools

    Hi all,
    I'm trying to deploy the Lync Server 2013 administrative tools unattended but it seams not to be such easy as with other Microsoft products.
    I have looked for Lync Server setup command options/Switches but didn't find anything.
    Currently the only way it really works is by manually installing the administrative tools using normal deployment wizard.
    I have obsorved that the wizard then executes in the backgroud (not transparent) a set of different tasks like preparation tasks, installs some MSIs from the setup folder (like SharedManagementObjects.msi, SQLSysClrTypes.msi) and it copies
    the Lync Powershell Module locally.
    I'm trying to find a way where I can deploy only this Lync 2013 administrative Tools on a set of Administrators Workstation (Windows 7 clients) and on some Windows Server 2012 R2 Management Servers by using for example a Powershell script or any other way
    ... important is that I can install them unattended and distribute them via existing software distribution tool.
    Is there really no way to install them unattended?

    Hi Sergio Verardo,
    If I understand you correctly, the following steps for your reference.
    1. Installing all the required software that Anthony mentioned.
    2. Running the following command on target machine.
    Msiexec
     /i \\SharePath\admintools.msi /qn
    I tested it and worked on my computer.
    Best regards,
    Eric

  • How to run a Lync Server 2013 in amazon ec2 Instance ?

    Hi Friends,
    I would like to install a Lync server 2013 in amazon ec2 instance. Let me know can i install Active Directory server, Lync Server 2013 and Media server in a single amazon instance ?. If it possible how can i do it ?. And is any other features need to install
    to get the fully functional Lync server. Please help me am newbie in Lync environment  

    You can get Lync working in EC2 and I have lab'd his many times. Having said that the process isn't that straight forward (especially if you plan to do voice) a lot of planning and testing, specifically of the network would need to be undertaken.
    You can add multiple interfaces to an EC2 instance (see here http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html)
    If you're hard set on using EC2 you can get it to work, but I personally would look at Office 365 E4 or a small on-premise deployment depending on your requirements. 
    If this helped you please click "Vote As Helpful" if it answered your question please click "Mark As Answer"
    Georg Thomas | Lync MVP
    Blog www.lynced.com.au | Twitter
    @georgathomas
    Lync Edge Port Check (Beta)
    This forum post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • How do I enforce "Show My Picture" instead of "Hide My Picture" in Lync Server 2013?

    I was scouring TechNet and the web for a script that could perform the same task as one that I previously used for Lync 2010.
    In Lync 2010, we had already used Lync policy to enforce that only the Active Directory photo could be used. One thing that we couldn't set via policy however was the ability to complete remove the "Hide My Picture" option in Lync 2010 client.
    This left users with the ability to freely switch between showing the Corporate photo or no photo. I did eventually find and make use of script that constantly checked for this setting switch, then switched all users back to the desired "Show My Picture"
    setting. I don't recall who wrote it, but it's easy to find on technet. As we started to move more and more users to our Lync 2013 enterprise pool, I noted that even though the script was running, the setting seemed to be changeable. A closer look revealed
    that the script didn't function correctly against SQL for our 2013 pool.
    I took the concept and applied it to Lync Server 2013 after studying the differences in Userdata. In Lync 2013, because UserData is in .zip, you need to convert it to 2010 format XML to use logic intended for Lync 2010. My script will extract 2013 data,
    convert it to 2010, query for users who are set to "Hide My Picture" and then export any guilty users to an edited2010 XML. The script then converts this to 2013 Format .zip, and uploads the data for these users only. I chose to use Update-CSUserData
    insted of Import-CSUserData as this avoids having to restart my Front End. I then use a scheduled task on my Front End server which runs this script every hour.
    Please note: You can use this script, but I guarantee nothing about it's functionality, and I am not responsible for how you positively/negatively use it. You should always test things in a Lab Environment. Furthermore, this script was run on a relatively
    smaller Enterprise system in which we are by default set to "Show My Picture" and already assigned as part of our user policy the ForceADPhoto attribute. This means that running the script is less intensive on my FE than say on a FE with 10,000 users
    where none of the users were set to "Show My Picture". Please keep this in mind when planning to execute against your FE. You may want to edit my script and insert the -UserFilter or -WhatIf in the Export-CsUserData UpDate-CsUserData.
    Anyways, I hope this solves the similar issue for many of you Lync 2013 administrators. Please feel free to share my work with others if it does, and also give this post some good feedback and/or mark my post as the answer to your problem.
    Alas, here's the script (save it as a .ps1 , i.e. ForceShowMyPicture.ps1)
    #Lync 2013 ForceShowMyPicture - Compiled by Octavio A. Serpa (Octavio-Admin on TechNet)
    # Import Lync Module
    Import-Module “C:\Program Files\Common Files\Microsoft Lync Server 2013\Modules\Lync\Lync.psd1"
    ###Variables To Set
    #This variable is a folder where files will be temporarily written
    $folderPath = “C:\Lync2013Scripts\Export”
    #This is the FQDN of the pool in which the users you want to target reside
    $poolFQDN = “<lyncpool.domain.local>”
    ###Done
    #Message Out
    Write-Host -ForegroundColor YELLOW “CHECKING THAT TEMP EXPORT FOLDER PATH EXISTS"
    If (-not (Test-Path "$folderPath" -pathType container))
     "ERROR: Your Export Directory doesn't exist!"
     Exit
    Write-Host -ForegroundColor Green “TEMP EXPORT FOLDER DOES EXIST"
    Write-Host -ForegroundColor YELLOW “PRE-CLEANING OLD EXPORT/IMPORT FILES"
    If (Test-Path "$folderPath\Lync2013UserData.zip") { Remove-Item "$folderPath\Lync2013UserData.zip" }
    If (Test-Path "$folderPath\Lync2010UserData.xml") { Remove-Item "$folderPath\Lync2010UserData.xml" }
    If (Test-Path "$folderPath\Lync2010EditedUserData.xml") { Remove-Item "$folderPath\Lync2010EditedUserData.xml" }
    If (Test-Path "$folderPath\Lync2013EditedUserData.zip") { Remove-Item "$folderPath\Lync2013EditedUserData.zip" }
    Write-Host -ForegroundColor Green “PRE-CLEANING COMPLETED SUCCESSFULLY"
    #Message Out
    Write-Host -ForegroundColor YELLOW “EXPORTING LYNC 2013 POOL USER DATA”
    Export-CsUserData -PoolFqdn $poolFQDN -FileName $folderPath\Lync2013UserData.zip
    Write-Host -ForegroundColor Green “EXPORT COMPLETED SUCCESSFULLY"
    #Message Out
    Write-Host -ForegroundColor YELLOW “CONVERTING LYNC 2013 USER DATA TO 2010 FORMAT”
    Convert-CsUserData -InputFile "$folderPath\Lync2013UserData.Zip" -OutputFile "$folderPath\Lync2010UserData.xml" -TargetVersion Lync2010
    Write-Host -ForegroundColor Green “CONVERSION COMPLETED SUCCESSFULLY"
    #Message Out
    Write-Host -ForegroundColor YELLOW “CHECKING THAT FORMAT CONVERSION WAS SUCCESSFUL AND .XML EXISTS”
    If (-not (Test-Path "$folderPath\Lync2010UserData.xml" -pathType leaf))
     "ERROR: Verify that $folderPath is writable!"
     Exit
    Write-Host -ForegroundColor Green “CONVERSION COMPLETED SUCCESSFULLY"
    #Message Out
    Write-Host -ForegroundColor YELLOW “LOADING XML”
    $d = [xml] (Get-Content "$folderPath\Lync2010UserData.xml")
    Write-Host -ForegroundColor Green “XML LOADING COMPLETED SUCCESSFULLY"
    #Message Out
    Write-Host -ForegroundColor YELLOW “CORRECTING AD PHOTO SETTING”
    $changes = 0
    $lastProcessedUser = $null
    foreach ($hr in $d.HomedResources.HomedResource)
     $found = 0
     foreach ($c in $hr.Containers.Container)
      foreach ($p in $c.Publication)
       If ($p.CategoryName -eq 'contactCard' -and $p.InstanceNum -eq 6 -and $p.Data.contactCard.displayADPhoto -eq 'false')
        If ($hr.UserAtHost -ne $lastProcessedUser)
         "$($hr.UserAtHost) reset"
         $lastProcessedUser = $hr.UserAtHost
        $p.Data.contactCard.displayADPhoto = 'true'
        $p.Version = (([int] $p.Version) + 1).ToString()
        $p.PrevPubTime = $p.LastPubTime
        $p.LastPubTime = (Get-Date -Format s).ToString()
        $found = 1
        $changes++
     If ($found -eq 0) { [Void]$d.HomedResources.RemoveChild($hr) }
    Write-Host -ForegroundColor Green “AD PHOTO SETTING CORRECTIONS COMPLETED SUCCESSFULLY"
    #Message Out
    Write-Host -ForegroundColor YELLOW “Changes: $changes"
    If ($changes -ne 0)
     #Message Out
     Write-Host -ForegroundColor YELLOW “RE-SAVING XML”
     $d.Save("$folderPath\Lync2010EditedUserData.xml")
    #Message Out
    Write-Host -ForegroundColor YELLOW “CONVERTING LYNC 2010 .XML BACK TO 2013 .ZIP FORMAT"
    Convert-CsUserData -InputFile "$folderPath\Lync2010EditedUserData.xml" -OutputFile "$folderPath\Lync2013EditedUserData.zip" -TargetVersion Current
    #Message Out
    Write-Host -ForegroundColor Green “CONVERSION BACK TO 2013 .ZIP FORMAT SUCCESSFUL"
    #Message Out
    Write-Host -ForegroundColor YELLOW “IMPORTING LYNC 2013 POOL DATA FOR CORRECTED USERS”
    Update-CsUserData -FileName $folderPath\Lync2013EditedUserData.zip -Confirm:$false -Verbose
    Write-Host -ForegroundColor Green “IMPORT COMPLETED SUCCESSFULLY"
    Write-Host -ForegroundColor YELLOW “STARTING POST-IMPORT-CLEANUP OF EXPORT/IMPORT FILES"
    If (Test-Path "$folderPath\Lync2013UserData.zip") { Remove-Item "$folderPath\Lync2013UserData.zip" }
    If (Test-Path "$folderPath\Lync2010UserData.xml") { Remove-Item "$folderPath\Lync2010UserData.xml" }
    If (Test-Path "$folderPath\Lync2010EditedUserData.xml") { Remove-Item "$folderPath\Lync2010EditedUserData.xml" }
    If (Test-Path "$folderPath\Lync2013EditedUserData.zip") { Remove-Item "$folderPath\Lync2013EditedUserData.zip" }
    Write-Host -ForegroundColor Green “POST-IMPORT-CLEANUP COMPLETED"
    #Message Out
    Write-Host -ForegroundColor Green “AD PHOTO SETTING SUCCESSFULLY UPDATED"

    When I try to run this I get the follow error.  Any thoughts?
    Update-CsUserData : Unable to cast COM object of type 'System.__ComObject' to interface type
    'Microsoft.Rtc.Interop.User.ICsUserManagement'. This operation failed because the QueryInterface call on
    the COM component for the interface with IID '{D5ADD966-BDC3-4A8F-BFE8-6A59A9F74CB2}' failed due to the
    following error: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
    At C:\Lync2013Scripts\ForceDisplayPhoto.ps1:113 char:1
    + Update-CsUserData -FileName $folderPath\Lync2013EditedUserData.zip -Confirm:$fal ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: ([email protected]:String) [Update-CsUserData], Invalid
       CastException
        + FullyQualifiedErrorId : Microsoft.Rtc.Management.AD.Cmdlets.ImportOcsUserDataCmdlet

  • Deploy licences for Lync server 2013

    Hi Guys,
    How can i apply or how to put the Licences on Lync server 2013 i have a test lab Lync Server 2013 and i want to put the License on it how to do that? or is it possible i need another installation for it?
    Thank you,
    This forum really helps a lot.

    Agree with Anthony, the only other scenario is if you want to upgrade from the Evaluation to the full version in which case you need a copy of the full version media and follow the steps below:
    Insert or mount your full version media on your Lync server.
    Open Lync Server Management Shell
    Run Get-CsServerVersion to display the current version
    Run msiexec /fvomus server.msi EVALTOFULL=1 /qb
    You may be prompted to specify the location of server.msi (which can be found in the Setup\amd64\Setup\ folder on your installation media.
    Run Get-CsServerVersion to confirm the conversion  was successful.
    Run Enable-CsComputer
    If this helped you please click "Vote As Helpful" if it answered your question please click "Mark As Answer" | Blog
    www.lynced.com.au | Twitter
    @imlynced

  • How to put Mediation Server on Maintenance Mode for LYNC server 2013

    how to put the LYNC 2013 Mediation server on Maintenance mode???

    Hi,
    Did you solve the issue with the help the people above provided?
    If you mean server draining feature you can also check Topology option on Lync Server Control Panel, on Topology interface, click “Action” and there is an action called “Prevent new sessions for service”.
    Here is a similar case may help you:
    http://social.technet.microsoft.com/Forums/lync/en-US/ef3515a9-54c0-4b7a-ab48-45196764d837/how-to-use-lync-server-draining-feature?forum=ocsplanningdeployment
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • How to achieve Multi-Tenant in Lync Server 2013 Enterprise Edition

    Hi,
      As LHPv2 is discontinued, is anyone has idea how to achieve Multi-Tenant in Lync Server 2013 Enterprise Edition?
    e.g users from different tenants should not be able to communicate unless it is allowed either by federation or any other form.
    J.B.Patnaik

    once a Topology has been published you can not change the FQDN.
    Also you can refer shah-Khan answer, it will be helpful for you
    http://social.technet.microsoft.com/Forums/lync/en-US/47d4e101-4f7b-4115-8f44-897eb5410acb/need-to-change-a-published-fqdn-lync-pool-for-lync-enterprise-2010?forum=ocsplanningdeployment
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"
    Mai Ali | My blog: Technical | Twitter:
    Mai Ali

  • Deployment of Lync Server 2013

    HI , 
    Please help to get deployment plan of Lync 2013 including all steps.

    Hi,
    Before deploy Lync Server 2013, you can firstly use Lync Planning Tool to provide prescriptive guidance to get you started with planning your topology.
    More details:
    http://www.microsoft.com/en-hk/download/details.aspx?id=36823
    Then deploy Lync Server 2013 with the help of other Lync guidance.
    Best Regards,
    Eason Huang  
    Eason Huang
    TechNet Community Support

Maybe you are looking for