Windows 10 with a non-admin user account.
Installed Windows Terminal from Microsoft Windows Apps.
Calling wt.exe
from cmd.exe
can't find it. Running Windows Terminal from the Start using short-cut opens it OK.
Running wt.exe
in cmd.exe
from admin account opens it successfully.
PATH
variable has the non-admin user's relevant entry: %USERPROFILE%\AppData\Local\Microsoft\WindowsApps
which has wt.exe
in it. Clicking on it in Explorer opens Windows Terminal.
Outputs of where
and echo
from within cmd.exe:
C:\Users\sr>wt
'wt' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\sr>where wt
INFO: Could not find files for the given pattern(s).
C:\Users\sr>echo %USERPROFILE%
C:\Users\sr
How do I open Windows Terminal from cmd.exe
using wt.ext
from non-admin account?
Edit: all commands are run from within cmd.exe
Edit 2: wt.exe also fails to launch from Powershell, both standard and admin:
standard:
PS C:\Users\sr> wt
wt : The term 'wt' 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
+ wt
+ ~~
+ CategoryInfo : ObjectNotFound: (wt:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
admin
PS C:\WINDOWS\system32> wt
Program 'wt.exe' failed to run: The file cannot be accessed by the systemAt line:1 char:1
+ wt
+ ~~.
At line:1 char:1
+ wt
+ ~~
+ CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException
+ FullyQualifiedErrorId : NativeCommandFailed
Edit 3: in cmd.exe, typing full path to wt.exe launches it OK:
C:\Users\sr>C:\Users\sr\AppData\Local\Microsoft\WindowsApps\wt.exe