Need help on Remote Execution of below Script

Hi All,

         I have some problem with executing the below script (to update the LyncDB post CU patched on Lync Servers) remotely, but it works fine Locally(from any Lync FE machine),

Script: Install-CsDatabase -Update -ConfiguredDatabases -SqlServerFqdn "LyncDB.Julie.local" -UseDefaultSqlPaths

When executing locally from any Lync FE Machine(LyncFE.julie.local), its working fine "Piece of Output for your reference"

Output:

PS C:\Users\julie> 
Install-CsDatabase -Update -ConfiguredDatabases -SqlServerFqdn "LyncDB.Julie.local" -UseDefaultSqlPaths
****Creating DbSetupInstance for 'Microsoft.Rtc.Common.Data.BlobStore'****
Trying to connect to Sql Server LyncDB.Julie.local. using windows authentication...
Sql version: Major: 11, Minor: 0, Build 3128.
Sql version is acceptable.
Checking state for database rtcxds. it use to go like this for few pages to update all 06 database

Remote Script:

$sessionoption=new-pssessionoption -SkipRevocationCheck
$password=ConvertTo-SecureString -String "*******" -AsPlainText -Force
$credential=New-Object System.Management.Automation.PSCredential("******", $password)
$session=New-pssession -ComputerName "LyncFE.julie.local" -port 5985 -Credential $credential -Authentication Negotiate -SessionOption $sessionoption
Try{
$cmd=invoke-command -session $session -scriptblock{
Install-CsDatabase -Update -ConfiguredDatabases -SqlServerFqdn "LyncDB.Julie.local" -UseDefaultSqlPaths
 }
Write-Host $cmd
Remove-PSSession -Session $Session;
}
Catch
{
  $RetVal = "Error23: " + $error[0].Exception.toString()
$cmd
}

Error:

Output:
WARNING: Install-CsDatabase failed.
WARNING: Detailed results can be found at "C:\Users\Julie\AppData\Local\Temp\Install-CsDatabase-52517af7-39ea-482e-8ba6-166a15cf8
4d2.html".
Command setup failed: Active Directory error "-2147016672" occurred while searching for domain controllers in domain 
"ad.******.com": "An operations error occurred.
"
    + CategoryInfo          : InvalidOperation: (:) [Install-CsDatabase], ADTransientException
    + FullyQualifiedErrorId : BeginProcessingFailed,Microsoft.Rtc.Management.Deployment.InstallDatabaseCmdlet
    + PSComputerName        : LyncDB.Julie.local.com

        


  • Moved by Bill_Stewart Friday, January 31, 2014 8:53 PM Move to more appropriate forum
  • Edited by Juliesmiley 8 hours 6 minutes ago
January 31st, 2014 8:43pm

This is not a scripting issue. It is a Lync deployment issue and you need to ask in the Lync forum.  You will ore likely get a quick response from the Lync people.

From the error I would say you cannot do an install because there is not a trust or because you do not have permissions on the domain you are installing into. Check that first then repost in the Lync forums.

Perhaps someone will move this for you.

Free Windows Admin Tool Kit Click here and download it now
January 31st, 2014 11:29pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics