Commvault / CVPowershellSDK

Developer SDK - Powershell
12 stars 12 forks source link

MIssing functions like "Set-CVSQLInstance" #10

Open joaval opened 4 years ago

joaval commented 4 years ago

We're using SQL Server agent. I want to set

Override Higher Level Settings -> Impersonate User -> User Name = xxxx Override Higher Level Settings -> Impersonate User -> Password = xxxx

There is the cmdlets 'Get-CVSQLInstance' but no 'Set-CVSQLInstance' Example: $sqlallprop = Get-CVSQLInstance -ClientName xxxxxx -AllProperties $sqlallprop.auth UseLSA Override credential


 1        0 @{password=; userName=}

$sqlallprop.auth.credential password userName


If setting in the GUI it might look like:

$sqlallprop.auth.credential password userName


sjshfshfkhfkhdsfr23498r09faohofhohkjedhy2ewewe he= XXXX\yyyyyyyy

Would like to set username & password perhaps by a Credential object.

Or is there another way to set SQL Server Properties like described.

JnaneshD05 commented 2 years ago

Will check this and get back.