Skip to content

Commit cece485

Browse files
Sean Wheelerzjalexander
authored andcommitted
reformatting About_* for 80 columns - part 3 (#1902)
* reformatting About_* * reformatting About_* part 3 * fixing broken links * fixing more broken links * one more time with the links
1 parent 6824d85 commit cece485

40 files changed

+4616
-4300
lines changed

reference/3.0/Microsoft.PowerShell.Core/About/about_Functions_CmdletBindingAttribute.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
---
2-
ms.date: 2017-06-09
2+
ms.date: 2017-11-28
33
schema: 2.0.0
44
locale: en-us
55
keywords: powershell,cmdlet
66
title: about_Functions_CmdletBindingAttribute
77
---
88

99
# About Functions CmdletBindingAttribute
10-
## about_Functions_CmdletBindingAttribute
11-
1210

1311
# SHORT DESCRIPTION
1412

15-
Describes the attribute that makes a function work like a
16-
compiled cmdlet.
13+
Describes the attribute that makes a function work like a compiled cmdlet.
1714

1815
# LONG DESCRIPTION
1916

@@ -124,13 +121,15 @@ to an advanced function.
124121
function Get-Numbers {
125122
[CmdletBinding(SupportsPaging = $true)]
126123
param()
127-
124+
128125
$FirstNumber = [Math]::Min($PSCmdlet.PagingParameters.Skip, 100)
129-
$LastNumber = [Math]::Min($PSCmdlet.PagingParameters.First + $FirstNumber - 1, 100)
130-
126+
$LastNumber = [Math]::Min($PSCmdlet.PagingParameters.First +
127+
$FirstNumber - 1, 100)
128+
131129
if ($PSCmdlet.PagingParameters.IncludeTotalCount) {
132130
$TotalCountAccuracy = 1.0
133-
$TotalCount = $PSCmdlet.PagingParameters.NewTotalCount(100, $TotalCountAccuracy)
131+
$TotalCount = $PSCmdlet.PagingParameters.NewTotalCount(100,
132+
$TotalCountAccuracy)
134133
Write-Output $TotalCount
135134
}
136135
$FirstNumber .. $LastNumber | Write-Output
@@ -173,8 +172,7 @@ must be included when the parameter is used in a function.
173172
The Position argument of the Parameter attribute takes precedence over the
174173
PositionalBinding default value. You can use the Position argument to specify
175174
a position value for a parameter. For more information about the Position
176-
argument, see about_Functions_Advanced_Parameters
177-
(http://go.microsoft.com/fwlink/?LinkID=135173).
175+
argument, see [about_Functions_Advanced_Parameters](about_Functions_Advanced_Parameters.md).
178176

179177
# NOTES
180178

Lines changed: 62 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,45 @@
11
---
2-
ms.date: 2017-06-09
2+
ms.date: 2017-11-28
33
schema: 2.0.0
44
locale: en-us
55
keywords: powershell,cmdlet
66
title: about_Group_Policy_Settings
77
---
88

99
# About Group Policy Settings
10-
## about_Group_Policy_Settings
11-
1210

1311
# SHORT DESCRIPTION
1412

1513
Describes the Group Policy settings for Windows PowerShell
1614

1715
# LONG DESCRIPTION
1816

19-
2017
Windows PowerShell includes Group Policy settings to help you define
2118
consistent option values for servers in an enterprise environment.
2219

2320
The Windows PowerShell Group Policy settings are in the following
2421
Group Policy paths:
2522

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
2832

2933
Group policy settings in the User Configuration path take precedence
3034
over Group Policy settings in the Computer Configuration path.
3135

3236
The policies are as follows:
3337

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.
4143

4244
To download spreadsheets that list all of the Group Policy settings for
4345
each version of Windows, see "Group Policy Settings Reference for Windows
@@ -53,28 +55,27 @@ run.
5355
If you enable the policy setting, you can select from among the following
5456
policy settings.
5557

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.
5961

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.
6466

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.
6769

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.
7072

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.
7577

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).
7879

7980
# TURN ON MODULE LOGGING
8081

@@ -99,56 +100,54 @@ To turn on module logging for a module, use the following command format.
99100
The module must be imported into the session and the setting is effective
100101
only in the current session.
101102

103+
```powershell
102104
PS C:> Import-Module <Module-Name>
103105
PS C:> (Get-Module <Module-Name>).LogPipelineExecutionDetails = $true
106+
```
104107

105108
To turn on module logging for all sessions on a particular computer,
106109
add the previous commands to the all-users Windows PowerShell profile
107110
($Profile.AllUsers.AllHosts).
108111

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).
111113

112114
# SET THE DEFAULT SOURCE PATH FOR UPDATE-HELP
113115

114116
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.
118120

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.
124125

125126
The Update-Help cmdlet downloads and installs the newest help files for
126127
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.
129130

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.
135136

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.
141142

142143
If you enable this policy setting, you can specify a default value for the
143144
SourcePath parameter. Enter a file system location.
144145

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.
149149

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).
152151

153152
# KEYWORDS
154153

@@ -163,13 +162,12 @@ about_GroupPolicy
163162

164163
[about_Updatable_Help](about_Updatable_Help.md)
165164

166-
Get-ExecutionPolicy
167-
168-
Set-ExecutionPolicy
165+
[Get-ExecutionPolicy](../../Microsoft.PowerShell.Security/Get-ExecutionPolicy.md)
169166

170-
Get-Module
167+
[Set-ExecutionPolicy](../../Microsoft.PowerShell.Security/Set-ExecutionPolicy.md)
171168

172-
Update-Help
169+
[Get-Module](../Get-Module.md)
173170

174-
Save-Help
171+
[Update-Help](../Update-Help.md)
175172

173+
[Save-Help](../Save-Help.md)

0 commit comments

Comments
 (0)