Hi Suresh,
Thanks for posting your question here. I understand that you want PowerShell 2.0 enabled on Windows 11, however, I would like to kindly inform you that PowerShell 2.0 cannot be enabled on Windows 11. Microsoft has fully removed PowerShell 2.0 from Windows starting Windows 10 1709, and it is not available at all in Windows 11 (all versions).
You may use Windows PowerShell 5.1 (included in Windows 11) or install and use PowerShell 7.x instead of PowerShell 2.0. Since PowerShell 7 shows not enabled, here's what you can do:
PowerShell 7 can be installed via the Microsoft Store and will not appear under Turn Windows features on or off. (Install PowerShell 7 on Windows)
- Open Microsoft Store
- Search for PowerShell
- Install PowerShell (Publisher: Microsoft)
- Launch it from the Start menu as PowerShell (7.x)
Once it opens, run this command: $PSVersionTable If the PSVersion value shows 7.x, PowerShell 7 is installed correctly.
Let me know if you have questions, I'm here to help.
Thanks,
Jobelle C.