1
1
---
2
- ms.date : 2017-06-09
2
+ ms.date : 2017-11-28
3
3
schema : 2.0.0
4
4
locale : en-us
5
5
keywords : powershell,cmdlet
6
6
title : about_Group_Policy_Settings
7
7
---
8
8
9
9
# About Group Policy Settings
10
- ## about_Group_Policy_Settings
11
-
12
10
13
11
# SHORT DESCRIPTION
14
12
15
13
Describes the Group Policy settings for Windows PowerShell
16
14
17
15
# LONG DESCRIPTION
18
16
19
-
20
17
Windows PowerShell includes Group Policy settings to help you define
21
18
consistent option values for servers in an enterprise environment.
22
19
23
20
The Windows PowerShell Group Policy settings are in the following
24
21
Group Policy paths:
25
22
26
- Computer Configuration\Administrative Templates\Windows Components\Windows PowerShell
27
- User Configuration\Administrative Templates\Windows Components\Windows PowerShell
23
+ Computer Configuration\
24
+ Administrative Templates\
25
+ Windows Components\
26
+ Windows PowerShell
27
+
28
+ User Configuration\
29
+ Administrative Templates\
30
+ Windows Components\
31
+ Windows PowerShell
28
32
29
33
Group policy settings in the User Configuration path take precedence
30
34
over Group Policy settings in the Computer Configuration path.
31
35
32
36
The policies are as follows:
33
37
34
- Turn on Script Execution: Sets the Windows PowerShell execution
35
- policy.
36
- Turn on Module Logging: Sets the LogPipelineExecutionDetails
37
- property of modules.
38
- Set the default source path for Update-Help:
39
- Sets the source for UpdatableHelp to
40
- a directory, not the Internet.
38
+ - Turn on Script Execution: Sets the Windows PowerShell execution policy.
39
+ - Turn on Module Logging: Sets the LogPipelineExecutionDetails property of
40
+ modules.
41
+ - Set the default source path for Update-Help: Sets the source for
42
+ UpdatableHelp to a directory, not the Internet.
41
43
42
44
To download spreadsheets that list all of the Group Policy settings for
43
45
each version of Windows, see "Group Policy Settings Reference for Windows
53
55
If you enable the policy setting, you can select from among the following
54
56
policy settings.
55
57
56
- -- "Allow only signed scripts" allows scripts to execute only if they
57
- are signed by a trusted publisher. This policy setting is equivalent
58
- to the AllSigned execution policy.
58
+ - "Allow only signed scripts" allows scripts to execute only if they are
59
+ signed by a trusted publisher. This policy setting is equivalent to the
60
+ AllSigned execution policy.
59
61
60
- -- "Allow local scripts and remote signed scripts" allows all local
61
- scripts to run. Scripts that originate from the Internet must be
62
- signed by a trusted publisher. This policy setting is equivalent
63
- to the RemoteSigned execution policy.
62
+ - "Allow local scripts and remote signed scripts" allows all local scripts to
63
+ run. Scripts that originate from the Internet must be signed by a trusted
64
+ publisher. This policy setting is equivalent to the RemoteSigned execution
65
+ policy.
64
66
65
- -- "Allow all scripts" allows all scripts to run. This policy
66
- setting is equivalent to the Unrestricted execution policy.
67
+ - "Allow all scripts" allows all scripts to run. This policy setting is
68
+ equivalent to the Unrestricted execution policy.
67
69
68
- If you disable this policy setting, no scripts are allowed to run.
69
- This policy setting is equivalent to the Restricted execution policy.
70
+ If you disable this policy setting, no scripts are allowed to run. This policy
71
+ setting is equivalent to the Restricted execution policy.
70
72
71
- If you disable or do not configure this policy setting, the execution
72
- policy that is set for the computer or user by the Set-ExecutionPolicy
73
- cmdlet determines whether scripts are permitted to run. The default
74
- value is Restricted.
73
+ If you disable or do not configure this policy setting, the execution policy
74
+ that is set for the computer or user by the Set-ExecutionPolicy cmdlet
75
+ determines whether scripts are permitted to run. The default value is
76
+ Restricted.
75
77
76
- For more information, see about_Execution_Policies
77
- (http://go.microsoft.com/fwlink/?LinkID=135170 ).
78
+ For more information, see [ about_Execution_Policies] ( about_Execution_Policies.md ) .
78
79
79
80
# TURN ON MODULE LOGGING
80
81
@@ -99,56 +100,54 @@ To turn on module logging for a module, use the following command format.
99
100
The module must be imported into the session and the setting is effective
100
101
only in the current session.
101
102
103
+ ``` powershell
102
104
PS C:> Import-Module <Module-Name>
103
105
PS C:> (Get-Module <Module-Name>).LogPipelineExecutionDetails = $true
106
+ ```
104
107
105
108
To turn on module logging for all sessions on a particular computer,
106
109
add the previous commands to the all-users Windows PowerShell profile
107
110
($Profile.AllUsers.AllHosts).
108
111
109
- For more information about module logging, see about_Modules
110
- (http://go.microsoft.com/fwlink/?LinkID=144311 ).
112
+ For more information about module logging, see [ about_Modules] ( about_Modules.md ) .
111
113
112
114
# SET THE DEFAULT SOURCE PATH FOR UPDATE-HELP
113
115
114
116
The "Set the Default Source Path for Update-Help" policy setting sets a
115
- default value for the SourcePath parameter of the Update-Help cmdlet.
116
- This setting prevents users from using the Update-Help cmdlet to download
117
- help files from the Internet.
117
+ default value for the SourcePath parameter of the Update-Help cmdlet. This
118
+ setting prevents users from using the Update-Help cmdlet to download help
119
+ files from the Internet.
118
120
119
- NOTE: The "Set the default source path for Update-Help" Group
120
- Policy setting appears under Computer Configuration and
121
- User Configuration. However, only the Group Policy setting
122
- under Computer Configuration is effective. The Group Policy
123
- setting under User Configuration is ignored.
121
+ NOTE: The "Set the default source path for Update-Help" Group Policy setting
122
+ appears under Computer Configuration and User Configuration. However, only the
123
+ Group Policy setting under Computer Configuration is effective. The Group
124
+ Policy setting under User Configuration is ignored.
124
125
125
126
The Update-Help cmdlet downloads and installs the newest help files for
126
127
Windows PowerShell modules and installs them on the computer. By default,
127
- Update-Help downloads new help files from an Internet location specified
128
- by the module.
128
+ Update-Help downloads new help files from an Internet location specified by
129
+ the module.
129
130
130
- However, you can use the Save-Help cmdlet to download the newest help
131
- files to a file system location, such as a network share, and then use
132
- the Update-Help cmdlet to get the help files from the file system
133
- location and install them on the computer. The SourcePath parameter of
134
- the Update-Help cmdlet specifies the file system location.
131
+ However, you can use the Save-Help cmdlet to download the newest help files to
132
+ a file system location, such as a network share, and then use the Update-Help
133
+ cmdlet to get the help files from the file system location and install them on
134
+ the computer. The SourcePath parameter of the Update-Help cmdlet specifies the
135
+ file system location.
135
136
136
- By providing a default value for the SourcePath parameter, this Group
137
- Policy setting implicitly adds the SourcePath parameter to all Update-Help
138
- commands. Users can override the particular file system location specified
139
- as the default value by entering a different file system location. But they
140
- cannot remove the SourcePath parameter from the Update-Help command.
137
+ By providing a default value for the SourcePath parameter, this Group Policy
138
+ setting implicitly adds the SourcePath parameter to all Update-Help commands.
139
+ Users can override the particular file system location specified as the
140
+ default value by entering a different file system location. But they cannot
141
+ remove the SourcePath parameter from the Update-Help command.
141
142
142
143
If you enable this policy setting, you can specify a default value for the
143
144
SourcePath parameter. Enter a file system location.
144
145
145
- If this policy setting is disabled or not configured, there is no
146
- default value for the SourcePath parameter of the Update-Help cmdlet.
147
- Users can download help from the Internet or from any file system
148
- location.
146
+ If this policy setting is disabled or not configured, there is no default
147
+ value for the SourcePath parameter of the ` Update-Help ` cmdlet. Users can
148
+ download help from the Internet or from any file system location.
149
149
150
- For more information, see about_Updatable_Help
151
- (http://go.microsoft.com/fwlink/?LinkID=235801 ).
150
+ For more information, see [ about_Updatable_Help] ( about_Updatable_Help.md ) .
152
151
153
152
# KEYWORDS
154
153
@@ -163,13 +162,12 @@ about_GroupPolicy
163
162
164
163
[ about_Updatable_Help] ( about_Updatable_Help.md )
165
164
166
- Get-ExecutionPolicy
167
-
168
- Set-ExecutionPolicy
165
+ [ Get-ExecutionPolicy] ( ../../Microsoft.PowerShell.Security/Get-ExecutionPolicy.md )
169
166
170
- Get-Module
167
+ [ Set-ExecutionPolicy ] ( ../../Microsoft.PowerShell.Security/Set-ExecutionPolicy.md )
171
168
172
- Update-Help
169
+ [ Get-Module ] ( ../Get-Module.md )
173
170
174
- Save -Help
171
+ [ Update -Help] ( ../Update-Help.md )
175
172
173
+ [ Save-Help] ( ../Save-Help.md )
0 commit comments