PSColor icon indicating copy to clipboard operation
PSColor copied to clipboard

Remove-Module PSColor borks current Powershell session

Open 9Rune5 opened this issue 8 years ago • 1 comments

C:\Users\runem> Remove-Module PSColor

C:\Users\runem> Get-ChildItem \
The term 'Out-Default' 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.

I needed to test something without PSColor loaded, but I ended up having to edit my $profile rather than just temporarily remove it.

Version info:

Name                           Value
----                           -----
PSVersion                      5.1.14931.1000
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.14931.1000
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

9Rune5 avatar Oct 19 '16 14:10 9Rune5

I was just coming to report this same thing. Searching on "Out-Default" says that it's a placeholder, which importing PSColor obviously replaces. Is there an easy way to get the default one back after doing a Remove-Module PSColor?

vr8hub avatar Nov 01 '17 23:11 vr8hub