question

PavelA avatar image
0 Votes"
PavelA asked PavelA edited

Why Powershell 7.2.1 on Windows cannot use PSReadline when execution policy is restricted?

I've just installed powershell 7.2.1 on Win10 21H2 Pro.
By default it has execution policy remotesigned, but I want 'restricted'.
When I set the policy to 'restricted', the powershell complains that cannot find PSReadline module.
Why?

Version 5.1 has no problem with this. Policy=restricted, and readline functionality works (not sure whether 5.1 has PSReadline or not).


By the way why the only powershell tag here is "windows-server-powershell" ? How about non-server powershell?

Cheers,
-- pa

windows-server-powershell
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers