- Aug
- 2,320
- 111
From the directory that contains the zero-byte file WT.EXE (for example), this PowerShell command;
...is supposed to provide me with the target of a Windows App Execution Alias, in this case, WT.EXE
From the directory that contains the zero-byte file WT.EXE, when I try it from TCC;
...it returns nothing.
From the directory that contains the zero-byte file WT.EXE, when I try it from PowerShell;
...it returns nothing.
Well, I discovered (by accident) that it only works with PowerShell Version 7;
Important thing to remember, when visiting docs.microsoft.com, is that they default to the current version of the software (PowerShell, in this case), and that if you want to see the docs for a non-current version, you have to select that version yourself.
Posting this here mainly for my future reference, but thought others might also find this of interest.
Joe
Code:
(Get-Item wt.exe).Target
From the directory that contains the zero-byte file WT.EXE, when I try it from TCC;
Code:
pshell /s "(Get-Item wt.exe).Target"
From the directory that contains the zero-byte file WT.EXE, when I try it from PowerShell;
Code:
(Get-Item wt.exe).Target
Well, I discovered (by accident) that it only works with PowerShell Version 7;
Code:
PS C:\Users\Joe Caverly\AppData\Local\Microsoft\WindowsApps> (Get-Item wt.exe).Target
C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.12.10732.0_x64__8wekyb3d8bbwe\wt.exe
Important thing to remember, when visiting docs.microsoft.com, is that they default to the current version of the software (PowerShell, in this case), and that if you want to see the docs for a non-current version, you have to select that version yourself.
Posting this here mainly for my future reference, but thought others might also find this of interest.
Joe
Code:
_x64: 1
_admin: 1
_elevated: 1
TCC 28.02.18 x64 Windows 10 [Version 10.0.19044.1645]