-
- Influencer
- Posts: 21
- Liked: 3 times
- Joined: May 13, 2015 10:20 am
- Full Name: ICS
- Contact:
get-vbrjobobject give different name results
Hi all,
need your help with this. if I do this:
get-vbrjob | get-vbrjobobject | select name
I get some name like this:
servername.ad.cmp... or ....
If I do this
get-vbrjob -name "jobname" | get-vbrjobobject | select name
The name is correct like this: servername.ad.cmp.com!
Powershell 5 on windows 2008r2, veeam 9.5.0.1038
thx
Ralph
need your help with this. if I do this:
get-vbrjob | get-vbrjobobject | select name
I get some name like this:
servername.ad.cmp... or ....
If I do this
get-vbrjob -name "jobname" | get-vbrjobobject | select name
The name is correct like this: servername.ad.cmp.com!
Powershell 5 on windows 2008r2, veeam 9.5.0.1038
thx
Ralph
-
- Influencer
- Posts: 21
- Liked: 3 times
- Joined: May 13, 2015 10:20 am
- Full Name: ICS
- Contact:
Re: get-vbrjobobject give different name results
Hi
get-vbrjobobject -job "jobname" | select name also give the wrong names.
It look like name length >25 is the problem!
But why works one command pipe correct?
br
Ralph
get-vbrjobobject -job "jobname" | select name also give the wrong names.
It look like name length >25 is the problem!
But why works one command pipe correct?
br
Ralph
-
- Influencer
- Posts: 21
- Liked: 3 times
- Joined: May 13, 2015 10:20 am
- Full Name: ICS
- Contact:
Re: get-vbrjobobject give different name results
fu powershell
get-vbrjob | get-vbrjobobject | select name | ft -autosize
help me in thise case...
br
Ralph
get-vbrjob | get-vbrjobobject | select name | ft -autosize
help me in thise case...
br
Ralph
-
- Product Manager
- Posts: 20415
- Liked: 2302 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: get-vbrjobobject give different name results
What happens if you set parameter of job type, instead of string object. Try this example:get-vbrjobobject -job "jobname" | select name also give the wrong names.
Code: Select all
$Job = Get-VBRJob -name "Name of your Backup Job"
Get-VBRJobObject -Job $Job | select name
-
- Influencer
- Posts: 21
- Liked: 3 times
- Joined: May 13, 2015 10:20 am
- Full Name: ICS
- Contact:
Re: get-vbrjobobject give different name results
Yes that works too.
My first version works over years with powershell v4. I think v5 make something different.
thx
Ralph
My first version works over years with powershell v4. I think v5 make something different.
thx
Ralph
-
- Product Manager
- Posts: 20415
- Liked: 2302 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: get-vbrjobobject give different name results
I've seen number of strange issues caused by PowerShell 2.0 (default PS version on Windows 2008R2), but never experienced something similar with its higher versions.
Anyway, good to know that the script is now working smoothly.
Thanks.
Anyway, good to know that the script is now working smoothly.
Thanks.
Who is online
Users browsing this forum: No registered users and 5 guests