Solved

Determine why Powershell version 4 is not installed

Posted on 2016-09-05
4
31 Views
Last Modified: 2016-09-25
Running Windows 7 Pro on an HP z230

I ran Powershell on my pc , typed in the command  get-host  and it says I have version 2.

I looked in my registry and it seems to indicate I have dotnet version 4 installed  (see attachment)

My understanding is if I have dotnet 4 then Powershell version 4 should be installed.

What am I missing?
0
Comment
Question by:donpick
  • 2
4 Comments
 
LVL 14

Accepted Solution

by:
Todd Nelson earned 400 total points (awarded by participants)
ID: 41785561
I believe you are thinking of Windows Management Framework (WMF) 4.0 which includes PowerShell 4.0. .NET Framework isn't directly related to nor does it include PowerShell 4.0.

https://www.microsoft.com/en-us/download/details.aspx?id=40855

WMF 4.0 requires .NET FX 4.5, and can be installed on Windows 7.

By default, Win7 comes with PowerShell 2.0, Win8 comes with PowerShell 3.0, Win8.1 comes with PowerShell 4.0.
0
 
LVL 83

Assisted Solution

by:oBdA
oBdA earned 100 total points (awarded by participants)
ID: 41785591
Todd Nelson is right - .NET 4 is a requirement for PS after 2.0, but it doesn't include it.
Note that in the meantime, PS 5.0 is available, even for Windows 7.
And in case you saw the syntax highlighting on a Windows 10 machine, you can have that on your Windows 7 machine as well; it's the PSReadline module, which is by default included in Windows 10 (but needs to be installed separately in earlier versions).

Windows Management Framework 5.0
https://www.microsoft.com/en-us/download/details.aspx?id=50395

lzybkr/PSReadLine
https://github.com/lzybkr/PSReadLine
0
 

Author Comment

by:donpick
ID: 41787182
Thank you for your prompt replies.   I pay for this service so I appreciate prompt help.
0
 
LVL 14

Expert Comment

by:Todd Nelson
ID: 41814562
You should have enough information to provide a solution to your request.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Create and license users in Office 365 in bulk based on a CSV file. A step-by-step guide with PowerShell script examples.
While working, an annoying popup showing below will come and we cannot cancel or close it form the screen. The error message will come again and again.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question