Skip to content

Commit abced37

Browse files
ArieHeinsdwheeler
andauthored
Markdown and PS Styles (#11747)
* Fix Markdown, relative ref, folder and file names, and PS Style * Apply suggestions from code review --------- Co-authored-by: Sean Wheeler <[email protected]>
1 parent 854dab4 commit abced37

28 files changed

+146
-113
lines changed

reference/7.5/Microsoft.PowerShell.Core/Add-History.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ about the session history, see [about_History](About/about_History.md).
3131

3232
The session history is managed separately from the history maintained by the **PSReadLine** module.
3333
Both histories are available in sessions where **PSReadLine** is loaded. This cmdlet only works with
34-
the session history. For more information see, [about_PSReadLine](../PSReadLine/About/about_PSReadLine.md).
34+
the session history. For more information see,
35+
[about_PSReadLine](../PSReadLine/About/about_PSReadLine.md).
3536

3637
You can use the `Get-History` cmdlet to get the commands and pass them to `Add-History`, or you can
3738
export the commands to a CSV or XML file, then import the commands, and pass the imported file to
@@ -122,9 +123,9 @@ PowerShell. The `Add-History` cmdlet then adds the commands in the file to the s
122123

123124
### -InputObject
124125

125-
Specifies an array of entries to add to the history as **HistoryInfo** object to the session history.
126-
You can use this parameter to submit a **HistoryInfo** object, such as the ones that are returned by
127-
the `Get-History`, `Import-Clixml`, or `Import-Csv` cmdlets, to `Add-History`.
126+
Specifies an array of entries to add to the history as **HistoryInfo** object to the session
127+
history. You can use this parameter to submit a **HistoryInfo** object, such as the ones that are
128+
returned by the `Get-History`, `Import-Clixml`, or `Import-Csv` cmdlets, to `Add-History`.
128129

129130
```yaml
130131
Type: System.Management.Automation.PSObject[]

reference/7.5/Microsoft.PowerShell.Core/Clear-History.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,8 @@ wildcards to match commands in the PowerShell session history displayed by `Get-
256256
enter more than one string, `Clear-History` deletes commands that match any of the strings. The
257257
**CommandLine** parameter can be used with **Count**.
258258

259-
For strings with a space, use single quotations. For more information, see [about_Quoting_Rules](About/about_Quoting_Rules.md).
259+
For strings with a space, use single quotations. For more information, see
260+
[about_Quoting_Rules](About/about_Quoting_Rules.md).
260261

261262
```yaml
262263
Type: System.String[]
@@ -400,7 +401,8 @@ information, see [about_History](About/about_History.md).
400401

401402
The session history is managed separately from the history maintained by the **PSReadLine** module.
402403
Both histories are available in sessions where **PSReadLine** is loaded. This cmdlet only works with
403-
the session history. For more information see, [about_PSReadLine](../PSReadLine/About/about_PSReadLine.md).
404+
the session history. For more information see,
405+
[about_PSReadLine](../PSReadLine/About/about_PSReadLine.md).
404406

405407
## RELATED LINKS
406408

reference/7.5/Microsoft.PowerShell.Core/Disable-ExperimentalFeature.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ This cmdlet was introduced in PowerShell 6.2.
3232

3333
### Example 1: Disable an experimental feature
3434

35-
In this example, if this experimental feature was previously enabled, then the `powershell.config.json`
36-
file is updated for the user to not enable that feature once PowerShell is restarted.
37-
Upon success nothing is output to the pipeline and only a warning message is displayed.
35+
In this example, if this experimental feature was previously enabled, then the
36+
`powershell.config.json` file is updated for the user to not enable that feature once PowerShell is
37+
restarted. Upon success nothing is output to the pipeline and only a warning message is displayed.
3838

3939
```powershell
4040
Disable-ExperimentalFeature -Name PSImplicitRemotingBatching
@@ -142,6 +142,6 @@ Changes to state of an experimental feature only take effect on restart of Power
142142

143143
[Get-ExperimentalFeature](Get-ExperimentalFeature.md)
144144

145-
[about_Experimental_Features](/powershell/module/microsoft.powershell.core/about/about_experimental_features)
145+
[about_Experimental_Features](About/about_Experimental_Features.md)
146146

147147
[Using Experimental Features](/powershell/scripting/learn/experimental-features)

reference/7.5/Microsoft.PowerShell.Core/Disable-PSRemoting.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ option.
5757

5858
### Example 1: Prevent remote access to all PowerShell session configurations
5959

60-
This example prevents remote access to all PowerShell session endpoint configurations on the computer.
60+
This example prevents remote access to all PowerShell session endpoint configurations on the
61+
computer.
6162

6263
```powershell
6364
Disable-PSRemoting
@@ -537,9 +538,9 @@ This cmdlet is only available on Windows platforms.
537538
following changes manually.
538539

539540
1. Stop and disable the WinRM service.
540-
2. Delete the listener that accepts requests on any IP address.
541-
3. Disable the firewall exceptions for WS-Management communications.
542-
4. Restore the value of the LocalAccountTokenFilterPolicy to 0, which restricts remote access to
541+
1. Delete the listener that accepts requests on any IP address.
542+
1. Disable the firewall exceptions for WS-Management communications.
543+
1. Restore the value of the LocalAccountTokenFilterPolicy to 0, which restricts remote access to
543544
members of the Administrators group on the computer.
544545

545546
- A session endpoint configuration is a group of settings that define the environment for a session.

reference/7.5/Microsoft.PowerShell.Core/Disconnect-PSSession.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ and in the session configuration on the remote computer. Values set for the sess
193193
over values set in the session configuration, but session values cannot exceed quotas set in the
194194
session configuration, such as the **MaxIdleTimeoutMs** value.
195195

196-
```
196+
```powershell
197197
PS> $Timeout = New-PSSessionOption -IdleTimeout 172800000
198198
PS> $s = New-PSSession -Computer Server01 -Name ITTask -SessionOption $Timeout
199199
PS> Disconnect-PSSession -Session $s

reference/7.5/Microsoft.PowerShell.Core/Enable-ExperimentalFeature.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ This cmdlet was introduced in PowerShell 6.2.
3232

3333
### Example 1: Enable an experimental feature
3434

35-
In this example, if this experimental feature was previously disabled, then the `powershell.config.json`
36-
file is updated for the user to enable that feature once PowerShell is restarted.
37-
Upon success nothing is output to the pipeline and only a warning message is displayed.
35+
In this example, if this experimental feature was previously disabled, then the
36+
`powershell.config.json` file is updated for the user to enable that feature once PowerShell is
37+
restarted. Upon success nothing is output to the pipeline and only a warning message is displayed.
3838

3939
```powershell
4040
Enable-ExperimentalFeature PSImplicitRemotingBatching
@@ -117,7 +117,8 @@ Accept wildcard characters: False
117117

118118
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
119119
-InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose,
120-
-WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
120+
-WarningAction, and -WarningVariable. For more information, see
121+
[about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
121122

122123
## INPUTS
123124

@@ -141,6 +142,6 @@ Changes to state of an experimental feature only take effect on restart of Power
141142

142143
[Get-ExperimentalFeature](Get-ExperimentalFeature.md)
143144

144-
[about_Experimental_Features](/powershell/module/microsoft.powershell.core/about/about_experimental_features)
145+
[about_Experimental_Features](About/about_Experimental_Features.md)
145146

146147
[Using Experimental Features](/powershell/scripting/learn/experimental-features)

reference/7.5/Microsoft.PowerShell.Core/Enable-PSRemoting.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ option. This cmdlet is not available on Linux or macOS versions of PowerShell.
8383
8484
For more information about using PowerShell remoting, see the following articles:
8585

86-
- [about_Remote_Requirements](about/about_Remote_Requirements.md)
87-
- [about_Remote](about/about_Remote.md)
86+
- [about_Remote_Requirements](About/about_Remote_Requirements.md)
87+
- [about_Remote](About/about_Remote.md)
8888

8989
## EXAMPLES
9090

reference/7.5/Microsoft.PowerShell.Core/Enable-PSSessionConfiguration.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,8 @@ Accept wildcard characters: False
229229

230230
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
231231
-InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose,
232-
-WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
232+
-WarningAction, and -WarningVariable. For more information, see
233+
[about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
233234

234235
## INPUTS
235236

reference/7.5/Microsoft.PowerShell.Core/Export-ModuleMember.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,8 @@ Accept wildcard characters: True
201201

202202
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
203203
-InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose,
204-
-WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
204+
-WarningAction, and -WarningVariable. For more information, see
205+
[about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
205206

206207
## INPUTS
207208

reference/7.5/Microsoft.PowerShell.Core/Get-Command.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -764,12 +764,12 @@ PowerShell includes the following aliases for `Get-Command`:
764764
- When more than one command that has the same name is available to the session, `Get-Command`
765765
returns the command that runs when you type the command name. To get commands that have the same
766766
name, listed in run order, use the **All** parameter. For more information, see
767-
[about_Command_Precedence](../Microsoft.PowerShell.Core/About/about_Command_Precedence.md).
767+
[about_Command_Precedence](About/about_Command_Precedence.md).
768768
- When a module is imported automatically, the effect is the same as using the `Import-Module`
769769
cmdlet. The module can add commands, types and formatting files, and run scripts in the session.
770770
To enable, disable, and configuration automatic importing of modules, use the
771771
`$PSModuleAutoLoadingPreference` preference variable. For more information, see
772-
[about_Preference_Variables](../Microsoft.PowerShell.Core/About/about_Preference_Variables.md).
772+
[about_Preference_Variables](About/about_Preference_Variables.md).
773773

774774
## RELATED LINKS
775775

0 commit comments

Comments
 (0)