-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
Prerequisites
- Existing Issue: Search the existing issues for this repository. If there is an issue that fits your needs do not file a new one. Subscribe, react, or comment on that issue instead.
- Descriptive Title: Write the title for this issue as a short synopsis. If possible, provide context. For example, "Typo in
Get-Foo
cmdlet" instead of "Typo." - Verify Version: If there is a mismatch between documentation and the behavior on your system, ensure that the version you are using is the same as the documentation. Check this box if they match or the issue you are reporting is not version specific.
Links
Summary
Support for determining the targets of AppX reparse points (aka AppExecLinks, such as winget
/ Microsoft Store-installed applications) was removed in v7.3, and, according to @sdwheeler, back-ported to v7.2
- See APPEXECLINK reparsepoints do not show target and link type PowerShell/PowerShell#19760 (comment) for background information.
Details
The upshot for AppX reparse points in v7.2+ is:
-
They no longer print their target after
->
in the formatted output.- Consider change the formatting for APPEXECLINK reparsepoint to not have the
->
part PowerShell/PowerShell#19794 suggests eventually removing->
too.
- Consider change the formatting for APPEXECLINK reparsepoint to not have the
-
Their type-native
.LinkTarget
property and their ETS.LinkType
and.Target
properties (an alias of.LinkTarget
) are all$null
; the type-native.ResolvedTarget
property now returns the reparse point's own full path. -
Visually, the
l
as the first character in theMode
column is now the only indicator that the item is a reparse point. -
To programmatically identify an AppX reparse point now requires:
$item.Attributes.HasFlag([System.IO.FileAttributes] 'ReparsePoint') -and $null -eq $item.LinkType
- If the ETS properties are present, more simply:
$item.Mode -like 'l*' -and $null -eq $item.LinkType
Suggested Fix
It's probably worth mentioning at least a condensed version of the above in the linked topics.