Hi Luc ,
can you suggest on the following scenerio
there is a requirement to upgrade to powershell higher version from version 2 .(os is windows 2008R2)
though there is no specific requirement for the higher version but i m in favour of suggesting the as latest as possible.
if you can suggest what max it can go on windows 2008 and right way of doing it .
Unfortunately PowerCLI only supports all modules in PSv5.1.
In PSv7 some modules are not supported.
I use a side-by-side install PSv5.1 + PSv7 to cope with all cases.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
PowerShell 7 is supported on Windows 2008 R2
https://devblogs.microsoft.com/powershell/announcing-powershell-7-0/
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
tx luc ,
right now there is no direct wat to upgrade to core 7 from powershell version2.
can we choose to uninstall version 2 and go for clean install for 7 .
will this work without any other prerequistes .
The lowest supported version is PSv3, so you'll have to make it a 2-step process.
You have options:
- upgrade PSv2 to PSv5.1 and then upgrade to PSv7
- uninstall PSv2 then install PSv7
Some useful links
Installing Windows PowerShell - PowerShell | Microsoft Docs
Uninstall and Remove Windows PowerShell 2.0 Software Development Kit (SDK) Step by Step
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
uninstall PSv2 then install PSv7 this is what iam also thinking .
however just checked some article wherein powershell 7 coexists with 5.1 .
but as yu mentioned its not possible with version2 correct??
PSv2 was deprecated with the Windows 10 upgrade in Fall 2017.
So you should definitely update that to PSV5.1.
If you want to use a side-by-side setup, you can install PSv7 as an MSI package.
Don't forget to make sure to have the correct .NET version!
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Hi Luc
thanks just thought of summarizing again to following steps .if yu can please validate.
side by side install on windows 2008 R2 along with version 2.
1:dont touch version 2.0
2:Install the Universal C Runtime on Windows versions predating Windows 10. It's available via direct download or Windows Update.
3:Install the Windows Management Framework (WMF) 4.0 or newer on Windows 7 and Windows Server 2008 R2.
4:
The MSI file looks like PowerShell-<version>-win-<os-arch>.msi
. For example:
PowerShell-7.0.0-win-x64.msi
Are you planning to keep PSv2 and PSv7 side-by-side?
You do know that PSv2 is not supported anymore.
Moreover, the PowerShell Extension in Visual Studio Code does not support PSv2 either.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
so below is fine for clean install of 7?? i want to make it simple to have powershell core 7 on windows 2008 r2.
1:uninstall windows powershell version 2.0
2:Install the Universal C Runtime on Windows versions predating Windows 10. It's available via direct download or Windows Update.
3:Install the Windows Management Framework (WMF) 4.0 or newer on Windows 7 and Windows Server 2008 R2.
4:
The MSI file looks like PowerShell-<version>-win-<os-arch>.msi
. For example:
PowerShell-7.0.0-win-x64.msi
Yes, that should be fine for a side-by-side installation.
But there is no documentation for doing this with PSv2, since it is not supported anymore.
Do at your own risk!
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
i am sorry to ask this but we are uninstalling version 2 before going for version 7 so it shud not be called side by side installation.
I was still looking at the version where it said "dont touch version 2.0"
Does that mean you will only have PSv7 and no PSv5.*on the side?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
uninstall version 2 completely and then do fresh installation of 7 .is this not possible.
yes no ps 5.*
Yes, uninstall PSv2 and then install PSv7 should work.
Note, not every module out there will work with PSv7.
VMware PowerCLI will only work with PSv7 partially.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
well in that case what whould be the rirght approach sothat powercli works fine .
will it be below
first upgrade to powershell 5.1 .
and then install powershell core 7 .
Unfortunately PowerCLI only supports all modules in PSv5.1.
In PSv7 some modules are not supported.
I use a side-by-side install PSv5.1 + PSv7 to cope with all cases.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference