pwsh -NoLogo
Prompt displayed without the version and copyright information
-NoLogo : The term '-NoLogo' 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
+ -NoLogo
+ ~~~~~~~
+ CategoryInfo : ObjectNotFound: (-NoLogo:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Name Value
---- -----
PSVersion 6.2.3
PSEdition Core
GitCommitId 6.2.3
OS Microsoft Windows 10.0.19023
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0鈥
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
I have this issue with all the arguments i tested (-Interactive -NonInteractive -Help -Command=, and tested on both Windows and Linux (Centos).
Powershell core installed used:
dotnet tool install --global PowerShell
Is it a normal behavior ? I can't find any issue or documentation about it, but there is trace of usage like pwsh -Command everywhere.
This is very blocking for me
I believe @adityapatwardhan was working on the pwsh-as-a-global-tool aspect, perhaps he can provide some clarity here. 馃檪
Just to confirm: pwsh -nologo
works just fine in a regularly installed version.
And, indeed, as you, @souchprod, state, for me too a dotnet tool install --global PowerShell
-installed version doesn't seem to recognize _any_ CLI parameters.
Thanks @mklement0 , you saved my day!
Installing it regularly is a challenge, Ms documentation, does not work, i had to use the trick described in this issue to succeed.
@souchprod - This should be fixed in the 7.0.0-rc.1 release of the PowerShell global tool. Can you try it again?
Installation: dotnet tool install --global PowerShell --version 7.0.0-rc.1
This was fixed in 7.0.0-RC.1, please re-active the issue if you still see issues.
C:\>pwsh -nologo
PS C:\> $PSVersionTable
Name Value
---- -----
PSVersion 7.0.0-rc.1
PSEdition Core
GitCommitId 7.0.0-rc.1
OS Microsoft Windows 10.0.18363
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0鈥
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Most helpful comment
This was fixed in 7.0.0-RC.1, please re-active the issue if you still see issues.