PowerShell script exchange
Post Reply
kristofvanmol
Lurker
Posts: 1
Liked: never
Joined: Jul 19, 2013 12:51 pm
Full Name: Kristof Van Mol
Contact:

Powershell Version 1.0 while remoting.

Post by kristofvanmol » 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

tsightler
VP, Product Management
Posts: 5399
Liked: 2229 times
Joined: Jun 05, 2009 12:57 pm
Full Name: Tom Sightler
Contact:

Re: Powershell Version 1.0 while remoting.

Post by tsightler » 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.

http://forums.veeam.com/viewtopic.php?f ... =15#p51890

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

Re: Powershell Version 1.0 while remoting.

Post by veremin » 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.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 3 guests