-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Some cmdlets and config require writing to $PSHOME\SessionConfig folder #9278
Copy link
Copy link
Open
Labels
Committee-ReviewedPS-Committee has reviewed this and made a decisionPS-Committee has reviewed this and made a decisionIn-PRIndicates that a PR is out for the issueIndicates that a PR is out for the issueIssue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugKeepOpenThe bot will ignore these and not auto-closeThe bot will ignore these and not auto-closePackage-MSIXIssue occurs with MSIX packageIssue occurs with MSIX packageWG-RemotingPSRP issues with any transport layerPSRP issues with any transport layer
Metadata
Metadata
Assignees
Labels
Committee-ReviewedPS-Committee has reviewed this and made a decisionPS-Committee has reviewed this and made a decisionIn-PRIndicates that a PR is out for the issueIndicates that a PR is out for the issueIssue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugKeepOpenThe bot will ignore these and not auto-closeThe bot will ignore these and not auto-closePackage-MSIXIssue occurs with MSIX packageIssue occurs with MSIX packageWG-RemotingPSRP issues with any transport layerPSRP issues with any transport layer
Type
Fields
Give feedbackNo fields configured for issues without a type.
Summary of the new feature/enhancement
For Snap and AppX packages of PSCore6, $PSHOME is effectively read-only. Any configuration stored in $PSHOME needs to be in a different location. On Windows 10, it would make sense to be in $env:SystemDrive\ProgramData.
Register-PSSessionConfigurationstores the config file in $PSHOME\SessionConfig folder.powershell.config.jsonfor the system is stored in $PSHOME, this means that admins can't set system wide config and cmdlets likeEnable-ExperimentalFeature -Scope AllUserswon't work.Update-Help -Scope AllUsersalso won't work as it's stored in $PSHOME.When this is fixed, test changes relying on
Test-CanWriteToPsHomeshould be reverted.