Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Determine why Powershell version 4 is not installed

Posted on 2016-09-05
4
Medium Priority
?
61 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 17

Accepted Solution

by:
Todd Nelson earned 1600 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 85

Assisted Solution

by:oBdA
oBdA earned 400 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 17

Expert Comment

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

Featured Post

A Cyber Security RX to Protect Your Organization

Join us on December 13th for a webinar to learn how medical providers can defend against malware with a cyber security "Rx" that supports a healthy technology adoption plan for every healthcare organization.

Question has a verified solution.

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

Unable to change the program that handles the scan event from a network attached Canon/Brother printer/scanner. This means you'll always have to choose which program handles this action, e.g. ControlCenter4 (in the case of a Brother).
Transferring FSMO roles is done when an admin wants to split roles between certain Domain Controllers or the Domain Controller holding the Roles has been forcefully demoted using dcpromo / forceremoval
This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

810 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