Powershell
--
Questions
--
Followers
Top Experts
Install-Module PSReadLine
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
"Cannot load PSReadline module. Â Console is running without PSReadline."
Did you restart the x86 console?
What's the output of
gci "C:\Program Files (x86)\WindowsPowerShell\Modules\PSReadLine" -Recurse






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
gci "C:\Program Files (x86)\WindowsPowerShell\Modules\PSReadLine" -Recurse
The folder "C:\Program Files\WindowsPowerShell\Mo
gci "C:\Program Files (x86)\WindowsPowerShell\Modules
must return (among whatever else is installed) the PSReadline folder you copied.gci "C:\Program Files\WindowsPowerShell\Modules\PSReadline\" -Recurse -File | select FullName
Should return something like this (Windows 10 1709):C:\Program Files\WindowsPowerShell\Modules\PSReadline\1.1\PSReadline_5714753b-2afd-4492-a5fd-01d9e2cff8b5_HelpInfo.xml
C:\Program Files\WindowsPowerShell\Modules\PSReadline\1.1\en-US\Microsoft.PowerShell.PSReadline.dll-help.xml
C:\Program Files\WindowsPowerShell\Modules\PSReadline\1.2\Microsoft.PowerShell.PSReadline.dll
C:\Program Files\WindowsPowerShell\Modules\PSReadline\1.2\PSReadline.psd1
C:\Program Files\WindowsPowerShell\Modules\PSReadline\1.2\PSReadline.psm1
C:\Program Files\WindowsPowerShell\Modules\PSReadline\1.2\PSReadline_5714753b-2afd-4492-a5fd-01d9e2cff8b5_HelpInfo.xml
C:\Program Files\WindowsPowerShell\Modules\PSReadline\1.2\en\Microsoft.PowerShell.PSReadline.Resources.dll
C:\Program Files\WindowsPowerShell\Modules\PSReadline\1.2\en-US\Microsoft.PowerShell.PSReadline.dll-help.xml
And that's the same result the command should return when "Program Files" is replaced with "Program Files (x86)"

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
PS C:\Users\593444> gci "C:\Program Files (x86)\WindowsPowerShell\Mo
  Directory: C:\Program Files (x86)\WindowsPowerShell\Mo
Mode         LastWriteTime     Length Name
---- Â Â Â Â Â Â Â Â ------------- Â Â Â Â ------ ----
d----- Â Â Â Â 1/30/2018 Â 2:57 PM Â Â Â Â Â Â Â Â 1.2
  Directory: C:\Program Files (x86)\WindowsPowerShell\Mo
Mode         LastWriteTime     Length Name
---- Â Â Â Â Â Â Â Â ------------- Â Â Â Â ------ ----
d----- Â Â Â Â 1/30/2018 Â 2:57 PM Â Â Â Â Â Â Â Â en
-a---- Â Â Â Â 7/16/2016 Â 7:45 AM Â Â Â Â 216576 Microsoft.PowerShell.PSRea
-a---- Â Â Â Â 7/16/2016 Â 7:45 AM Â Â Â Â Â Â 760 PSReadline.psd1
-a---- Â Â Â Â 7/16/2016 Â 7:45 AM Â Â Â Â Â Â 180 PSReadline.psm1
  Directory: C:\Program Files (x86)\WindowsPowerShell\Mo
Mode         LastWriteTime     Length Name
---- Â Â Â Â Â Â Â Â ------------- Â Â Â Â ------ ----
-a---- Â Â Â Â 7/16/2016 Â 10:11 AM Â Â Â Â Â 29696 Microsoft.PowerShell.PSRea
PS C:\Users\593444>
PS C:\Users\593444> Install-Module PSReadLine
Install-Module : The 'Install-Module' command was found in the module 'PowerShellGet', but the module could not be
loaded. For more information, run 'Import-Module PowerShellGet'.
At line:1 char:1
+ Install-Module PSReadLine
+ ~~~~~~~~~~~~~~
  + CategoryInfo      : ObjectNotFound: (Install-Module:String) [], CommandNotFoundException
  + FullyQualifiedErrorId : CouldNotAutoloadMatchingMo
Open a new x86 console, and it should load the module automatically. Otherwise, or for the current window, use
Import-Module PSReadline -Verbose
Or if it still doesn't work:Import-Module "C:\Program Files (x86)\WindowsPowerShell\Modules\PSReadline\1.2\PSReadline" -Verbose






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
PS C:\Users\593444> Import-Module PSReadline -Verbose
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Mo
VERBOSE: Loading module from path 'C:\Program
Files\WindowsPowerShell\Mo
VERBOSE: Importing cmdlet 'Get-PSReadlineOption'.
VERBOSE: Importing cmdlet 'Set-PSReadlineOption'.
VERBOSE: Importing cmdlet 'Set-PSReadlineKeyHandler'
VERBOSE: Importing cmdlet 'Get-PSReadlineKeyHandler'
VERBOSE: Importing cmdlet 'Remove-PSReadlineKeyHandl
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Mo
Import-Module : File C:\Program Files\WindowsPowerShell\Mo
because running scripts is disabled on this system. For more information, see about_Execution_Policies at
http://go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ Import-Module PSReadline -Verbose
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
  + CategoryInfo      : SecurityError: (:) [Import-Module], PSSecurityException
  + FullyQualifiedErrorId : UnauthorizedAccess,Microso
PS C:\Users\593444>
PS C:\Users\593444> Import-Module "C:\Program Files (x86)\WindowsPowerShell\Mo
VERBOSE: Loading module from path 'C:\Program Files (x86)\WindowsPowerShell\Mo
VERBOSE: Loading module from path 'C:\Program Files
(x86)\WindowsPowerShell\Mo
VERBOSE: Importing cmdlet 'Get-PSReadlineOption'.
VERBOSE: Importing cmdlet 'Set-PSReadlineOption'.
VERBOSE: Importing cmdlet 'Set-PSReadlineKeyHandler'
VERBOSE: Importing cmdlet 'Get-PSReadlineKeyHandler'
VERBOSE: Importing cmdlet 'Remove-PSReadlineKeyHandl
VERBOSE: Loading module from path 'C:\Program Files (x86)\WindowsPowerShell\Mo
VERBOSE: Exporting function 'PSConsoleHostReadline'.
VERBOSE: Exporting cmdlet 'Get-PSReadlineOption'.
VERBOSE: Exporting cmdlet 'Set-PSReadlineOption'.
VERBOSE: Exporting cmdlet 'Set-PSReadlineKeyHandler'
VERBOSE: Exporting cmdlet 'Get-PSReadlineKeyHandler'
VERBOSE: Exporting cmdlet 'Remove-PSReadlineKeyHandl
VERBOSE: Importing cmdlet 'Get-PSReadlineKeyHandler'
VERBOSE: Importing cmdlet 'Get-PSReadlineOption'.
VERBOSE: Importing cmdlet 'Remove-PSReadlineKeyHandl
VERBOSE: Importing cmdlet 'Set-PSReadlineKeyHandler'
VERBOSE: Importing cmdlet 'Set-PSReadlineOption'.
VERBOSE: Importing function 'PSConsoleHostReadline'.
PS C:\Users\593444>
Now the execution policy for the x86 version, and you should be good to go.
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned -Force
Since you are so well versed with PS can you take a look at this posting that no one else could answer.
AWS &Â PowerShell - I can't run PS commands within any new server in AWS (W2K8R2-W2K16)
https://www.experts-exchange.com/questions/29077625/AWS-PowerShell-I-can't-run-PS-commands-within-any-new-server-in-AWS-W2K8R2-W2K16.html

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
Powershell
--
Questions
--
Followers
Top Experts
Windows PowerShell is a task automation and configuration management framework from Microsoft, consisting of a command-line shell and associated scripting language built on the .NET Framework. PowerShell provides full access to the Component Object Model (COM) and Windows Management Instrumentation (WMI), enabling administrators to perform administrative tasks on both local and remote Windows systems as well as WS-Management and Common Information Model (CIM) enabling management of remote Linux systems and network devices.