Powershell Version 1.0 while remoting.

PowerShell script exchange

Powershell Version 1.0 while remoting.

Veeam Logoby kristofvanmol » Fri Jul 19, 2013 1:00 pm

Hey,

I've got some strange things when i want to use the powershell cmdlets on my remote veeam server

I'm running powershell version 3.0 on my Windows 7.0 Laptop
I'm also running powershell version 3.0 on our Windows 2008 r2 veeam server.

When i connect start aan remote session in powershell to the veeam server, and i add de snapin, i dont get any error's.

Het know's all the cmdlets, so i should think that everything is going great.

But when i enter any command, al always get teh error: Warnng: You should update PowerShell to PowerShell 2.0 Version.

when i enter in the remote session the command: get-host i see that it uses version 1.0

When i start RDP to the veeam server, and give the get-host command there in the powershell console, i get version 3.0

Anybody any idea / suggestions to solv my issue.....?


Thanks
kristofvanmol
Lurker
 
Posts: 1
Liked: never
Joined: Fri Jul 19, 2013 12:51 pm
Full Name: Kristof Van Mol

Re: Powershell Version 1.0 while remoting.

Veeam Logoby tsightler » Fri Jul 19, 2013 1:54 pm

You should be able to ignore this warning. I believe it is caused because get-host always reports version 1.0. You can check the real version by looking at $PSVersionTable.PsVersion.

viewtopic.php?f=26&t=10256&start=15#p51890
tsightler
Veeam Software
 
Posts: 4768
Liked: 1737 times
Joined: Fri Jun 05, 2009 12:57 pm
Full Name: Tom Sightler

Re: Powershell Version 1.0 while remoting.

Veeam Logoby v.Eremin » Mon Jul 22, 2013 9:18 am

Yep, it’s true that remote session with get-host will always return the 1.0 version. In order to determine the correct version you should either use $PSVersionTable.PSVersion mentioned by Tom or go directly to registry and check there:

Code: Select all
HKLM\Software\Microsoft\PowerShell\PowerShellEngine


Thanks.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 4 guests