We are using a script which synchronizes VBR-Guest credentials between Thycotics Secret Server and VBR. It's running as designed since approx 2 years without any issues.
Code: Select all
PS > get-VBRCredentials -Name $MyUserName | Set-VBRCredentials -User $MyUserName -Password $Secret.obj.Password
Set-VBRCredentials : Object reference not set to an instance of an object.
At line:1 char:40
+ ... yUserName | Set-VBRCredentials -User $MyUserName -Password $Secret.ob ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Set-VBRCredentials], NullReferenceException
+ FullyQualifiedErrorId : System.NullReferenceException,Veeam.Backup.PowerShell.Cmdlets.SetVBRCredentials
Code: Select all
get-VBRCredentials -Name $MyUserName
Also if I use Set-VBRCredentials without any params (excepting Cred-Object from pipeline) it ends up in this exception.
It doesn't work via pipelining Get and Set-VBRCred. Also the same error if I save Get-VBRCred return to variable and use Set-VBRCreds -Credential param.
What's going wrong here.
We are using VBR 9.5U4b with an additional private hotfix for corrupted MSSQL-DB restore issues.