Skip to content

Commit 3acd56a

Browse files
committed
Markdown and PS Styles
1 parent ba7d368 commit 3acd56a

19 files changed

+103
-75
lines changed

reference/7.5/Microsoft.PowerShell.Diagnostics/Get-Counter.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,8 @@ The pipeline is used with the `Where-Object` cmdlet to find a subset of the path
262262
counter sets complete list of counter paths, remove the pipeline (`|`) and `Where-Object` command.
263263

264264
The `$_` is an automatic variable for the current object in the pipeline.
265-
For more information, see [about_Automatic_Variables](../Microsoft.PowerShell.Core/About/about_Automatic_Variables.md).
265+
For more information, see
266+
[about_Automatic_Variables](../Microsoft.PowerShell.Core/About/about_Automatic_Variables.md).
266267

267268
```powershell
268269
(Get-Counter -ListSet Memory).Paths | Where-Object { $_ -like "*Cache*" }
@@ -659,4 +660,4 @@ In PowerShell 7, when using the **ListSet** parameter, `Get-Counter` can't retri
659660

660661
[Start-Job](../Microsoft.PowerShell.Core/Start-Job.md)
661662

662-
[Where-Object](..//Microsoft.PowerShell.Core/Where-Object.md)
663+
[Where-Object](../Microsoft.PowerShell.Core/Where-Object.md)

reference/7.5/Microsoft.PowerShell.Diagnostics/Get-WinEvent.md

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,9 @@ with the asterisk (`*`) wildcard to display each property.
151151

152152
### Example 3: Configure the classic Security log
153153

154-
This command gets an **EventLogConfiguration** object that represents the classic **Security** log. The
155-
object is then used to configure settings for the log, such as max file size, file path, and whether the
156-
log is enabled.
154+
This command gets an **EventLogConfiguration** object that represents the classic **Security** log.
155+
The object is then used to configure settings for the log, such as max file size, file path, and
156+
whether the log is enabled.
157157

158158
```powershell
159159
$log = Get-WinEvent -ListLog Security
@@ -196,17 +196,18 @@ ProviderLatency : 1000
196196
ProviderControlGuid :
197197
```
198198

199-
The `Get-WinEvent` cmdlet uses the **ListLog** parameter to specify the **Security** log. The object is
200-
saved to a variable. The **MaximumSizeInBytes** property is set to 1 gigabyte on the object. The
199+
The `Get-WinEvent` cmdlet uses the **ListLog** parameter to specify the **Security** log. The object
200+
is saved to a variable. The **MaximumSizeInBytes** property is set to 1 gigabyte on the object. The
201201
**SaveChanges** method is called to push the change to the system inside of a try block to handle
202-
access violations. The `Get-WinEvent` cmdlet is called again on the **Security** log and piped to the
203-
`Format-List` cmdlet to verify that the **MaximumSizeInBytes** property has been saved on the machine.
202+
access violations. The `Get-WinEvent` cmdlet is called again on the **Security** log and piped to
203+
the `Format-List` cmdlet to verify that the **MaximumSizeInBytes** property has been saved on the
204+
machine.
204205

205206
### Example 4: Get event logs from a server
206207

207208
This command only gets event logs on the local computer that contain events. It's possible for a
208209
log's **RecordCount** to be null or zero. The example uses the `$_` variable. For more information,
209-
see [about_Automatic_Variables](../Microsoft.PowerShell.Core/about/about_automatic_variables.md).
210+
see [about_Automatic_Variables](../Microsoft.PowerShell.Core/About/about_Automatic_Variables.md).
210211

211212
```powershell
212213
Get-WinEvent -ListLog * -ComputerName localhost | Where-Object { $_.RecordCount }
@@ -233,7 +234,8 @@ is a property of the object with a non-null value.
233234

234235
This example gets objects that represent the **Application** event logs on three computers:
235236
Server01, Server02, and Server03. The **ForEach** keyword is used because the **ComputerName**
236-
parameter accepts only one value. For more information, see [about_Foreach](../Microsoft.PowerShell.Core/about/about_Foreach.md).
237+
parameter accepts only one value. For more information, see
238+
[about_Foreach](../Microsoft.PowerShell.Core/About/about_Foreach.md).
237239

238240
```powershell
239241
$S = 'Server01', 'Server02', 'Server03'
@@ -574,7 +576,8 @@ Get-WinEvent -LogName 'Windows PowerShell' -FilterXPath $XPath
574576
This example uses the **FilterHashtable** parameter to get events from the **Application** log. The
575577
hash table uses **key/value** pairs. For more information about the **FilterHashtable** parameter,
576578
see [Creating Get-WinEvent queries with FilterHashtable](/powershell/scripting/samples/Creating-Get-WinEvent-queries-with-FilterHashtable).
577-
For more information about hash tables, see [about_Hash_Tables](../Microsoft.PowerShell.Core/about/about_hash_tables.md).
579+
For more information about hash tables, see
580+
[about_Hash_Tables](../Microsoft.PowerShell.Core/About/about_Hash_Tables.md).
578581

579582
```powershell
580583
$Date = (Get-Date).AddDays(-2)
@@ -739,8 +742,9 @@ Help.
739742

740743
Use an XML query to create a complex query that contains several XPath statements. The XML format
741744
also allows you to use a **Suppress XML** element that excludes events from the query. For more
742-
information about the XML schema for event log queries, see [Query Schema](/windows/win32/wes/queryschema-schema)
743-
and the XML Event Queries section of [Event Selection](/previous-versions/aa385231(v=vs.85)).
745+
information about the XML schema for event log queries, see
746+
[Query Schema](/windows/win32/wes/queryschema-schema) and the XML Event Queries section of
747+
[Event Selection](/previous-versions/aa385231(v=vs.85)).
744748

745749
You may also create a **Suppress** element using the **FilterHashtable** parameter.
746750

@@ -760,7 +764,8 @@ Accept wildcard characters: False
760764

761765
Specifies an XPath query that this cmdlet select events from one or more logs.
762766

763-
For more information about the XPath language, see [XPath Reference](/previous-versions/dotnet/netframework-4.0/ms256115(v=vs.100))
767+
For more information about the XPath language, see
768+
[XPath Reference](/previous-versions/dotnet/netframework-4.0/ms256115(v=vs.100))
764769
and the Selection Filters section of [Event Selection](/previous-versions/aa385231(v=vs.85)).
765770

766771
```yaml
@@ -841,8 +846,8 @@ cmdlet.
841846
> [!NOTE]
842847
> PowerShell does not limit the amount of logs you can request. However, the `Get-WinEvent` cmdlet
843848
> queries the Windows API which has a limit of 256. This can make it difficult to filter through all
844-
> of your logs at one time. You can work around this by using a `foreach` loop to iterate through each
845-
> log like this: `Get-WinEvent -ListLog * | ForEach-Object{ Get-WinEvent -LogName $_.LogName }`
849+
> of your logs at one time. You can work around this by using a `foreach` loop to iterate through
850+
> each log like this: `Get-WinEvent -ListLog * | ForEach-Object{ Get-WinEvent -LogName $_.LogName }`
846851

847852
```yaml
848853
Type: System.String[]
@@ -939,7 +944,8 @@ Accept wildcard characters: True
939944

940945
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
941946
-InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose,
942-
-WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
947+
-WarningAction, and -WarningVariable. For more information, see
948+
[about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
943949

944950
## INPUTS
945951

@@ -980,11 +986,11 @@ Environment (Windows PE).
980986

981987
## RELATED LINKS
982988

983-
[about_Automatic_Variables](../Microsoft.PowerShell.Core/about/about_automatic_variables.md)
989+
[about_Automatic_Variables](../Microsoft.PowerShell.Core/About/about_Automatic_Variables.md)
984990

985-
[about_Foreach](../Microsoft.PowerShell.Core/about/about_Foreach.md)
991+
[about_Foreach](../Microsoft.PowerShell.Core/About/about_Foreach.md)
986992

987-
[about_Hash_Tables](../Microsoft.PowerShell.Core/about/about_hash_tables.md)
993+
[about_Hash_Tables](../Microsoft.PowerShell.Core/About/about_Hash_Tables.md)
988994

989995
[Creating Get-WinEvent queries with FilterHashtable](/powershell/scripting/samples/Creating-Get-WinEvent-queries-with-FilterHashtable)
990996

reference/7.5/Microsoft.PowerShell.Management/Add-Content.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,7 @@ set to `False`.
159159
### Example 7: Use Filters with Add-Content
160160

161161
You can specify a filter to the `Add-Content` cmdlet. When using filters to qualify the **Path**
162-
parameter, you need to include a trailing asterisk (`*`) to indicate the contents of the
163-
path.
162+
parameter, you need to include a trailing asterisk (`*`) to indicate the contents of the path.
164163

165164
The following command adds the word "Done" the content of all `*.txt` files in the `C:\Temp`
166165
directory.
@@ -429,8 +428,8 @@ You can use the `Add-Content` cmdlet to change the content of any alternate data
429428
block files that are downloaded from the Internet. If you verify that a downloaded file is safe, use
430429
the `Unblock-File` cmdlet.
431430

432-
This parameter was introduced in PowerShell 3.0. As of PowerShell 7.2, `Add-Content` can
433-
target alternative data streams on both files and directories.
431+
This parameter was introduced in PowerShell 3.0. As of PowerShell 7.2, `Add-Content` can target
432+
alternative data streams on both files and directories.
434433

435434
```yaml
436435
Type: System.String

reference/7.5/Microsoft.PowerShell.Management/Clear-Item.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,8 @@ typed. No characters are interpreted as wildcards. If the path includes escape c
180180
it in single quotation marks. Single quotation marks tell PowerShell not to interpret any characters
181181
as escape sequences.
182182

183-
For more information, see [about_Quoting_Rules](../Microsoft.Powershell.Core/About/about_Quoting_Rules.md).
183+
For more information, see
184+
[about_Quoting_Rules](../Microsoft.Powershell.Core/About/about_Quoting_Rules.md).
184185

185186
```yaml
186187
Type: System.String[]

reference/7.5/Microsoft.PowerShell.Management/Clear-ItemProperty.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,13 @@ Accept wildcard characters: True
9090

9191
### -Filter
9292

93-
Specifies a filter to qualify the **Path** parameter. The [FileSystem](../Microsoft.PowerShell.Core/About/about_FileSystem_Provider.md)
94-
provider is the only installed PowerShell provider that supports the use of filters. You can find
95-
the syntax for the **FileSystem** filter language in [about_Wildcards](../Microsoft.PowerShell.Core/About/about_Wildcards.md).
96-
Filters are more efficient than other parameters, because the provider applies them when the cmdlet
97-
gets the objects rather than having PowerShell filter the objects after they are retrieved.
93+
Specifies a filter to qualify the **Path** parameter. The
94+
[FileSystem](../Microsoft.PowerShell.Core/About/about_FileSystem_Provider.md) provider is the only
95+
installed PowerShell provider that supports the use of filters. You can find the syntax for the
96+
**FileSystem** filter language in
97+
[about_Wildcards](../Microsoft.PowerShell.Core/About/about_Wildcards.md). Filters are more efficient
98+
than other parameters, because the provider applies them when the cmdlet gets the objects rather
99+
than having PowerShell filter the objects after they are retrieved.
98100

99101
```yaml
100102
Type: System.String
@@ -153,7 +155,8 @@ typed. No characters are interpreted as wildcards. If the path includes escape c
153155
it in single quotation marks. Single quotation marks tell PowerShell not to interpret any characters
154156
as escape sequences.
155157

156-
For more information, see [about_Quoting_Rules](../Microsoft.Powershell.Core/About/about_Quoting_Rules.md).
158+
For more information, see
159+
[about_Quoting_Rules](../Microsoft.Powershell.Core/About/about_Quoting_Rules.md).
157160

158161
```yaml
159162
Type: System.String[]

reference/7.5/Microsoft.PowerShell.Management/Copy-Item.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,8 @@ typed. No characters are interpreted as wildcards. If the path includes escape c
536536
it in single quotation marks. Single quotation marks tell PowerShell not to interpret any characters
537537
as escape sequences.
538538
539-
For more information, see [about_Quoting_Rules](../Microsoft.Powershell.Core/About/about_Quoting_Rules.md).
539+
For more information, see
540+
[about_Quoting_Rules](../Microsoft.Powershell.Core/About/about_Quoting_Rules.md).
540541
541542
```yaml
542543
Type: System.String[]

reference/7.5/Microsoft.PowerShell.Management/Copy-ItemProperty.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,13 @@ Accept wildcard characters: True
108108

109109
### -Filter
110110

111-
Specifies a filter to qualify the **Path** parameter. The [FileSystem](../Microsoft.PowerShell.Core/About/about_FileSystem_Provider.md)
112-
provider is the only installed PowerShell provider that supports the use of filters. You can find
113-
the syntax for the **FileSystem** filter language in [about_Wildcards](../Microsoft.PowerShell.Core/About/about_Wildcards.md).
114-
Filters are more efficient than other parameters, because the provider applies them when the cmdlet
115-
gets the objects rather than having PowerShell filter the objects after they are retrieved.
111+
Specifies a filter to qualify the **Path** parameter. The
112+
[FileSystem](../Microsoft.PowerShell.Core/About/about_FileSystem_Provider.md) provider is the only
113+
installed PowerShell provider that supports the use of filters. You can find the syntax for the
114+
**FileSystem** filter language in
115+
[about_Wildcards](../Microsoft.PowerShell.Core/About/about_Wildcards.md). Filters are more efficient
116+
than other parameters, because the provider applies them when the cmdlet gets the objects rather
117+
than having PowerShell filter the objects after they are retrieved.
116118

117119
```yaml
118120
Type: System.String
@@ -172,7 +174,8 @@ typed. No characters are interpreted as wildcards. If the path includes escape c
172174
it in single quotation marks. Single quotation marks tell PowerShell not to interpret any characters
173175
as escape sequences.
174176

175-
For more information, see [about_Quoting_Rules](../Microsoft.Powershell.Core/About/about_Quoting_Rules.md).
177+
For more information, see
178+
[about_Quoting_Rules](../Microsoft.Powershell.Core/About/about_Quoting_Rules.md).
176179

177180
```yaml
178181
Type: System.String[]

reference/7.5/Microsoft.PowerShell.Management/Debug-Process.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ This cmdlet returns no output.
238238

239239
This cmdlet uses the AttachDebugger method of the Windows Management Instrumentation (WMI)
240240
Win32_Process class. For more information about this method, see
241-
[AttachDebugger method](https://go.microsoft.com/fwlink/?LinkId=143640) in the MSDN library.
241+
[AttachDebugger method](https://go.microsoft.com/fwlink/?LinkId=143640) in Microsoft Learn.
242242

243243
## RELATED LINKS
244244

reference/7.5/Microsoft.PowerShell.Management/Get-ChildItem.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ title: Get-ChildItem
1111
# Get-ChildItem
1212

1313
## SYNOPSIS
14-
1514
Gets the items and child items in one or more specified locations.
1615

1716
## SYNTAX
@@ -124,7 +123,7 @@ as follows:
124123
- `s` (system)
125124

126125
For more information about the mode flags, see
127-
[about_Filesystem_Provider](../microsoft.powershell.core/about/about_filesystem_provider.md#attributes-flagsexpression).
126+
[about_Filesystem_Provider](../microsoft.powershell.core/About/about_Filesystem_Provider.md#attributes-flagsexpression).
128127

129128
### Example 2: Get child item names in a directory
130129

@@ -346,8 +345,8 @@ authority.
346345
Get-ChildItem -Path Cert:\* -Recurse -CodeSigningCert
347346
```
348347

349-
For more information about the Certificate provider and the `Cert:` drive,
350-
see [about_Certificate_Provider](../Microsoft.PowerShell.Security/About/about_Certificate_Provider.md).
348+
For more information about the Certificate provider and the `Cert:` drive, see
349+
[about_Certificate_Provider](../Microsoft.PowerShell.Security/About/about_Certificate_Provider.md).
351350

352351
### Example 8: Get items using the Depth parameter
353352

@@ -437,7 +436,7 @@ filesystem object returned by `Get-ChildItem` and is displayed in the default ou
437436

438437
```powershell
439438
PS D:\> New-Item -ItemType Junction -Name tmp -Target $env:TEMP
440-
PS D:\> Get-ChildItem | Select-Object name,LinkTarget
439+
PS D:\> Get-ChildItem | Select-Object name, LinkTarget
441440
442441
Name LinkTarget
443442
---- ----------
@@ -508,7 +507,8 @@ The **Attributes** parameter supports the following properties:
508507
- **System**
509508
- **Temporary**
510509

511-
For a description of these attributes, see the [FileAttributes Enumeration](/dotnet/api/system.io.fileattributes).
510+
For a description of these attributes, see the
511+
[FileAttributes Enumeration](/dotnet/api/system.io.fileattributes).
512512

513513
To combine attributes, use the following operators:
514514

@@ -863,7 +863,8 @@ typed. No characters are interpreted as wildcards. If the path includes escape c
863863
it in single quotation marks. Single quotation marks tell PowerShell to not interpret any characters
864864
as escape sequences.
865865

866-
For more information, see [about_Quoting_Rules](../Microsoft.Powershell.Core/About/about_Quoting_Rules.md).
866+
For more information, see
867+
[about_Quoting_Rules](../Microsoft.Powershell.Core/About/about_Quoting_Rules.md).
867868

868869
```yaml
869870
Type: System.String[]

reference/7.5/Microsoft.PowerShell.Management/Get-Content.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ to create sample content in a file named `Stream.txt`.
129129

130130
```powershell
131131
Set-Content -Path .\Stream.txt -Value 'This is the content of the Stream.txt file'
132-
# Specify a wildcard to the Stream parameter to display all streams of the recently created file.
132+
# Specify a wildcard to the Stream parameter to display all streams of the recently
133+
# created file.
133134
Get-Item -Path .\Stream.txt -Stream *
134135
```
135136

@@ -168,7 +169,8 @@ This is the content of the Stream.txt file
168169
```
169170

170171
```powershell
171-
# Use the Stream parameter of Add-Content to create a new Stream containing sample content.
172+
# Use the Stream parameter of Add-Content to create a new Stream containing sample
173+
# content.
172174
$addContentSplat = @{
173175
Path = '.\Stream.txt'
174176
Stream = 'NewStream'
@@ -212,7 +214,7 @@ Added a stream named NewStream to Stream.txt
212214
```
213215

214216
The **Stream** parameter is a dynamic parameter of the
215-
[FileSystem provider](../microsoft.powershell.core/about/about_filesystem_provider.md#stream-string).
217+
[FileSystem provider](../microsoft.powershell.core/About/about_Filesystem_Provider.md#stream-string).
216218
By default `Get-Content` only retrieves data from the default, or `:$DATA` stream. **Streams** can
217219
be used to store hidden data such as attributes, security settings, or other data. They can also be
218220
stored on directories without being child items.

reference/7.5/Microsoft.PowerShell.Management/Get-HotFix.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ The `Get-HotFix` output might vary on different operating systems.
216216

217217
## RELATED LINKS
218218

219-
[about_Arrays](/powershell/module/microsoft.powershell.core/about/about_arrays)
219+
[about_Arrays](/powershell/module/microsoft.powershell.core/About/about_Arrays)
220220

221221
[Add-Content](Add-Content.md)
222222

reference/7.5/Microsoft.PowerShell.Management/Get-Item.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ In PowerShell 6.2, an alternate view was added to get hardlink information. To g
170170
information, pipe the output to `Format-Table -View childrenWithHardlink`
171171

172172
```powershell
173-
Get-Item C:\Windows\System32\ntoskrnl.exe | Format-Table -view childrenWithHardLink
173+
Get-Item C:\Windows\System32\ntoskrnl.exe | Format-Table -View childrenWithHardLink
174174
```
175175

176176
```Output
@@ -441,7 +441,8 @@ typed. No characters are interpreted as wildcards. If the path includes escape c
441441
it in single quotation marks. Single quotation marks tell PowerShell not to interpret any characters
442442
as escape sequences.
443443

444-
For more information, see [about_Quoting_Rules](../Microsoft.Powershell.Core/About/about_Quoting_Rules.md).
444+
For more information, see
445+
[about_Quoting_Rules](../Microsoft.Powershell.Core/About/about_Quoting_Rules.md).
445446

446447
```yaml
447448
Type: System.String[]

reference/7.5/Microsoft.PowerShell.Management/Get-ItemPropertyValue.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ This command gets the values of the **LastWriteTime**, **CreationTime**, and **R
7070
a folder. The property values are returned in the order in which you specified the property names.
7171

7272
```powershell
73-
Get-ItemPropertyValue -Path 'C:\Program Files\PowerShell' -Name LastWriteTime,CreationTime,Root
73+
Get-ItemPropertyValue -Path 'C:\Program Files\PowerShell' -Name LastWriteTime, CreationTime, Root
7474
```
7575

7676
```output
@@ -140,11 +140,13 @@ Accept wildcard characters: True
140140

141141
### -Filter
142142

143-
Specifies a filter to qualify the **Path** parameter. The [FileSystem](../Microsoft.PowerShell.Core/About/about_FileSystem_Provider.md)
144-
provider is the only installed PowerShell provider that supports the use of filters. You can find
145-
the syntax for the **FileSystem** filter language in [about_Wildcards](../Microsoft.PowerShell.Core/About/about_Wildcards.md).
146-
Filters are more efficient than other parameters, because the provider applies them when the cmdlet
147-
gets the objects rather than having PowerShell filter the objects after they are retrieved.
143+
Specifies a filter to qualify the **Path** parameter. The
144+
[FileSystem](../Microsoft.PowerShell.Core/About/about_FileSystem_Provider.md) provider is the only
145+
installed PowerShell provider that supports the use of filters. You can find the syntax for the
146+
**FileSystem** filter language in
147+
[about_Wildcards](../Microsoft.PowerShell.Core/About/about_Wildcards.md). Filters are more
148+
efficient than other parameters, because the provider applies them when the cmdlet gets the objects
149+
rather than having PowerShell filter the objects after they are retrieved.
148150

149151
```yaml
150152
Type: System.String
@@ -185,7 +187,8 @@ typed. No characters are interpreted as wildcards. If the path includes escape c
185187
it in single quotation marks. Single quotation marks tell PowerShell not to interpret any characters
186188
as escape sequences.
187189

188-
For more information, see [about_Quoting_Rules](../Microsoft.Powershell.Core/About/about_Quoting_Rules.md).
190+
For more information, see
191+
[about_Quoting_Rules](../Microsoft.Powershell.Core/About/about_Quoting_Rules.md).
189192

190193
```yaml
191194
Type: System.String[]

0 commit comments

Comments
 (0)