0
0
PowerShellscripting~5 mins

PowerShell versions (5.1 vs 7+) - Quick Revision & Key Differences

Choose your learning style9 modes available
Recall & Review
beginner
What is the main difference between PowerShell 5.1 and PowerShell 7+?
PowerShell 5.1 is Windows-only and built on .NET Framework, while PowerShell 7+ is cross-platform and built on .NET Core (now .NET 5+), allowing it to run on Windows, Linux, and macOS.
Click to reveal answer
beginner
Which PowerShell version supports running on Linux and macOS?
PowerShell 7+ supports running on Linux and macOS, unlike PowerShell 5.1 which only runs on Windows.
Click to reveal answer
intermediate
How does PowerShell 7+ improve performance compared to 5.1?
PowerShell 7+ uses the newer .NET Core runtime (now .NET 5+) which is faster and more efficient than the .NET Framework used in 5.1, leading to better performance.
Click to reveal answer
intermediate
Can PowerShell 7+ run existing scripts made for PowerShell 5.1 without changes?
Most scripts run fine, but some Windows-specific modules or commands may need adjustments because PowerShell 7+ is cross-platform and some Windows-only features are not available.
Click to reveal answer
beginner
Why might someone still use PowerShell 5.1 instead of 7+?
Because PowerShell 5.1 is built into Windows and supports some legacy Windows modules that are not yet fully compatible with PowerShell 7+.
Click to reveal answer
Which PowerShell version is built on .NET Core?
APowerShell 7+
BPowerShell 5.1
CPowerShell 4.0
DPowerShell 3.0
Which PowerShell version is included by default in Windows 10?
APowerShell 5.1
BPowerShell 6
CPowerShell 4.0
DPowerShell 7+
What is a key benefit of PowerShell 7+ over 5.1?
ARuns only on Windows
BSupports cross-platform use
CUses older .NET Framework
DNo support for modules
If a script uses Windows-only features, what might happen when running it on PowerShell 7+ on Linux?
AIt will convert automatically
BIt will run perfectly
CIt will run faster
DIt may fail or need changes
Why is PowerShell 5.1 still used despite PowerShell 7+ availability?
AIt is cross-platform
BIt is faster than 7+
CIt supports legacy Windows modules
DIt is open source
Explain the main differences between PowerShell 5.1 and PowerShell 7+.
Think about platform support, runtime, and script compatibility.
You got /5 concepts.
    Describe why someone might choose to keep using PowerShell 5.1 instead of upgrading to 7+.
    Consider legacy support and default Windows installation.
    You got /4 concepts.