All command is not recognized
Closed this issue · 5 comments
dwisiswant0 commented
I have a problem with PS CLI, when I enter any command - it is not recognized.
PS> whoami
127.0.0.1 - - [17/Aug/2021 08:54:19] "POST /wsman HTTP/1.1" 200 -
127.0.0.1 - - [17/Aug/2021 08:54:19] "POST /wsman HTTP/1.1" 200 -
127.0.0.1 - - [17/Aug/2021 08:54:19] "POST /wsman HTTP/1.1" 200 -
127.0.0.1 - - [17/Aug/2021 08:54:19] "POST /wsman HTTP/1.1" 200 -
127.0.0.1 - - [17/Aug/2021 08:54:19] "POST /wsman HTTP/1.1" 200 -
127.0.0.1 - - [17/Aug/2021 08:54:19] "POST /wsman HTTP/1.1" 200 -
127.0.0.1 - - [17/Aug/2021 08:54:19] "POST /wsman HTTP/1.1" 200 -
127.0.0.1 - - [17/Aug/2021 08:54:19] "POST /wsman HTTP/1.1" 200 -
127.0.0.1 - - [17/Aug/2021 08:54:19] "POST /wsman HTTP/1.1" 200 -
OUTPUT:
ERROR:
The term 'whoami.exe' 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.
PS> get-module
127.0.0.1 - - [17/Aug/2021 08:54:38] "POST /wsman HTTP/1.1" 200 -
127.0.0.1 - - [17/Aug/2021 08:54:39] "POST /wsman HTTP/1.1" 200 -
127.0.0.1 - - [17/Aug/2021 08:54:39] "POST /wsman HTTP/1.1" 200 -
127.0.0.1 - - [17/Aug/2021 08:54:39] "POST /wsman HTTP/1.1" 200 -
127.0.0.1 - - [17/Aug/2021 08:54:40] "POST /wsman HTTP/1.1" 200 -
127.0.0.1 - - [17/Aug/2021 08:54:40] "POST /wsman HTTP/1.1" 200 -
127.0.0.1 - - [17/Aug/2021 08:54:40] "POST /wsman HTTP/1.1" 200 -
OUTPUT:
ERROR:
The term 'Get-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.
Any ideas why this is happening?
Udyz commented
just use command dropshell
dwisiswant0 commented
just use command dropshell
Same.
dmaasland commented
You can't use regular commands in the powershell portion. Run Get-Command
to see what's available to you.
dwisiswant0 commented
You can't use regular commands in the powershell portion. Run
Get-Command
to see what's available to you.
Thanks! It recognized now.
antonbek89 commented
just use command dropshell
How we can do it?
What is the command for that?