Asked by:
move hyper-v powershell module from 2012 to 2008 r2
-
hey all, i having some problem with moving hyper-v powershell module from server 2012 to server 2008 r2 and here the desription:
i have server 2012 with hyper-v powershell module inside and its working 100%
i have server 2008 r2 with hyper-v role installed without! hyper-v powershell module inside
i update powershell in 2008 r2 server to powershell v3.0 and move from the 2012 server two folders:
one from sth like:
c:\windows\microsoft.net\microsoft.hyper-v.powershell
and teh second:
c:\windows\system32\windows powershell\modules\hyper-v
afte i paste it to the server 2008 r2 in the same paths i try to run the import command and it work!!
but when i try to run some command like get-vm i get the error of :
"hyper-v role is not install, try to install the role and run this command again"
please help' what else i has to do ?
Question
All replies
-
The Hyper-V PowerShell (that is built in to 2012 and newer) is not backward compatible / it cannot be back ported to 2008 or 2008 R2 releases of Hyper-V.
There is a community CodePlex project or two that built PowerShell cmdlets for 2008 and 2008 R2.
If you want to manage Hyper-V 2008 / 2008 R2 with PowerShell, the MSFT statement was always to script against the Hyper-V WMI provider.
Brian Ehlert
http://ITProctology.blogspot.com
Learn. Apply. Repeat.
Disclaimer: Attempting change is of your own free will. -
Hi,
You needn’t move the PowerShell from 2012 to 2008r2 (in face as far as I know it doesn't supported), you can install the PowerShell 4.0 for 2008r2 .
More information:
Installing Windows PowerShell
http://technet.microsoft.com/en-us/library/hh847837.aspx
Hope this helps.
- Edited by Alex LvMicrosoft contingent staff, Moderator Tuesday, December 17, 2013 3:17 AM
-
If you want PowerShell 4.0, install the Windows Management Framework 4.0 - http://www.microsoft.com/en-us/download/details.aspx?id=40855 . The URL provided by Alex is correct for 3.0. I had to search the download center to find the 4.0 which includes PowerShell 4.0.
.:|:.:|:. tim

