PowerShell Deprecations (Part 1: PowerShell 2.0)

by Apr 17, 2023

Windows PowerShell 2.0 is still part of any Windows PowerShell for backwards compatibility, and when enabled, it is a serious security risk – PowerShell 2.0 simply does not yet have all the advanced malware detection tools found in PowerShell 5 and higher.

If you have Administrator privileges, this line will tell whether PowerShell 2.0 is enabled on your system:

 
PS> Get-WindowsOptionalFeature -Online -FeatureName MicrosoftWindowsPowerShellV2  
 

If it is enabled, make sure you disable it.


Tweet this Tip! Tweet this Tip!