Skip to content

$profile.AllUsersAllHosts is not modifiable for PowerShell with the MSIX installation #12973

@daxian-dbw

Description

@daxian-dbw

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

N/A.

Summary

$profile.AllUsersAllHosts with the MSIX installation points to the path like 'C:\Program Files\WindowsApps\Microsoft.PowerShell_7.6.1.0_x64__8wekyb3d8bbwe\profile.ps1'. The ACL of it's parent directory indicates administrators don't have write permission, so I guess it's by design that you cannot modify that file.

Image

However, this limitation seems not documented in PowerShell docs. It's better to document it even though it's a by design behavior, because it's a mis-matched behavior comparing to the MSI installation.

Details

No response

Suggested Fix

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue-doc-bugIssue - error in documentationneeds-triageWaiting - Needs triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions