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?
✗ Incorrect
PowerShell 7+ uses .NET Core (now .NET 5+), enabling cross-platform support.
Which PowerShell version is included by default in Windows 10?
✗ Incorrect
Windows 10 comes with PowerShell 5.1 pre-installed.
What is a key benefit of PowerShell 7+ over 5.1?
✗ Incorrect
PowerShell 7+ runs on Windows, Linux, and macOS.
If a script uses Windows-only features, what might happen when running it on PowerShell 7+ on Linux?
✗ Incorrect
Windows-only features may not work on non-Windows platforms with PowerShell 7+.
Why is PowerShell 5.1 still used despite PowerShell 7+ availability?
✗ Incorrect
PowerShell 5.1 supports some older Windows modules not fully compatible with 7+.
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.