PowerShell script exchange
Post Reply
GarethUK
Influencer
Posts: 21
Liked: 2 times
Joined: Mar 21, 2014 11:41 am
Full Name: Gareth
Contact:

Find VSS Credentials WindowsUsername from VSSOptions object.

Post by GarethUK »

Hi,

I'm having some problem getting the VSSOptions Win Creds Username from a job.

What I need to do is find a job then workout which credentials are used by the job for VSS operations.

Currently, this seems impossible. What am I missing? I can find an ID but I can't see individual creds ID's so that doesn't help.

Does anyone have any ideas.


Regards,


Gareth
nefes
Veeam Software
Posts: 643
Liked: 162 times
Joined: Dec 10, 2012 8:44 am
Full Name: Nikita Efes
Contact:

Re: Find VSS Credentials WindowsUsername from VSSOptions obj

Post by nefes »

You may use this ID to filter output of Get-VBRCredentials command, something like that:

Code: Select all

 Get-VBRCredentials | ?{$_.id -eq $job.VSSoptions.WinCredsId}
GarethUK
Influencer
Posts: 21
Liked: 2 times
Joined: Mar 21, 2014 11:41 am
Full Name: Gareth
Contact:

Re: Find VSS Credentials WindowsUsername from VSSOptions obj

Post by GarethUK »

Are you sure? Veeam.Backup.Common.CCredentials doesn't seem to expose an ID attribute/method.
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Find VSS Credentials WindowsUsername from VSSOptions obj

Post by veremin »

What product version you are currently at?
GarethUK
Influencer
Posts: 21
Liked: 2 times
Joined: Mar 21, 2014 11:41 am
Full Name: Gareth
Contact:

Re: Find VSS Credentials WindowsUsername from VSSOptions obj

Post by GarethUK »

Thanks for the reply,

8.0.0.2084
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Find VSS Credentials WindowsUsername from VSSOptions obj

Post by veremin »

You might want to update to version 9 and make use of ID parameter that has been added to VBR PS Credentials. Thanks.
GarethUK
Influencer
Posts: 21
Liked: 2 times
Joined: Mar 21, 2014 11:41 am
Full Name: Gareth
Contact:

Re: Find VSS Credentials WindowsUsername from VSSOptions obj

Post by GarethUK »

Grumble.

OK thanks. We are moving to v9 shortly. I think I have a workaround anyway.

Regards,

Gareth
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Find VSS Credentials WindowsUsername from VSSOptions obj

Post by veremin »

If upgrade is not applicable solution at that point of time, you can leverage this script that I've created previously; should answer your requirements. Thanks.
GarethUK
Influencer
Posts: 21
Liked: 2 times
Joined: Mar 21, 2014 11:41 am
Full Name: Gareth
Contact:

Re: Find VSS Credentials WindowsUsername from VSSOptions obj

Post by GarethUK »

OK. That looks good. I'll give it a go.

Thanks everyone for the help.

Regards,


Gareth
Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests