You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Specify how PowerShell 7 will deal with having both Windows PowerShell and PowerShell Core Group Policy.
25
+
- This is covered in [Policy settings Setting Fall-Back](#policy-settings-setting-fall-back).
26
+
1. Correct how the `pwsh -settingsfile` switch behaves.
27
+
- This is covered in [Parameter `-settingsfile`](#Parameter--settingsfile)
28
+
29
+
## Definitions
30
+
31
+
-**Computer-Wide settings/policy** - setting or policy applied to the entire operating system.
32
+
-**User settings/policy** - setting or policy applied only to the user.
33
+
22
34
## Specification
23
35
24
36
`PowerShell 7` should be configured using the following schemes:
@@ -34,8 +46,8 @@ Configuration schemes allow to customize `PowerShell 7` in the most flexible way
34
46
35
47
- Enterprise system administrators can use GPO,
36
48
GPP and computer-wide settings files to apply approved configuration settings and mandatory security settings in a centralized manner.
37
-
The same settings can be applied at user, application or startup levels.
38
-
- Developers and consumers can use user, application and startup level settings files.
49
+
Most settings can be applied either to the user or computer-wide.
50
+
- Developers and consumers can use user, or computer-wide level setting files.
39
51
40
52
### Configuration defaults
41
53
@@ -45,7 +57,7 @@ The default values must be `secure-by-default`.
45
57
46
58
For release versions hard-coded defaults must be the same as ones in pre-installed configuration files. For preview versions they may vary (ex., enable experimental features and so on).
47
59
48
-
System configuration includes security sensitive setting,
60
+
Computer-wide configuration includes security sensitive setting,
49
61
and failing to read those setting could result in an insecure system.
50
62
So, if during startup, PowerShell 7 cannot read files read from the Computer-Wide scope,
51
63
it fails to startup.
@@ -61,7 +73,7 @@ Regular settings are normal configuration settings.
61
73
Regular settings can be treated as default and recommended values.
62
74
Policy settings is higher precedence.
63
75
See [Precedence for Policy settings in descending order](#precedence-for-policy-settings-in-descending-order).
64
-
Policy settings are used by administrators to centrally manage PowerShell and hosted applications.
76
+
Policy settings are used by administrators to centrally manage PowerShell.
`$PSHome` definition from [about_powershell_config](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_powershell_config?view=powershell-6) - The $PSHOME location is defined as the same directory as the executing System.Management.Automation.dll assembly.
106
-
This applies to hosted PowerShell SDK instances as well.
107
116
#### Parameter `-settingsfile`
108
117
109
-
With `-settingsfile` parameter users can assign custom settings from the config file and overwrite user-wide and application-wide settings.
118
+
With `-settingsfile` parameter users can assign custom settings from the config file and overwrite user-wide settings.
119
+
120
+
##### More definitions
121
+
122
+
- System Lock-down mode:
123
+
When Windows Defender Application Control or AppLocker force PowerShell into Constrained Language mode and
124
+
only trusted code runs in Full Language mode.
125
+
See [PowerShell Constrained Language Mode](https://devblogs.microsoft.com/powershell/powershell-constrained-language-mode/)
110
126
111
127
##### Computer-wide and user policy settings
112
128
113
-
Definitions:
114
-
- System Lock-down mode: When Windows Defender Application Control or AppLocker force PowerShell into Constrained Language mode and only trusted code runs in Full Language mode. See [PowerShell Constrained Language Mode](https://devblogs.microsoft.com/powershell/powershell-constrained-language-mode/)
115
-
116
129
Admin/root users can overwrite computer-wide and user policy settings using `-settingsfile`,
117
130
only when not in System Lock-down mode.
118
131
@@ -123,10 +136,9 @@ This will have performance impact on startup, but only when `-settingsfile` is s
0 commit comments