Solved

Determine why Powershell version 4 is not installed

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
lync, outlook 1 19
Path to Python 9 42
Powershell 3 21
Need to find all user account with specific attribute and it's value 11 11
"Migrate" an SMTP relay receive connector to a new server using info from an old server.
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup". After a while, you have entered a loop for Auto repair which does not fix anything and you will be in a  panic as all your work w…
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum editing capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.
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…

706 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

19 Experts available now in Live!

Get 1:1 Help Now