insight - PowerShell proper setup


Gridmstr75

Member
Local time
6:47 AM
Posts
20
OS
Windows 11
Hello, been using Windows 11 for few months since MS will be ending support next year windows 10 by far is better. Anyways I was wondering why there are different versions of Power shell windows 11 came with 5.1 or 5.2 i downloaded power shell 7.1 now it seems that power shell has two different versions installed is this true? what is the proper way to have power shell setup / updated and ready to use? I know there are new features and what not but just want to make sure it is setup correctly on my system for example updating Power shell 5.1 with latest command updates does not install power shell 7.1 why is this , is it a entire new module?
 

My Computer My Computer

At a glance

Windows 11Intel i9DDR 5 Gskill 64gbAmd Radeon - Powercolor RX6700xt
OS
Windows 11
Computer type
PC/Desktop
Manufacturer/Model
EVGA
CPU
Intel i9
Motherboard
evga classified
Memory
DDR 5 Gskill 64gb
Graphics Card(s)
Amd Radeon - Powercolor RX6700xt
Sound Card
NA
Monitor(s) Displays
3 monitors
Screen Resolution
highest recommended
Hard Drives
M2 - ssd and spinning platter hard drives
PSU
850watt EVGA
Case
Phanteks
Cooling
water cool
Keyboard
RAZEr
Mouse
razer
Internet Speed
gig fiber
Browser
chrome , brave, Operagx and FF
Antivirus
Bitdefender
Having PowerShell 7.x and the classic Windows PowerShell 5.x is perfectly fine. They are separate things, and which one you use depends largely on what you're doing. They're mostly the same, but there are slight differences. For example, we have some scripts at work that use Write-EventLog; this does not exist in PowerShell 7, so those scripts have to be run under Windows PowerShell until we get around to updating them.

 

My Computer My Computer

At a glance

Windows 11 Pro 25H212th Gen Core i7-1260P64 GB Micron PC4-25600Intel Iris Xe Graphics
OS
Windows 11 Pro 25H2
Computer type
PC/Desktop
Manufacturer/Model
Intel NUC12WSHi7
CPU
12th Gen Core i7-1260P
Motherboard
NUC12WSBi7
Memory
64 GB Micron PC4-25600
Graphics Card(s)
Intel Iris Xe Graphics
Sound Card
on-board Realtek HD Audio
Monitor(s) Displays
Dell U3219Q
Screen Resolution
3840 x 2160
Hard Drives
Samsung SSD 990 PRO 1TB
Crucial MX500 2 TB
Antivirus
Microsoft Defender
PS 5.1 & 7 are designed to co-exist side by side, for the same reasons why you may have both .NET 4.8 (4.8.1) & .NET 5 installed for compatibility. PS5 remains "powershell.exe", while PS7 is "pwsh.exe".

They do keep separate lists of installed PS Modules, but PS7 can run any PS5-compatible modules.
 

My Computer My Computer

At a glance

Windows 7
OS
Windows 7

Latest Support Threads

Back
Top Bottom