Skip to content

Updating RFC0041 - PowerShell Core Policy #224

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 30, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions 2-Draft-Accepted/RFC0041-Policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Policy settings are used by administrators to centrally manage PowerShell.
| Location | Policy settings | Regular settings |
|--------------|-----------------------------------------------------------|------------------------------------------------------------|
| File section | "PowerShell": { "PolicySettings": {...} } | "PowerShell": { "RegularSettings": {...} } |
| Registry key | Software\Policies\PowerShellCore | Not Applicable |
| Registry key | Software\Policies\Microsoft\PowerShellCore | Not Applicable |

### Policy settings Setting Fall-Back

Expand All @@ -95,7 +95,7 @@ Help to transition from Windows PowerShell to PowerShell 7.

For Policy Settings,
each policy should have a `Use Windows PowerShell Policy` which will indicate that the policy should the read from
`SOFTWARE\Policies\Microsoft\Windows\PowerShell` instead of `Software\Policies\PowerShellCore`.
`SOFTWARE\Policies\Microsoft\Windows\PowerShell` instead of `Software\Policies\Microsoft\PowerShellCore`.
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.

### Precedence of applying settings
Expand All @@ -108,8 +108,8 @@ Note, this is listed as `Computer, Then User` in [Registry keys and settings](#r

| Scheme | Windows | Unix |
|-----------------------------|------------------------------------------------------|------------------------------------------------------|
| GPO -> Computer Policy | HKLM\Software\Policies\PowerShellCore | See [Moving configuration out of PSHome][moving] |
| GPO -> User Policy | HKCU\Software\Policies\PowerShellCore | %XDG_CONFIG_HOME%/powershell.config.json |
| GPO -> Computer Policy | HKLM\Software\Policies\Microsoft\PowerShellCore | See [Moving configuration out of PSHome][moving] |
| GPO -> User Policy | HKCU\Software\Policies\Microsoft\PowerShellCore | %XDG_CONFIG_HOME%/powershell.config.json |
| File -> Application-Startup | pwsh -settingsfile `somepath/powershell.config.json` | pwsh -settingsfile `somepath/powershell.config.json` |
| File -> Computer-Wide | See [Moving configuration out of PSHome][moving] | [Moving configuration out of PSHome][moving] |
| File -> User-Wide | %APPDATA%/powershell.config.json | %XDG_CONFIG_HOME%/powershell.config.json |
Expand Down Expand Up @@ -144,8 +144,8 @@ Note, this is listed as `User, then Computer` in [Registry keys and settings](#r

| Scheme | Windows | Unix |
|-----------------------------|------------------------------------------------------|------------------------------------------------------|
| GPO -> User Config | HKCU\Software\PowerShellCore | %XDG_CONFIG_HOME%/powershell.config.json |
| GPO -> Computer Config | HKLM\Software\PowerShellCore | See [Moving configuration out of PSHome][moving] |
| GPO -> User Config | HKCU\Software\Policies\Microsoft\PowerShellCore | %XDG_CONFIG_HOME%/powershell.config.json |
| GPO -> Computer Config | HKLM\Software\Policies\Microsoft\PowerShellCore | See [Moving configuration out of PSHome][moving] |
| File -> Application-Startup | pwsh -settingsfile `somepath/powershell.config.json` | pwsh -settingsfile `somepath/powershell.config.json` |
| File -> User-Wide | %APPDATA%\powershell.config.json | %XDG_CONFIG_HOME%/powershell.config.json |
| File -> Computer-Wide | See [Moving configuration out of PSHome][moving] | /opt/Microsoft/powershell/powershell.config.json |
Expand All @@ -156,7 +156,7 @@ Note, this is listed as `Computer` in [Registry keys and settings](#registry-key

| Scheme | Windows | Unix |
|-----------------------------|------------------------------------------------------|------------------------------------------------------|
| GPO -> Computer Config | HKLM\Software\PowerShellCore | See [Moving configuration out of PSHome][moving] |
| GPO -> Computer Config | HKLM\Software\Policies\Microsoft\PowerShellCore | See [Moving configuration out of PSHome][moving] |
| File -> Application-Startup | pwsh -settingsfile `somepath/powershell.config.json` | pwsh -settingsfile `somepath/powershell.config.json` |
| File -> Computer-Wide | See [Moving configuration out of PSHome][moving] | /opt/Microsoft/powershell/powershell.config.json |

Expand All @@ -168,7 +168,7 @@ A set of configuration settings in GPO scheme and file scheme for policy setting

Notes:

- All policies are in `Software\Policies\PowerShellCore`.
- All policies are in `Software\Policies\Microsoft\PowerShellCore`.
- `ExecutionPolicy` is not in any SubKey.

| SubKey | Option | Type | Precedence |
Expand Down