Randomly can't run commands in PowerShell
i'm trying run ssh powershell , says ssh isn't recognized cmdlet, function, script file etc.
i knwo fact path ssh.exe in path can normal cmd prompt. can use other non powershell commands in powershell such, there other random commands don't work also.
ssh.exe in c:\program files (x86)\openssh\bin , 100% in path variable. can print out $env:path , see there. why be?
kyle
it might double quotes around
"c:\program files (x86)\openssh\bin"
that confusing powershell.
i don't see double quote wrappers in $env:path value:
c:> $env:path
c:\windows\system32\windowspowershell\v1.0\;c:\program files (x86)\imagemagick-
6.7.6-q16;.;c:\program files\common files\microsoft shared\windows live;c:\prog
ram files (x86)\common files\microsoft shared\windows live;c:\windows\system32;
c:\windows;c:\windows\system32\wbem;c:\windows\system32\windowspowershell\v1.0\
;c:\bin;c:\mksnt;c:\program files\intel\wifi\bin\;c:\program files\common files
\intel\wirelesscommon\;c:\program files (x86)\windows live\shared;c:\program fi
les (x86)\common files\roxio shared\dllshared\;c:\program files (x86)\common fi
les\roxio shared\oem\dllshared\;c:\program files (x86)\common files\roxio share
d\oem\dllshared\;c:\program files (x86)\common files\roxio shared\oem\12.0\dlls
hared\;c:\program files (x86)\roxio\oem\audiocore\;c:\progra~2\ultrae~1;c:\prog
ram files (x86)\calibre2\;c:\program files (x86)\microsoft sql server\100\tools
\binn\;c:\program files\microsoft sql server\100\tools\binn\;c:\program files\m
icrosoft sql server\100\dts\binn\;c:\program files\microsoft\web platform insta
ller\;c:\program files (x86)\microsoft asp.net\asp.net web pages\v1.0\;c:\progr
am files (x86)\idm computer solutions\ultraedit\
Windows Server > Windows PowerShell
Comments
Post a Comment