@@ -60,8 +60,11 @@ For release versions hard-coded defaults must be the same as ones in pre-install
60
60
61
61
Computer-wide configuration includes security sensitive setting,
62
62
and failing to read those setting, for example if the file is locked or corrupted, could result in an insecure system.
63
- So, if during startup, PowerShell 7 cannot read files read from the Computer-Wide scope,
63
+ So, if during startup, PowerShell 7 cannot read settings files from the Computer-Wide scope,
64
64
it fails to startup.
65
+ Because registry reads are more atomic,
66
+ this is not an issue for group policy settings,
67
+ but if we faced the same issues for these settings the solution would be the similar.
65
68
66
69
If during startup PowerShell 7 cannot read user configuration files it uses _ hardcoded_ defaults.
67
70
@@ -103,7 +106,7 @@ Because a configuration setting can be in several schemes, the setting wins acco
103
106
| Scheme | Windows | Unix |
104
107
| -----------------------------| ------------------------------------------------------| ------------------------------------------------------|
105
108
| GPO -> Computer Policy | HKLM\Software\Policies\PowerShellCore | See [ Moving configuration out of PSHome] [ moving ] |
106
- | GPO -> User Policy | HKCU\Software\Policies\PowerShellCore | See [ ` Comment A ` ] ( #comment-a ) below |
109
+ | GPO -> User Policy | HKCU\Software\Policies\PowerShellCore | %XDG_CONFIG_HOME%/powershell.config.json |
107
110
| File -> Computer-Wide | See [ Moving configuration out of PSHome] [ moving ] | [ Moving configuration out of PSHome] [ moving ] |
108
111
| File -> Application-Startup | pwsh -settingsfile ` somepath/powershell.config.json ` | pwsh -settingsfile ` somepath/powershell.config.json ` |
109
112
| File -> User-Wide | %APPDATA%/powershell.config.json | %XDG_CONFIG_HOME%/powershell.config.json |
@@ -132,14 +135,14 @@ only when not in System Lock-down mode.
132
135
133
136
This will have performance impact on startup, but only when ` -settingsfile ` is specified.
134
137
135
- #### Priorities for Regular settings in descending order
138
+ #### Precedence for Regular settings in descending order
136
139
137
140
| Scheme | Windows | Unix |
138
141
| -----------------------------| ------------------------------------------------------| ------------------------------------------------------|
139
142
| File -> Application-Startup | pwsh -settingsfile ` somepath/powershell.config.json ` | pwsh -settingsfile ` somepath/powershell.config.json ` |
140
- | File -> User-Wide | %APPDATA%\powershell.config.json | ~ /.config/ powershell/powershell .config.json |
141
- | File -> Computer-Wide | %ProgramFiles%\PowerShell\powershell.config.json | /opt/Microsoft/powershell/powershell.config.json |
142
- | GPO -> User Config | HKCU\Software\PowerShellCore | ~ /.config/ powershell/powershell .config.json| |
143
+ | File -> User-Wide | %APPDATA%\powershell.config.json | %XDG_CONFIG_HOME%/ powershell.config.json |
144
+ | File -> Computer-Wide | See [ Moving configuration out of PSHome ] [ moving ] | /opt/Microsoft/powershell/powershell.config.json |
145
+ | GPO -> User Config | HKCU\Software\PowerShellCore | %XDG_CONFIG_HOME%/ powershell.config.json |
143
146
| GPO -> Computer Config | HKLM\Software\PowerShellCore | /etc/powershell.config.json |
144
147
145
148
### Configuration settings
0 commit comments