-
- Novice
- Posts: 3
- Liked: 1 time
- Joined: Jul 21, 2015 1:03 pm
- Full Name: Noah Sparks
- Contact:
v8 add credential to vssoptions
Hello,
Trying to figure out how to add credentials to vssoptions in v8.
It appears that the credentials property is no longer present and instead I see either a method or property that seems to be the replacement
ApplyCreds Method void ApplyCreds(guid winCredsId, guid linCredsId)
WinCredsId Property guid WinCredsId {get;set;}
The problem is both of those items are wanting a guid and the credential object does not have this property available.
Trying to figure out how to add credentials to vssoptions in v8.
It appears that the credentials property is no longer present and instead I see either a method or property that seems to be the replacement
ApplyCreds Method void ApplyCreds(guid winCredsId, guid linCredsId)
WinCredsId Property guid WinCredsId {get;set;}
The problem is both of those items are wanting a guid and the credential object does not have this property available.
-
- Product Manager
- Posts: 20408
- Liked: 2299 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: v8 add credential to vssoptions
Can you tell me what particular credentials you want to specify "Guest Processing -> Guest OS credentials" or "Guest Processing -> Credentials... -> Guest OS Credentials"?
-
- Novice
- Posts: 3
- Liked: 1 time
- Joined: Jul 21, 2015 1:03 pm
- Full Name: Noah Sparks
- Contact:
Re: v8 add credential to vssoptions
Looking at "Guest Processing -> Guest OS credentials" currently
-
- Product Manager
- Posts: 20408
- Liked: 2299 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: v8 add credential to vssoptions
Then, you should the following code:
Thanks.
Code: Select all
$Credentials = Get-VBRCredentials -name "Name of your credentials"
$Job = Get-VBRJob -Name "Name of your backup job"
Set-VBRJobVssOptions -Job $Job -Credentials $Credentials
-
- Novice
- Posts: 3
- Liked: 1 time
- Joined: Jul 21, 2015 1:03 pm
- Full Name: Noah Sparks
- Contact:
Re: v8 add credential to vssoptions
Yup that worked, thanks!
-
- Product Manager
- Posts: 20408
- Liked: 2299 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: v8 add credential to vssoptions
You're welcome. Feel free to contact us, if other assistance is required. Thanks.
-
- Enthusiast
- Posts: 29
- Liked: 3 times
- Joined: Oct 28, 2011 11:38 pm
- Full Name: James Collison
- Contact:
[MERGED] : Setting VSSJobOptions
Prior to upgrading to Veeam 8, running on Veeam 7, the following settings worked.
Here are the Members:
After upgrading to Veeam 8 receive following errors:
Looking at New-VBRJobVssOptions, these properties are not found there.
These properties are no longer there.
I assume to set Truncation use
$VSSOptions.SqlBackupOptions.TransactionLogsProcessing = "NeverTruncate"
But still do not know how to set credentials?
Thanks for your help.
Code: Select all
$VSSJobOptions = $JobnameObject.GetVssOptions()
$VSSJobOptions.TransactionLogsTruncation = "Never"
$VSSJobOptions.IgnoreErrors = $True
$VSSJobOptions.Credentials = $Credentials
Code: Select all
PS C:\users\veeam\scripts> $a = get-vbrjob -name Linux-01
PS C:\users\veeam\scripts> $b = $a.getvssoptions()
PS C:\users\veeam\scripts> $b | gm
TypeName: Veeam.Backup.Model.CVssOptions
Name MemberType Definition
---- ---------- ----------
Clone Method Veeam.Backup.Model.CVssOptions Clone()
Equals Method bool Equals(System.Object obj)
GetHashCode Method int GetHashCode()
GetType Method type GetType()
IsGuestProcessingRequred Method bool IsGuestProcessingRequred(Params Veeam.Backup...
IsIndexingRequired Method bool IsIndexingRequired()
Serial Method void Serial(System.Xml.XmlNode node)
ToString Method string ToString()
Credentials Property Veeam.Backup.Common.CCredentials Credentials {get...
CredsId Property guid CredsId {get;set;}
Enabled Property bool Enabled {get;set;}
ExcludedIndexingFolders Property string[] ExcludedIndexingFolders {get;set;}
GuestFSIndexingType Property Veeam.Backup.Model.CVssOptions+EGuestFSIndexingTy...
IgnoreErrors Property bool IgnoreErrors {get;set;}
IncludedIndexingFolders Property string[] IncludedIndexingFolders {get;set;}
IsCredentialsExists Property bool IsCredentialsExists {get;}
IsFirstUsage Property bool IsFirstUsage {get;set;}
TransactionLogsTruncation Property Veeam.Backup.Model.CVssOptions+ETransactionLogsTr...
Code: Select all
Property 'TransactionLogsTruncation' cannot be found on this object; make sure it exists and is settable.
At C:\users\veeam\scripts\addbk\addbkup.ps1:795 char:1
+ $VSSJobOptions.TransactionLogsTruncation = "Never"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : PropertyAssignmentException
Property 'Credentials' cannot be found on this object; make sure it exists and is settable.
At C:\users\veeam\scripts\addbk\addbkup.ps1:797 char:1
+ $VSSJobOptions.Credentials = $Credentials
Code: Select all
PS C:\users\veeam\scripts\addbk> $b = New-VBRJobVssOptions
PS C:\users\veeam\scripts\addbk> $b | gm
TypeName: Veeam.Backup.Model.CGuestProcessingOptions
Name MemberType Definition
---- ---------- ----------
ApplyAppProcOptions Method void ApplyAppProcOptions(Veeam.Backup.Model.CVssSnapshotOptions vssSnapshotOptions,...
ApplyCreds Method void ApplyCreds(guid winCredsId, guid linCredsId)
ApplyGuestFSIndexingOptions Method void ApplyGuestFSIndexingOptions(Veeam.Backup.Model.CGuestFSIndexingOptions winGues...
Clone Method Veeam.Backup.Model.CGuestProcessingOptions Clone(), Veeam.Backup.Model.CGuestProces...
Equals Method bool Equals(System.Object obj)
GetHashCode Method int GetHashCode()
GetType Method type GetType()
IsBackupSqlRequired Method bool IsBackupSqlRequired()
IsIndexingRequired Method bool IsIndexingRequired()
IsLinIndexingRequired Method bool IsLinIndexingRequired()
IsScriptingAllowed Method bool IsScriptingAllowed()
IsScriptingTurnedOn Method bool IsScriptingTurnedOn()
IsTransactionLogsProcessingAllowed Method bool IsTransactionLogsProcessingAllowed()
IsWinIndexingRequired Method bool IsWinIndexingRequired()
ResetLinCreds Method void ResetLinCreds()
ResetWinCreds Method void ResetWinCreds()
Serial Method void Serial(System.Xml.XmlNode node)
Serialize Method string Serialize()
SerialOldFormat Method void SerialOldFormat(System.Xml.XmlNode node)
SetScriptingAllowed Method void SetScriptingAllowed()
SetTransactionLogsProcessingAllowed Method void SetTransactionLogsProcessingAllowed()
ToString Method string ToString()
AreLinCredsSet Property bool AreLinCredsSet {get;}
AreWinCredsSet Property bool AreWinCredsSet {get;}
Enabled Property bool Enabled {get;set;}
ExchangeBackupOptions Property Veeam.Backup.Model.CExchangeBackupOptions ExchangeBackupOptions {get;}
ExcludedIndexingFolders Property string[] ExcludedIndexingFolders {get;set;}
GuestFSIndexingType Property Veeam.Backup.Model.EGuestFSIndexingType GuestFSIndexingType {get;set;}
GuestScriptsOptions Property Veeam.Backup.Model.CGuestScriptsOptions GuestScriptsOptions {get;}
IgnoreErrors Property bool IgnoreErrors {get;set;}
IncludedIndexingFolders Property string[] IncludedIndexingFolders {get;set;}
IsFirstUsage Property bool IsFirstUsage {get;set;}
LinCredsId Property guid LinCredsId {get;set;}
LinExcludedIndexingFolders Property string[] LinExcludedIndexingFolders {get;set;}
LinGuestFSIndexingOptions Property Veeam.Backup.Model.CGuestFSIndexingOptions LinGuestFSIndexingOptions {get;}
LinGuestFSIndexingType Property Veeam.Backup.Model.EGuestFSIndexingType LinGuestFSIndexingType {get;set;}
LinIncludedIndexingFolders Property string[] LinIncludedIndexingFolders {get;set;}
m_isFirstUsage Property bool m_isFirstUsage {get;set;}
SqlBackupOptions Property Veeam.Backup.Model.CSqlBackupOptions SqlBackupOptions {get;}
VssSnapshotOptions Property Veeam.Backup.Model.CVssSnapshotOptions VssSnapshotOptions {get;}
WinCredsId Property guid WinCredsId {get;set;}
WinGuestFSIndexingOptions Property Veeam.Backup.Model.CGuestFSIndexingOptions WinGuestFSIndexingOptions {get;}
I assume to set Truncation use
$VSSOptions.SqlBackupOptions.TransactionLogsProcessing = "NeverTruncate"
But still do not know how to set credentials?
Thanks for your help.
-
- Product Manager
- Posts: 20408
- Liked: 2299 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: v8 add credential to vssoptions
In order to set VSS credentials, kindly, refer to the script provided above. Thanks.
Who is online
Users browsing this forum: No registered users and 13 guests