Solved

Determine why Powershell version 4 is not installed

Posted on 2016-09-05
4
26 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Create and license users in Office 365 in bulk based on a CSV file. A step-by-step guide with PowerShell script examples.
You may have a outside contractor who comes in once a week or seasonal to do some work in your office but you only want to give him access to the programs and files he needs and keep privet all other documents and programs, can you do this on a loca…
This Micro Tutorial will go in depth within Systems and Security in Windows 7 and will go into detail regarding Action Center, Windows Firewall, System, etc. This will be demonstrated using Windows 7 operating system.
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.

932 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now