Skip to content

Commit e98fc1c

Browse files
committed
offline updates
1 parent b04ebc7 commit e98fc1c

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

1-Draft/RFCXXXX-Policy.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,11 @@ For release versions hard-coded defaults must be the same as ones in pre-install
6060

6161
Computer-wide configuration includes security sensitive setting,
6262
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,
6464
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.
6568

6669
If during startup PowerShell 7 cannot read user configuration files it uses _hardcoded_ defaults.
6770

@@ -103,7 +106,7 @@ Because a configuration setting can be in several schemes, the setting wins acco
103106
| Scheme | Windows | Unix |
104107
|-----------------------------|------------------------------------------------------|------------------------------------------------------|
105108
| 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 |
107110
| File -> Computer-Wide | See [Moving configuration out of PSHome][moving] | [Moving configuration out of PSHome][moving] |
108111
| File -> Application-Startup | pwsh -settingsfile `somepath/powershell.config.json` | pwsh -settingsfile `somepath/powershell.config.json` |
109112
| 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.
132135

133136
This will have performance impact on startup, but only when `-settingsfile` is specified.
134137

135-
#### Priorities for Regular settings in descending order
138+
#### Precedence for Regular settings in descending order
136139

137140
| Scheme | Windows | Unix |
138141
|-----------------------------|------------------------------------------------------|------------------------------------------------------|
139142
| 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 |
143146
| GPO -> Computer Config | HKLM\Software\PowerShellCore | /etc/powershell.config.json |
144147

145148
### Configuration settings

0 commit comments

Comments
 (0)