Quantcast
Channel: Lync Server 2013 - Management, Planning, and Deployment forum
Viewing all 5984 articles
Browse latest View live

Error=(510), Description=(This user's tenant is not enabled for shared sip address space.)

$
0
0

Trying to migrate from On-Premise Lync 2013 to Lync Online.

I have Directory Synchronisation, ADFS/SSO.

The user can login for sharepoint, yammer, exchange, etc.

While trying to migrate the Lync user from On-Premise to Online, I get this error:

PS C:\Users\admintboucher> Move-CsUser -Identity mturgeon@domain.com -Target sipfed.online.lync.com -Credential $cred -HostedMigrationOverrideUrl https
://admin1a.online.lync.com/HostedMigration/hostedmigrationservice.svc/root
WARNING: Moving a user from the current version to an earlier version (or to a service version) can cause data loss.

Confirm
Move-CsUser
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"):
Move-CsUser : Server is not ready. Please try again later.
At line:1 char:1
+ Move-CsUser -Identity mturgeon@domain.com -Target sipfed.online.lync.com -Credent ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (CN=Marc-Olivier...DC=domain,DC=com:OCSADUser) [Move-CsUser], MoveUserException
    + FullyQualifiedErrorId : MoveError,Microsoft.Rtc.Management.AD.Cmdlets.MoveOcsUserCmdlet

I did:

Set-CsAccessEdgeConfiguration -UseDnsSrvRouting -AllowOutsideUsers 1 -AllowFederatedUsers 1 -EnablePartnerDiscovery 1

Set-CsHostingProvider -Identity LyncOnline -EnabledSharedAddressSpace $true -HostsOCSUsers $true -VerificationLevel UseSourceVerification -AutodiscoverUrlhttps://webdir.online.lync.com/Autodiscover/AutodiscoverService.svc/root

Set-CsTenantFederationConfiguration -SharedSipAddressSpace $true

http://support.microsoft.com/kb/2829500 didn't help...

Can't find what's wrong. I have a SR with Microsoft, and they are still searching...


Deployment Lync Edge with 2 NIC - ISP DNS and NAT

$
0
0

Hello Guys


At this time, only have Lync Server for Internal User with MS Lync 2013 and is working smoothly :) in VMware Server ESxi 

Now I need to publish Lync services to the outside network but my external DNS this in an internet provider. I have a Cisco Meraki firewall and the host for Lync Edge is to configure a cluster vmware esxi.

The server has two nic, which one is in the internal vswitch and other nic on a vswitch called external.

The NIC for External Access have 3 IP Address:

172.16.1.100 A/V

172.16.1.101 Webconf

172.16.1.102 Access

For Lan services:

192.168.1.100 Edge

192.168.1.101 Lync Server

Now in my Internal DNS only have the following register

Register A: lync.domain.net (Front End Internal) 

Register A: dialin.domain.net (Conference)

Register A: meet.domain.net (Internal Meeting)

Register A: admin.domain.net (Lync Admin)

Register A: Lyncdiscoverinternal.domain.net (Mobile Client)

Register SRV: _sipinternal.domain.net (SRV Register)

Register A: edge.domain.net (Edge Server)

My firewall is a cisco meraki which do NAT with 3 public IP, but I need to know if you are only asking my ISP to create external DNS records:

Register A: edge.domain.net (Autheticated access)

Register A: webconf.domain.net (Conference Services)

Register A: av.domain.net (Audio / Video)

Register SRV: _sipexternaltls.domain.net (Automatic discovery Lync Server)

Register SRV: _sipfederationtls.domain.net (Federate Domain)

Register SRV: _xmpp-server.domain.net (Use system with XMPP, example Google Talk)

I would like your help to know whether this configuration would be correct to publish services to the outside and that my users can connect from outside our corporate Lync.

Thank for your help.

Regards

Sebastian

Single user unable to access CSCP as CSUserAdministrator

$
0
0

I have a single user (which happens to be the only user that need access mind you) who has been added as a member of the CSUserAdministrator group but unable to access CSSP. I have tested on existing users and new test users and it works fine, just not for this one user.

Error in browser shows

Unauthorized: Access is denied due to a role-based access control (RBAC) authorization failure.

You do not have permission to view this application using the credentials that you provided.

Contact your support team to add your account into appropriate security group (s) for Lync Server administrators. Wait until the new role assignments take effect, and then try again.

Sign in as a different user 

Error in event viewer shows

Remote PowerShell cannot create InitialSessionState.

Remote PowerShell cannot create InitialSessionState for user: S-1-5-21-2042250844-1493393968-313593124-1045. Cause of failure: Not authorized to create runspace because there are no cmdlets in any user role.

Cause: Remote PowerShell can fail to create InitialSessionState for varied number of reasons. Please look for other events that can give some specific information.

Resolution:

Follow the resolution on the corresponding failure events.

I reference post

http://www.networksteve.com/windows/topic.php/Access_Denied_opening_Lync_administration_control_panel/?TopicId=61884&Posts=0 however rebooting has not helped....of course

nltest and dcdiag shows no errors

I have also tried crating a New-CsAdminrole copying CSUserAdministrator, I have also added this user as a domain administrator and they are able to logon directly to our Lync Server.

Our Lync deployment is ok, no errors, all functions work and I have run ADprep and ForestPrep as part of the build. Lync Server Deployment Wizard shows all ticks etc

Any ideas?

 

Lync management shell Filterable properties

$
0
0

Did MS ever write the Lyn server 2013-equivalent version of this Exchange server list:

Filterable Properties for the -Filter Parameter

https://technet.microsoft.com/en-us/library/bb738155%28v=exchg.141%29.aspx

Lync Web App doesnt work

$
0
0

Hi All,

I have a problem on my Lync Server 2013, when my internal or external users try to join the meeting using lync web app because they do not have any lync client installed,

When they try to click on Join using lync web app instead it redirects them to the local lync server url and the IE shows page can not be displayed, I m not sure what is wrong and why it redirects me to the local lync server url instead of external one.


If answer is helpful, please hit the green arrow on the left, or mark as answer. Salahuddin | Blogs:http://salahuddinkhatri.wordpress.com | MCITP Microsoft Lync

Not able to invite a PSTN No into the CCCP call in Lync 2013 set up.

$
0
0

Set up:

Lync Client 2013: Register with front server - User: raj05@cohowinery.cohovineyard.com. (Configured with PSTN Number-DID No)

Steps to Reproduce:

Create a conference using Meet Now option on lync client.

Invite a Mobile Number.

Error message is coming like "Fail to add the participants"

I have debug the server side log, getting error like "ms-diagnostics: 12004;reason="The user is not authorized to call the specified number or none of the routes have a valid gateway configured"

Routing to PSTN Audiocodec is getting failed.

NOTE: With the same user, I am able to dial the Mobile No and Vice versa, Call is getting connected successfully.

Routing towards the audio codec is working in point to point call. which means voice routing and gateway is properly configured on the set up.

Invite a PSTN user in CCCP call is getting failed.

It will be great if anyone help me to resolve this issue.

Regards,

Rajarajan.D

Publishing topology causes high CPU times? What?

$
0
0

I have a mixed environment currently with 2 lync 2010 front ends (Production) and 4 lync 2013 front ends (pilot pools).

When I make a change and publish the topology all 6 2010 and 2013 front ends go to 100% CPU time.  IIS Worker Process is to blame and issuing "iisreset" on each server fixes it.

Where do I ever begin to diagnose this? No odd network traffic in packet captures, but I know right away when it happens as SCOM starts blowing up on CPU time and Lync conference join errors.

Internal user to External user P2P call failed.

$
0
0

Hi,

Environment:-

Lync 2013 FE (collocate mediation role) - 1

Lync 2013 Edge server (Single IP FQDN)– 1

Public IP -1

Ports:

Access Edge: 5061

Web Conference: 444

A/V Edge: 443

Ports opened on External Firewall

TCP - 5061,443,444

UDP – 3478

Tested Scenario

Internal to Internalà Call, Video and Sharing are working fine.

External to Externalà Call, Video and Sharing are working fine.

Internal to External (vice versa)  à Call, Video and Sharing is not working.

Uccapi log:-

Client Log

--------------------------------------------------------------------------------------------------------------


User-Agent: UCCAPI/15.0.4569.1503 OC/15.0.4569.1503 (Microsoft Lync)

ms-client-diagnostics: 23; reason="Call failed to establish due to a media connectivity failure when one endpoint is internal and the other is remote";CalleeMediaDebug="audio:ICEWarn=0x2a0,LocalSite=:10970,LocalMR=:57220,RemoteSite=:33680,PortRange=1025:65000,LocalMRTCPPort=51651,LocalLocation=1,RemoteLocation=2,FederationType=0,NetworkName=airtel,Interfaces=0x18,BaseInterface=0x8,BaseAddress=:5594"

Content-Length: 0

----------------------------------------------------------------------------------------------------------------

Whether need to open 50000 – 59999 range ports in external firewall?

Can you please help on this problem ?

Regards,

Manikandan




Problems with one of the front-end servers (service wont start)

$
0
0

Hi,

Having a pool with two front-end servers (Lync Server 2013 on Windows Server 2012) and I cannot get one of servers to work properly. 

The Front-End service is not starting.

Have removed both servers from the topology and installed one at the time. When adding the second server to the pool the service never starts, its in starting state and a bunch of error messages appears:

- Server startup is being delayed because fabric pool manager is initializing.
Cause: This is normal when Pool is bootstrapped and indicates that the Front-End is waiting for a quorum of other Front-Ends to be started.

- Pool Manager failed to connect to Fabric Pool Manager.
Cause: This could happen because insufficient number of Front-Ends are currently active in the Pool.

I have tried restarted one at the time, both at the same time...

Reset-CsPoolRegistrarState -ResetType QuorumLossRecovery

Reset-CsPoolRegistrarState -ResetType FullReset

I have also had a look at the kb saying that there could be a certificate issue. So I have ran that script but no certificate is misplaced in any store.

I have removed the front-end certificates and requested new ones from the internal CA, I have also done the same to the OAuth certificates.

How to proceed?

retention period: Lync Archving

$
0
0

Dear all,

I would like to know how many days can Lync Archive server archive IM logs at longest reteintion; I thought the SQL server could keep data from minimum 5 days up to 1810 days(almost 5 years), however, with auto-deletion policy, someone says it can keep IM history from 1  up to 2562 days (almost 7 years) .

Though I have tried to look for the evidendce on MS Technet, but in vain.

If you know about the case, please advise.

Lync 2013 LS Master Replicator Agent Service error with event ID 2023

$
0
0

Hi All,

  Recentely, I found an error in our Lync 2013 Front end server as below details

---------------------------------------------------------

Failed to process replica status report. If this replica status is not up to date, Microsoft Lync Server 2013, Master Replicator Agent will request another status report from this replica.


Status report file: \\XXXXXXXX\1-CentralMgmt-1\CMSFileStore\xds-master\working\replication\tmp\xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\status\status.xml
Exception: [1205] System.Data.SqlClient.SqlException (0x80131904): Transaction (Process ID 148) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite)
   at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
   at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
   at Microsoft.Rtc.Common.Data.DBCore.Execute(SprocContext sprocContext, SqlConnection sqlConnection, SqlTransaction sqlTransaction)
ClientConnectionId:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

Cause: Possible reinstallation of Microsoft Lync Server 2013, Replica Replicator Agent on the replica.
Resolution:
Run Invoke-CsManagementStoreReplication cmdlet to force a replication.

-------------------------------------------

How can I solve this problem. kindly advise. thanks

Lync 2013 - Delegates are all of a sudden showing up in contacts list

$
0
0

All of a sudden, folks are seeing Delegates displaying in their Lync 2013 contacts list. 

We never had enterprise voice enabled in our environment.  Recently, I ran Windows updates on the 2012 R2 DC's.

Suggestions?

Should I set "EnableDelegation" to False so that folks won't see any Delegates in their contacts list?

Thanks

Ron

Lync 2013 Protocol Poster available now

Things which can break Lync desktop sharing

$
0
0

Proxy URL filter

For one of my customers, Lync desktop sharing suddenly stopped working only from a particular network. All required ports were opened, telnet , tracert all fine, also sometimes we saw it working , so it was intermittent.  you can guess what security and network team will say J.

Then captured traffic in netmon and it shows that there is reset for 443 traffic and uccplog shows error which points to 443 inspection device on the network , so shared it with network and security team, you wouldn’t guess their response this time J they asked me to identify the device which is resetting 443 session.  Now I only had to solve this issue, I knew even PSS engineer can only tell us that there is reset.

I started off with question  How it works some times?” , answer to this is that whenever it worked someone from Local IT team has logged in to that computer, also when logged in as normal users netstat shows time wait for 443 and sometimes sharing invitation expires.  This gave me a clue, so I asked for a new laptop which is not a member of any domain and started drilling down. ..Finally found that URL filtering rule has been applied to users in that subnet and corp application FQDNs are not bypassed. It was URL filtering application which was stopping this traffic.

I told security team that proxy is causing this issue GUESS WHAT they asked me why they were not informed about Lync FQDN earlierJ

WAN optimizer.

It was another lovely day in office talking all important topics like work life balance, movies , next best weekend place etc… suddenly tickets started flowing for desktop sharing issue. Immediately P1 case was opened and all of us specialist joined P1 bridge just to say WE DID NOT DO ANY CHANGES! Now someone is surely jealous of someone being happy or someone has not followed the change process. Who it is? And what it is has to be investigated, of course  by Lync team.

Again netmon says 443 rest and error message says 443 inspection.. Being a Microsoft application  expert you are not done yet without finding out which device is doing it, isn’t  it? . So started isolating the issue. Noticed that issue is happening only from specific region only. So asked everyone on call what is so special about this region…there was a dead silence and there was a smart answer YOU TELL US! Well this went on for a while till someone from network team asked with low tone will wan  optimizer has any impact on Lync traffic??J

It was WAN optimizer which was causing this issue.

Regards

Praveen R

Sharing my "Move user script." - Used for moving batches of users

$
0
0

I have worked on this for the last year or so, on and off, and wanted to share it with the community.  It is written to move users from R2 to Lync.  Instructions are simple.  It  will also handle moving users from Lync 2010 to Lync 2013 or even 2013 to 2013 or 2010 to 2010 if you want.  It provides all the functionality I needed to move large batches of users from one version to another while creating seperate text files of successes and failures for each batch.  Since MS didn't release (at least that I could find), a move user script like they did for R2, I created one. I wrote the basis of this a long, long time ago in a server room far, far away.

Quick start:

There is a global variable for a working directory that needs to be set.  It is currently set to e:\temp\migration as this is where my batches are located.

User Batch Files: These are text files with a list of users to be migrated.  They need to be named in the format batch#.txt where # is a unique number.  You can also use letters.  So batch 1 will be named batch1.txt.  Batch 2a will be labeled batch2a.txt.  The script will ask for the batch number.

The batch files can list users in the format of thier SIP URI with or without the SIP: in front. 

The script will look up a list of all Lync pools and SBAs (at least it should) and ask which one you want to migrate the users too.  If the list of pools and SBAs is very long, and in some installations it will, I am not sure what the behavior will be.  I will address that as our deployments progress.  I guess I can ask if you are migrating to a pool or an SBA to narrow it down. 

It will then ask for confirmation of your choices.

Disclaimer:  This is provided "as is" and I take no responsability for any damage, etc, etc, etc that this may do.  I am sharing this out of the sense of community so don't complain.  Feel free to share it as long as you say that you got it from that ubber cool guy "Mark Poulton."  I hacked this together (I am not a programmer) so it probably could be done much much better.  However, it works for me.  Enjoy my friend. 

I may or may not post updated versions as I improve this.

#
# Written by Mark Poulton
#
# The base of this script was taken from here
#
# http://www.itkegger.com/2012/04/03/migrating-users-from-ocs-to-lync-2010-script/
#
# This script will move users listed in a text file to the Lync 2013 Pools
#
# Format of the text file containing users to be moved is: sip:<SIPURI>
#    (One user per line.  No header)
#
# The list/TXT file should be located in the following directory
#   NOTE: THIS IS ADJUSTABLE VIA A GLOBAL VARIABLE
#
#   E:\Temp\Migration\Batch#.txt
#
# Migrations are done in batches.  Each batch has a number.
#  The text file should be in the format of Batch#.txt
#  where # represents the batch number.
#
# Example: Batch 3 would be in the format of
#   E:\Temp\Migration\Batch3.txt
#
# Update the $BatchNumber variable with the current batch number
#  Everything else will work itself out
#
# Logging files are created based upon the batch number for historical purposes
#
#

Function Pause($M="Press any key to continue . . . "){If($psISE){$S=New-Object -ComObject "WScript.Shell";$B=$S.Popup("Click OK to continue.",0,"Script Paused",0);Return};Write-Host -NoNewline $M;$I=16,17,18,20,91,92,93,144,145,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183;While($K.VirtualKeyCode -Eq $Null -Or $I -Contains $K.VirtualKeyCode){$K=$Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")};Write-Host}

###########################################################################
###########################################################################
### GLOBAL VARIABLES GLOBAL VARIABLES GLOBAL VARIABLES GLOBAL VARIABLES ###
### GLOBAL VARIABLES GLOBAL VARIABLES GLOBAL VARIABLES GLOBAL VARIABLES ###
### GLOBAL VARIABLES GLOBAL VARIABLES GLOBAL VARIABLES GLOBAL VARIABLES ###
### GLOBAL VARIABLES GLOBAL VARIABLES GLOBAL VARIABLES GLOBAL VARIABLES ###
###########################################################################
###########################################################################
#$ErrorActionPreference = "SilentlyContinue"

#
# Global path variable to where the user batch files are located.
#

$BatchPath = "E:\Temp\Migration"

Clear-Host
Write-Host " " -foregroundcolor yellow
Write-Host " This script will move users listed in a text file to the Lync 2013 Pools" -foregroundcolor yellow
Write-Host " " -foregroundcolor yellow
Write-Host "  Format of the text file containing users to be moved is: " -foregroundcolor yellow
Write-Host "    sip:<SIPURI> or <SIPURI> and any combination of the two "  -foregroundcolor yellow
Write-Host " " -foregroundcolor yellow
Write-Host "    (One user per line.  No header)" -foregroundcolor yellow
Write-Host " " -foregroundcolor yellow
Write-Host "  Migrations are done in batches.  Each batch has a number." -foregroundcolor yellow
Write-Host "    The text file should be in the format of Batch#.txt " -foregroundcolor yellow
Write-Host "    where # represents the batch number." -foregroundcolor yellow
Write-Host " " -foregroundcolor yellow
Write-Host "  The list/TXT file should be located in the following directory" -foregroundcolor yellow
Write-Host " " -foregroundcolor yellow
Write-Host "         $BatchPath\Batch#.txt" -foregroundcolor yellow
Write-Host " " -foregroundcolor yellow
Write-Host "  Example: Batch 3 would be in the format of" -foregroundcolor yellow
Write-Host "    $BatchPath\Batch3.txt" -foregroundcolor yellow
Write-Host " " -foregroundcolor yellow
Write-Host " " -foregroundcolor yellow

[console]::ForegroundColor = "DarkYellow"
$BatchNumber = Read-Host "Enter Batch Number"
[console]::ForegroundColor = "White"

#This will point to the TXT file that contains the users that need to be migrated
$BatchFilePath = "$BatchPath\Batch$BatchNumber.txt"

#This creates the Error log for troubleshooting
$FailedMove = "$BatchPath\FailedLegacyUserMove$BatchNumber.txt"

#This creates a log file to keep a record of all successful moves
$SuccessMove = "$BatchPath\SuccussfullyMigratedUser$BatchNumber.txt"




#
# The following section reads information via powershell using the get-cspool cmdlet
#  and filters based upon it having a Registrar Service (should indicate a pool) &
#  not being in the backcomp site (i.e. R2).  If I find a better way to do this
#  I will update it.
#

cls
Write-Host " " -foregroundcolor yellow
Write-Host "`tREADING LYNC POOL INFORMATION (No SBAs) - Be patient" -foregroundcolor yellow
Write-Host " " -foregroundcolor yellow


$Poolmenuitems = get-cspool | Where-Object {$_.Services -like "*Registrar*" -and $_.Site -notlike "*BackComp*" -and $_.Services -like "*User*"}  | Sort-Object -Property Identity
cls
$count=0

Write-Host " " -foregroundcolor yellow
Write-Host " " -foregroundcolor yellow

$menu=@()
foreach($menuitem in $Poolmenuitems)
{
$count+=1
$menu+=$menuitem.fqdn
write-host "$count.) $($menuitem.Identity)"
}
write-host " " -ForegroundColor Yellow
write-host "Select the Destination Lync Pool" -ForegroundColor Yellow
Write-Host " " -foregroundcolor yellow
$selection = Read-Host "Which pool do you want to migrate the users to?"
$LyncPool = $menu[$selection-1]

#
# Confirming selections that user has made.  If No, exiting script
#

cls
Write-Host "Use the following parameters? " -foregroundcolor yellow
Write-Host " " -foregroundcolor yellow
Write-Host "User file: " $BatchFilePath -foregroundcolor yellow
Write-Host " " -foregroundcolor yellow
Write-Host "Lync Pool to migrate users to: " $LyncPool -foregroundcolor yellow
Write-Host " " -foregroundcolor yellow
Write-Host " " -foregroundcolor yellow

$Response = ""
While ($Response -notmatch '^(Y|N)$')
    {
        $Response =
        Read-Host "Continue (Y/N)?"
    }

If ($Response.ToUpper() -eq "N")
    {
        Exit
    }

#
# Making sure the user batch file exists.  If it doesn't exist, writing message
#  to screen and exiting the script
#

If (Test-Path $BatchFilePath)
    {
    # This will pull the users that need to be migrated from the TXT file
    #  Reading list of users from the text file.
    $LegacyUser = Get-Content $BatchFilePath
    cls

    # Starting the migratoin process and informing.
    Write-Host " "
    Write-Host "Beginning migration for all users to pool $LyncPool"
    Write-Host " "

    Foreach ($User in $LegacyUser)
        {
        # Trimming the leading and trailing spaces from the user SIP URI
        # Changing to upper case
        # Removing SIP: if it exists at the beginning of the string
        # Adding SIP: back into string
        $SIP = $User.trim()
        $SIP = $SIP.ToUpper()
        $SIP = $SIP.replace("SIP:","")

        #
        # Checkin to see if the variable is blank.  If so, skipping.
        #

            If ($SIP -ne "")
                {
                #$SIP.Length/3
                #[MATH]::Floor([decimal]$SIP.length/3)
                Switch ([MATH]::Floor(([decimal]$SIP.length+2)/8))
                    {

                        4 {$Tabs1 =  "`t";Break}
                        3 {$Tabs1 =  "`t`t";Break}
                        2 {$Tabs1 =  "`t`t`t";Break}
                        1 {$Tabs1 =  "`t`t`t`t";Break}
                    } #End Switch<#
Migrating User:   []
12341234123412341234                    Migrating User: -$SIP-

#>
                Write-Host "Migrating User:`t" -ForegroundColor White -NoNewline
                Write-Host "[" -ForegroundColor Cyan -NoNewline
                Write-Host $SIP -ForegroundColor Yellow -NoNewline
                Write-Host "]" -ForegroundColor Cyan -NoNewline
                Write-Host $Tabs1 -NoNewline
                Write-Host "Status: " -ForegroundColor White -NoNewline
                $SIP = "SIP:" + $SIP
                #pause
                $ErrorActionPreference = "silentlycontinue"
                move-CsLegacyUser –Identity $SIP –Target $LyncPool –Confirm:$false –ErrorVariable “MoveErr”
                If ($MoveErr)
                    {
                    If ($MoveErr -match "Management object not found for identity")
                        {
                            Write-Host "SIP URI is incorrect" -ForegroundColor Cyan“Batch $BatchNumber - SIP URI $SIP does not exist” | Out-file -append -filepath $FailedMove
                        }
                    Else
                        { #Move failed for the user. CHecking to see if user is already on Lync
                        $FinalCheck = get-csuser -OnLyncServer -Identity $SIP
                        If ($FinalCheck.RegistrarPool -ne $null) #User is on Previous Version if this is empty.  Need to check if user is on this pool or not.
                            {
                                If ($($FinalCheck.RegistrarPool).ToString() -eq $LyncPool)
                                    {
                                        Write-Host "User is already on this pool" -ForegroundColor Cyan“Batch $BatchNumber - User $SIP was already on Lync pool $LyncPool"  | Out-file -append -filepath $SuccessMove
                                    }
                                Else #User is not on the destination pool.  Will attempt to move now.
                                    {
                                        move-CsUser –Identity $SIP –Target $LyncPool -MoveConferenceData –Confirm:$false -WarningAction SilentlyContinue –ErrorVariable “MoveErr1”
                                        If ($MoveErr1)
                                            {
                                                Write-Host "Failed" -ForegroundColor Red“Batch $BatchNumber - User $SIP Failed to move to pool $LyncPool” | Out-file -append -filepath $FailedMove
                                                "`t`t--- $MoveErr1.exception.message" | Out-file -append -filepath $FailedMove" " | Out-file -append -filepath $FailedMove
                                            }
                                        Else
                                            {
                                                Write-Host "Lync User moved to new pool" -ForegroundColor Cyan“Batch $BatchNumber - User $SIP was already on Lync and was moved to pool $LyncPool"  | Out-file -append -filepath $SuccessMove
                                            }
                                    } #End If ($($FinalCheck.RegistrarPool).ToString() -eq $LyncPool)
                            } #End If ($FinalCheck.RegistrarPool -ne $null)
                        Else #User is not on Lync and migration failed
                            {
                                Write-Host "Failed" -foregroundcolor Red“Batch $BatchNumber - User $SIP Failed to move to pool $LyncPool” | Out-file -append -filepath $FailedMove
                                "   --- $MoveErr.exception.message" | Out-file -append -filepath $FailedMove" " | Out-file -append -filepath $FailedMove
                            }
                        } #End Else
                    } #End If ($MoveErr)
                Else
                    {
                    Write-Host "Passed" -ForegroundColor Yellow“Batch $BatchNumber - User $SIP was moved to pool $LyncPool"  | Out-file -append -filepath $SuccessMove
                    }
                }#End If ($SIP -ne "")
        }#End Foreach ($User in $LegacyUser)
    } #End If (Test-Path $BatchFilePath)
Else
    {
        Write-Warning "The file containing the users to be migrated is not found at $BatchFilePath.  Check the path ..."
    }

Pause


Is it possible to hide the user options on the Lync client?

$
0
0
Supervisors are concerned with staff being able to modify their presence settings, I know that I can have the registry settings set through group policy, but it'd be a lot easier to remove temptation from the users all together. Is there any way to lock this down through either a registry setting, group policy or a setting on the Lync server itself?

Automatic Enable Users

$
0
0

I am trying to automatically enable new users in my Users container.  However, not all users in Users container should be enabled.  In order to accomplish this, my helpdesk team is adding "NoLync" in the users title in AD.  In order to test my script, I am just displaying name information.  At first, when I run this line:
Get-CsAdUser -OU "cn=users,dc=domain,dc=com" -LDAPFilter {Title!=NoLync} -Filter {Enabled -ne $True} |Select-Object DisplayName, Name
I get the following error message:
Get-CsAdUser : Cannot specify both filter (Filter) and LDAP filter (LdapFilter). You can only specify one or the other.
At line:1 char:1
+ Get-CsAdUser -OU "cn=users,dc=domain,dc=com" -LDAPFilter {Title!=NoLync} -Filter { ...

I tried modifying it like this:
Get-CsAdUser -OU "cn=users,dc=fusd,dc=adm" -Filter {Enabled -ne $True} |Get-CsAdUser -ldapFilter Title=NoLync |Select-Object DisplayName,Name
This time, I don't get any errors but I'm displaying all users that have not been enabled, including the one that have "NoLync" in their title.

If any body has any ideas, I would greatly appreciate it.

Thanks.

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

$
0
0

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

Backendstore database creation fails lync 2013

$
0
0
Backendstore database creation fails at step 2 installing lync components. I can physically watch the database appear then disappear in the csdata/backendstore/rtc/dbpath. File rtcxds.mdf. I'm running server 2012 and SQL 2012 express. Installing standard edition. I have uninstalled everything 3x and keep erroring out at this point. Firewall is also off. My topology also publishes without error. Here is the error Feature: BackendStore 1/27/2013 3:38:52 PM └ SQL Instance: zeus.athena.local\rtc 1/27/2013 3:38:52 PM └ Collocated: True 1/27/2013 3:38:52 PM └ Found "RTCHSUniversalServices": True 1/27/2013 3:38:52 PM └ Found "RTCUniversalServerAdmins": True 1/27/2013 3:38:52 PM └ Found "RTCHSUniversalServices": True 1/27/2013 3:38:52 PM └ Found "RTCHSUniversalServices": True 1/27/2013 3:38:52 PM └ Found "RTCUniversalReadOnlyAdmins": True 1/27/2013 3:38:52 PM └ InstallDatabaseInternalFailure: An internal error has occurred while trying to create or update the database. 1/27/2013 3:48:53 PM Error └ Error: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. ▼ Details └ Type: SqlException └ ▼ Stack Trace └ at Microsoft.SqlServer.Management.Common.ConnectionManager.ExecuteTSql(ExecuteTSqlAction action, Object execObject, DataSet fillDataSet, Boolean catchException) at Microsoft.SqlServer.Management.Common.ServerConnection.ExecuteNonQuery(String sqlCommand, ExecutionTypes executionType) └ ▼ Additional Details └ Error: The wait operation timed out ▼ Details └ Type: Win32Exception └ ► Stack Trace └ Any suggestions?

Lync 2013 Client Exchange prompts credential free/busy

$
0
0

Hello,

Lync Client still prompting for password to Exchange integration with calendar free/busy.

Lync client configuration in field InternalEWS and ExternalEWS was empty, and EWS was not fully initialized. 

Exchange configuration in webservicesvirtualdirectory and autodiscoverdirectory AuthenticationMethods set to Basic.

And funny thing when i change it to Windows auth Lync working like a charm, but IOS/Iphone dosn't work.

When i delete Windows auth, IOS/Iphone working and Lync prompting for password. 

Do you have any idea, how to resolve this issue?

BR/Lukas

Viewing all 5984 articles
Browse latest View live