Modules not recognized in Powershell 5.1 #6361

Open
opened 2026-01-31 00:36:40 +00:00 by claunia · 0 comments
Owner

Originally created by @hakito on GitHub (Feb 10, 2020).

I recently did a fresh install of Windows 10 Pro. After some time I recognized that Ctrl-R (back-i-search) did not work anymore. I tried to follow instructions of #350 to resolve the problem. But when I tried to call Get-PSReadLineOption or Install-Module I got errors.

I also tried deleting the whole powershell folder c:\Windows\System32\WindowsPowerShell\v1.0\ and ran sfc /scannow but still ctrl-r is not working.

Environment

Windows build number: Microsoft Windows [Version 10.0.18363.592]
Powershell Version (if applicable): 
Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      18362  145

Steps to reproduce

PS: C:> Install-Module

Expected behavior

cmdlet Install-Module at command pipeline position 1
Supply values for the following parameters:
Name[0]:

Actual behavior

Install-Module : The term 'Install-Module' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At line:1 char:1

  • Install-Module
  •   + CategoryInfo          : ObjectNotFound: (Install-Module:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    
Originally created by @hakito on GitHub (Feb 10, 2020). I recently did a fresh install of Windows 10 Pro. After some time I recognized that Ctrl-R (back-i-search) did not work anymore. I tried to follow instructions of #350 to resolve the problem. But when I tried to call ```Get-PSReadLineOption``` or ```Install-Module``` I got errors. I also tried deleting the whole powershell folder ```c:\Windows\System32\WindowsPowerShell\v1.0\``` and ran ```sfc /scannow``` but still ctrl-r is not working. # Environment ```none Windows build number: Microsoft Windows [Version 10.0.18363.592] Powershell Version (if applicable): Major Minor Build Revision ----- ----- ----- -------- 5 1 18362 145 ``` # Steps to reproduce PS: C:\> Install-Module # Expected behavior cmdlet Install-Module at command pipeline position 1 Supply values for the following parameters: Name[0]: # Actual behavior Install-Module : The term 'Install-Module' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + Install-Module + ~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (Install-Module:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
claunia added the Needs-TriageNeeds-Tag-FixResolution-Won't-Fix labels 2026-01-31 00:36:40 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#6361