@@ -83,7 +83,7 @@ Policy settings are used by administrators to centrally manage PowerShell.
83
83
| Location | Policy settings | Regular settings |
84
84
| --------------| -----------------------------------------------------------| ------------------------------------------------------------|
85
85
| File section | "PowerShell": { "PolicySettings": {...} } | "PowerShell": { "RegularSettings": {...} } |
86
- | Registry key | Software\Policies\PowerShellCore | Not Applicable |
86
+ | Registry key | Software\Policies\Microsoft\ PowerShellCore | Not Applicable |
87
87
88
88
### Policy settings Setting Fall-Back
89
89
@@ -95,7 +95,7 @@ Help to transition from Windows PowerShell to PowerShell 7.
95
95
96
96
For Policy Settings,
97
97
each policy should have a ` Use Windows PowerShell Policy ` which will indicate that the policy should the read from
98
- ` SOFTWARE\Policies\Microsoft\Windows\PowerShell ` instead of ` Software\Policies\PowerShellCore ` .
98
+ ` SOFTWARE\Policies\Microsoft\Windows\PowerShell ` instead of ` Software\Policies\Microsoft\ PowerShellCore ` .
99
99
The default in Group Policy is to have no policy, so it would not fall back to Windows PowerShell Policy, or apply PowerShell 7 policy.
100
100
101
101
### Precedence of applying settings
@@ -108,8 +108,8 @@ Note, this is listed as `Computer, Then User` in [Registry keys and settings](#r
108
108
109
109
| Scheme | Windows | Unix |
110
110
| -----------------------------| ------------------------------------------------------| ------------------------------------------------------|
111
- | GPO -> Computer Policy | HKLM\Software\Policies\PowerShellCore | See [ Moving configuration out of PSHome] [ moving ] |
112
- | GPO -> User Policy | HKCU\Software\Policies\PowerShellCore | %XDG_CONFIG_HOME%/powershell.config.json |
111
+ | GPO -> Computer Policy | HKLM\Software\Policies\Microsoft\ PowerShellCore | See [ Moving configuration out of PSHome] [ moving ] |
112
+ | GPO -> User Policy | HKCU\Software\Policies\Microsoft\ PowerShellCore | %XDG_CONFIG_HOME%/powershell.config.json |
113
113
| File -> Application-Startup | pwsh -settingsfile ` somepath/powershell.config.json ` | pwsh -settingsfile ` somepath/powershell.config.json ` |
114
114
| File -> Computer-Wide | See [ Moving configuration out of PSHome] [ moving ] | [ Moving configuration out of PSHome] [ moving ] |
115
115
| File -> User-Wide | %APPDATA%/powershell.config.json | %XDG_CONFIG_HOME%/powershell.config.json |
@@ -144,8 +144,8 @@ Note, this is listed as `User, then Computer` in [Registry keys and settings](#r
144
144
145
145
| Scheme | Windows | Unix |
146
146
| -----------------------------| ------------------------------------------------------| ------------------------------------------------------|
147
- | GPO -> User Config | HKCU\Software\PowerShellCore | %XDG_CONFIG_HOME%/powershell.config.json |
148
- | GPO -> Computer Config | HKLM\Software\PowerShellCore | See [ Moving configuration out of PSHome] [ moving ] |
147
+ | GPO -> User Config | HKCU\Software\Policies\Microsoft\ PowerShellCore | %XDG_CONFIG_HOME%/powershell.config.json |
148
+ | GPO -> Computer Config | HKLM\Software\Policies\Microsoft\ PowerShellCore | See [ Moving configuration out of PSHome] [ moving ] |
149
149
| File -> Application-Startup | pwsh -settingsfile ` somepath/powershell.config.json ` | pwsh -settingsfile ` somepath/powershell.config.json ` |
150
150
| File -> User-Wide | %APPDATA%\powershell.config.json | %XDG_CONFIG_HOME%/powershell.config.json |
151
151
| File -> Computer-Wide | See [ Moving configuration out of PSHome] [ moving ] | /opt/Microsoft/powershell/powershell.config.json |
@@ -156,7 +156,7 @@ Note, this is listed as `Computer` in [Registry keys and settings](#registry-key
156
156
157
157
| Scheme | Windows | Unix |
158
158
| -----------------------------| ------------------------------------------------------| ------------------------------------------------------|
159
- | GPO -> Computer Config | HKLM\Software\PowerShellCore | See [ Moving configuration out of PSHome] [ moving ] |
159
+ | GPO -> Computer Config | HKLM\Software\Policies\Microsoft\ PowerShellCore | See [ Moving configuration out of PSHome] [ moving ] |
160
160
| File -> Application-Startup | pwsh -settingsfile ` somepath/powershell.config.json ` | pwsh -settingsfile ` somepath/powershell.config.json ` |
161
161
| File -> Computer-Wide | See [ Moving configuration out of PSHome] [ moving ] | /opt/Microsoft/powershell/powershell.config.json |
162
162
@@ -168,7 +168,7 @@ A set of configuration settings in GPO scheme and file scheme for policy setting
168
168
169
169
Notes:
170
170
171
- - All policies are in ` Software\Policies\PowerShellCore ` .
171
+ - All policies are in ` Software\Policies\Microsoft\ PowerShellCore ` .
172
172
- ` ExecutionPolicy ` is not in any SubKey.
173
173
174
174
| SubKey | Option | Type | Precedence |
0 commit comments