Skip to content

Clarify that AppX reparse points do not support listing their targets anymore in v7.2+ #10168

@mklement0

Description

@mklement0

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

Details

The upshot for AppX reparse points in v7.2+ is:

  • They no longer print their target after -> in the formatted output.

  • 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 the Mode 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.

Metadata

Metadata

Assignees

Labels

area-managementArea - Microsoft.PowerShell.Management modulearea-providersArea - PowerShell providersissue-doc-bugIssue - error in documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions