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