PSColor
PSColor copied to clipboard
Remove-Module PSColor borks current Powershell session
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
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?