Cannot find an overload for "CreateEmpty" and the argument count: "0".
At line:29 char:77
+ $VSSJobOptions.Credentials = [Veeam.Backup.Common.CCredentials]::CreateEmpty <<<< ()
+ CategoryInfo : NotSpecified: (:) [], MethodException
+ FullyQualifiedErrorId : MethodCountCouldNotFindBest
Property 'UserName' cannot be found on this object; make sure it exists and is settable.
At line:30 char:28
+ $VSSJobOptions.Credentials. <<<< UserName = "domain\admin"
+ CategoryInfo : InvalidOperation: (UserName:String) [], RuntimeException
+ FullyQualifiedErrorId : PropertyNotFound
Property 'Password' cannot be found on this object; make sure it exists and is settable.
At line:31 char:28
+ $VSSJobOptions.Credentials. <<<< Password = "xxxxx"
+ CategoryInfo : InvalidOperation: (Password:String) [], RuntimeException
+ FullyQualifiedErrorId : PropertyNotFound
Could you please send more of the code before $VSSJobOptions = $JobObj.GetVssOptions() so we can see the whole script?
Skype: Sethbartlett88 - Make sure to label who you are and why you want to add me
Twitter: @sethbartlett
If my post was helpful, please like it. Sometimes twitter is quicker to hit me up if you need me.
You will want to set credentials manually currently as there seems to be an issue with the way the passwords are stored for the credentials. You also would need to do "$VSSJobOptions.Credentials = [Veeam.Backup.Common.CCredentials]::CreateEmpty($true)
The issue is that when you do $VssJobOptions.Credentials.Password = "xxxx", the password will be saved in plain text and not hashed properly, you will want to set the password in the GUI currently.
Skype: Sethbartlett88 - Make sure to label who you are and why you want to add me
Twitter: @sethbartlett
If my post was helpful, please like it. Sometimes twitter is quicker to hit me up if you need me.
We have a backup job that will backup all VM's in a given folder. The folder ends up containing a mix of Windows and Linux VM's. I currently go into the GUI and manually add the VM to the guest processing settings list and then manually set it to disable application processing and indexing. I looked through the options available in Get-VBRJobVssOptions and they just seem to be the options on the main VSS page and for the default object in the guest processing settings but not for any of the manually added items.
Has anyone found a way to add a VM to the guest processing settings list and set its options using the Veeam Powershell cmdlets? My ultimate goal in all of this would be to add some code to the bottom of my linux VM deployment script that would add itself to the vss list and set the options so I wouldn't have to worry about setting in manually.
This will also allow you to easily set the same VSS Credentials across all your jobs or change them if need be.
Skype: Sethbartlett88 - Make sure to label who you are and why you want to add me
Twitter: @sethbartlett
If my post was helpful, please like it. Sometimes twitter is quicker to hit me up if you need me.