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-PSSessionConfiguration stores the config file in $PSHOME\SessionConfig folder.
powershell.config.json for the system is stored in $PSHOME, this means that admins can't set system wide config and cmdlets like Enable-ExperimentalFeature -Scope AllUsers won't work.
Update-Help -Scope AllUsers also won't work as it's stored in $PSHOME.
When this is fixed, test changes relying on Test-CanWriteToPsHome should be reverted.
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.