Find VSS Credentials WindowsUsername from VSSOptions object.

PowerShell script exchange

Find VSS Credentials WindowsUsername from VSSOptions object.

Veeam Logoby GarethUK » Fri Jan 22, 2016 4:40 pm

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
GarethUK
Influencer
 
Posts: 17
Liked: 1 time
Joined: Fri Mar 21, 2014 11:41 am
Full Name: Gareth

Re: Find VSS Credentials WindowsUsername from VSSOptions obj

Veeam Logoby nefes » Fri Jan 22, 2016 4:47 pm

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}
nefes
Veeam Software
 
Posts: 534
Liked: 125 times
Joined: Mon Dec 10, 2012 8:44 am
Full Name: Nikita Efes

Re: Find VSS Credentials WindowsUsername from VSSOptions obj

Veeam Logoby GarethUK » Mon Jan 25, 2016 12:04 pm

Are you sure? Veeam.Backup.Common.CCredentials doesn't seem to expose an ID attribute/method.
GarethUK
Influencer
 
Posts: 17
Liked: 1 time
Joined: Fri Mar 21, 2014 11:41 am
Full Name: Gareth

Re: Find VSS Credentials WindowsUsername from VSSOptions obj

Veeam Logoby v.Eremin » Mon Jan 25, 2016 12:24 pm

What product version you are currently at?
v.Eremin
Veeam Software
 
Posts: 13291
Liked: 973 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Find VSS Credentials WindowsUsername from VSSOptions obj

Veeam Logoby GarethUK » Mon Jan 25, 2016 12:29 pm

Thanks for the reply,

8.0.0.2084
GarethUK
Influencer
 
Posts: 17
Liked: 1 time
Joined: Fri Mar 21, 2014 11:41 am
Full Name: Gareth

Re: Find VSS Credentials WindowsUsername from VSSOptions obj

Veeam Logoby v.Eremin » Mon Jan 25, 2016 12:54 pm

You might want to update to version 9 and make use of ID parameter that has been added to VBR PS Credentials. Thanks.
v.Eremin
Veeam Software
 
Posts: 13291
Liked: 973 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Find VSS Credentials WindowsUsername from VSSOptions obj

Veeam Logoby GarethUK » Mon Jan 25, 2016 1:25 pm

Grumble.

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

Regards,

Gareth
GarethUK
Influencer
 
Posts: 17
Liked: 1 time
Joined: Fri Mar 21, 2014 11:41 am
Full Name: Gareth

Re: Find VSS Credentials WindowsUsername from VSSOptions obj

Veeam Logoby v.Eremin » Mon Jan 25, 2016 1:45 pm

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.
v.Eremin
Veeam Software
 
Posts: 13291
Liked: 973 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Find VSS Credentials WindowsUsername from VSSOptions obj

Veeam Logoby GarethUK » Thu Jan 28, 2016 5:44 pm

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

Thanks everyone for the help.

Regards,


Gareth
GarethUK
Influencer
 
Posts: 17
Liked: 1 time
Joined: Fri Mar 21, 2014 11:41 am
Full Name: Gareth


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 9 guests