Skip to content

Commit 797175f

Browse files
authored
Merge pull request #12093 from MicrosoftDocs/main
5/21/2025 PM Publish
2 parents c11ec91 + 35b5b4b commit 797175f

File tree

15 files changed

+184
-192
lines changed

15 files changed

+184
-192
lines changed

reference/5.1/Microsoft.PowerShell.Core/About/about_Comment_Based_Help.md

Lines changed: 19 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: Describes how to write comment-based help content for functions and scripts.
33
Locale: en-US
4-
ms.date: 01/09/2025
4+
ms.date: 05/21/2025
55
no-loc: [.SYNOPSIS, .DESCRIPTION, .PARAMETER, .EXAMPLE, .INPUTS, .OUTPUTS, .NOTES, .LINK, .COMPONENT, .ROLE, .FUNCTIONALITY, .FORWARDHELPTARGETNAME, .FORWARDHELPCATEGORY, .REMOTEHELPRUNSPACE, .EXTERNALHELP]
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help?view=powershell-5.1&WT.mc_id=ps-gethelp
77
schema: 2.0.0
@@ -227,58 +227,54 @@ function Verb-Noun {
227227
}
228228
```
229229

230-
### .EXAMPLE
230+
### `.EXAMPLE`
231231

232232
A sample command that uses the function or script, optionally followed by
233233
sample output and a description. Repeat this keyword for each example.
234234

235-
### .INPUTS
235+
### `.INPUTS`
236236

237237
The .NET types of objects that can be piped to the function or script. You can
238-
also include a description of the input objects.
238+
also include a description of the input objects. Repeat this keyword for each
239+
input type.
239240

240-
### .OUTPUTS
241+
### `.OUTPUTS`
241242

242243
The .NET type of the objects that the cmdlet returns. You can also include a
243-
description of the returned objects.
244+
description of the returned objects. Repeat this keyword for each output type.
244245

245-
### .NOTES
246+
### `.NOTES`
246247

247248
Additional information about the function or script.
248249

249-
### .LINK
250+
### `.LINK`
250251

251-
The name of a related topic. The value appears on the line below the ".LINK"
252-
keyword and must be preceded by a comment symbol `#` or included in the
253-
comment block.
254-
255-
Repeat the `.LINK` keyword for each related topic.
256-
257-
This content appears in the Related Links section of the help topic.
252+
The name of a related topic. Repeat this keyword for each related topic. This
253+
content appears in the Related Links section of the Help topic.
258254

259255
The `.LINK` keyword content can also include a Uniform Resource Identifier
260256
(URI) to an online version of the same help topic. The online version opens
261257
when you use the **Online** parameter of `Get-Help`. The URI must begin with
262-
"http" or "https".
258+
`http` or `https`.
263259

264-
### .COMPONENT
260+
### `.COMPONENT`
265261

266262
The name of the technology or feature that the function or script uses, or to
267263
which it's related. The **Component** parameter of `Get-Help` uses this value
268264
to filter the search results returned by `Get-Help`.
269265

270-
### .ROLE
266+
### `.ROLE`
271267

272268
The name of the user role for the help topic. The **Role** parameter of
273269
`Get-Help` uses this value to filter the search results returned by `Get-Help`.
274270

275-
### .FUNCTIONALITY
271+
### `.FUNCTIONALITY`
276272

277273
The keywords that describe the intended use of the function. The
278274
**Functionality** parameter of `Get-Help` uses this value to filter the search
279275
results returned by `Get-Help`.
280276

281-
### .FORWARDHELPTARGETNAME
277+
### `.FORWARDHELPTARGETNAME <Command-Name>`
282278

283279
Redirects to the help topic for the specified command. You can redirect users
284280
to any help topic, including help content for a function, script, cmdlet, or
@@ -288,7 +284,7 @@ provider.
288284
# .FORWARDHELPTARGETNAME <Command-Name>
289285
```
290286

291-
### .FORWARDHELPCATEGORY
287+
### `.FORWARDHELPCATEGORY`
292288

293289
Specifies the help category of the item in `.FORWARDHELPTARGETNAME`. Valid
294290
values are `Alias`, `Cmdlet`, `HelpFile`, `Function`, `Provider`, `General`,
@@ -299,7 +295,7 @@ this keyword to avoid conflicts when there are commands with the same name.
299295
# .FORWARDHELPCATEGORY <Category>
300296
```
301297

302-
### .REMOTEHELPRUNSPACE
298+
### `.REMOTEHELPRUNSPACE <PSSession-variable>`
303299

304300
Specifies a session that contains the help topic. Enter a variable that
305301
contains a **PSSession** object. This keyword is used by the
@@ -310,7 +306,7 @@ commands.
310306
# .REMOTEHELPRUNSPACE <PSSession-variable>
311307
```
312308

313-
### .EXTERNALHELP
309+
### `.EXTERNALHELP`
314310

315311
Specifies an XML-based help file for the script or function.
316312

reference/5.1/Microsoft.PowerShell.Core/Get-Module.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -495,12 +495,9 @@ Accept wildcard characters: False
495495

496496
### -ListAvailable
497497

498-
Indicates that this cmdlet gets all installed modules. `Get-Module` gets modules in paths listed in
499-
the **PSModulePath** environment variable. Without this parameter, `Get-Module` gets only the
500-
modules that are both listed in the **PSModulePath** environment variable, and that are loaded in
501-
the current session. **ListAvailable** does not return information about modules that are not found
502-
in the **PSModulePath** environment variable, even if those modules are loaded in the current
503-
session.
498+
By default, `Get-Module` only returns the modules that have been imported into the current session.
499+
With this parameter the command lists modules installed in any path included in the
500+
`$env:PSModulePath` environment variable.
504501

505502
```yaml
506503
Type: System.Management.Automation.SwitchParameter

reference/7.4/Microsoft.PowerShell.Core/About/about_Comment_Based_Help.md

Lines changed: 19 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: Describes how to write comment-based help content for functions and scripts.
33
Locale: en-US
4-
ms.date: 01/09/2025
4+
ms.date: 05/21/2025
55
no-loc: [.SYNOPSIS, .DESCRIPTION, .PARAMETER, .EXAMPLE, .INPUTS, .OUTPUTS, .NOTES, .LINK, .COMPONENT, .ROLE, .FUNCTIONALITY, .FORWARDHELPTARGETNAME, .FORWARDHELPCATEGORY, .REMOTEHELPRUNSPACE, .EXTERNALHELP]
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help?view=powershell-7.4&WT.mc_id=ps-gethelp
77
schema: 2.0.0
@@ -227,58 +227,54 @@ function Verb-Noun {
227227
}
228228
```
229229

230-
### .EXAMPLE
230+
### `.EXAMPLE`
231231

232232
A sample command that uses the function or script, optionally followed by
233233
sample output and a description. Repeat this keyword for each example.
234234

235-
### .INPUTS
235+
### `.INPUTS`
236236

237237
The .NET types of objects that can be piped to the function or script. You can
238-
also include a description of the input objects.
238+
also include a description of the input objects. Repeat this keyword for each
239+
input type.
239240

240-
### .OUTPUTS
241+
### `.OUTPUTS`
241242

242243
The .NET type of the objects that the cmdlet returns. You can also include a
243-
description of the returned objects.
244+
description of the returned objects. Repeat this keyword for each output type.
244245

245-
### .NOTES
246+
### `.NOTES`
246247

247248
Additional information about the function or script.
248249

249-
### .LINK
250+
### `.LINK`
250251

251-
The name of a related topic. The value appears on the line below the ".LINK"
252-
keyword and must be preceded by a comment symbol `#` or included in the
253-
comment block.
254-
255-
Repeat the `.LINK` keyword for each related topic.
256-
257-
This content appears in the Related Links section of the help topic.
252+
The name of a related topic. Repeat this keyword for each related topic. This
253+
content appears in the Related Links section of the Help topic.
258254

259255
The `.LINK` keyword content can also include a Uniform Resource Identifier
260256
(URI) to an online version of the same help topic. The online version opens
261257
when you use the **Online** parameter of `Get-Help`. The URI must begin with
262-
"http" or "https".
258+
`http` or `https`.
263259

264-
### .COMPONENT
260+
### `.COMPONENT`
265261

266262
The name of the technology or feature that the function or script uses, or to
267263
which it's related. The **Component** parameter of `Get-Help` uses this value
268264
to filter the search results returned by `Get-Help`.
269265

270-
### .ROLE
266+
### `.ROLE`
271267

272268
The name of the user role for the help topic. The **Role** parameter of
273269
`Get-Help` uses this value to filter the search results returned by `Get-Help`.
274270

275-
### .FUNCTIONALITY
271+
### `.FUNCTIONALITY`
276272

277273
The keywords that describe the intended use of the function. The
278274
**Functionality** parameter of `Get-Help` uses this value to filter the search
279275
results returned by `Get-Help`.
280276

281-
### .FORWARDHELPTARGETNAME
277+
### `.FORWARDHELPTARGETNAME <Command-Name>`
282278

283279
Redirects to the help topic for the specified command. You can redirect users
284280
to any help topic, including help content for a function, script, cmdlet, or
@@ -288,7 +284,7 @@ provider.
288284
# .FORWARDHELPTARGETNAME <Command-Name>
289285
```
290286

291-
### .FORWARDHELPCATEGORY
287+
### `.FORWARDHELPCATEGORY`
292288

293289
Specifies the help category of the item in `.FORWARDHELPTARGETNAME`. Valid
294290
values are `Alias`, `Cmdlet`, `HelpFile`, `Function`, `Provider`, `General`,
@@ -299,7 +295,7 @@ this keyword to avoid conflicts when there are commands with the same name.
299295
# .FORWARDHELPCATEGORY <Category>
300296
```
301297

302-
### .REMOTEHELPRUNSPACE
298+
### `.REMOTEHELPRUNSPACE <PSSession-variable>`
303299

304300
Specifies a session that contains the help topic. Enter a variable that
305301
contains a **PSSession** object. This keyword is used by the
@@ -310,7 +306,7 @@ commands.
310306
# .REMOTEHELPRUNSPACE <PSSession-variable>
311307
```
312308

313-
### .EXTERNALHELP
309+
### `.EXTERNALHELP`
314310

315311
Specifies an XML-based help file for the script or function.
316312

reference/7.4/Microsoft.PowerShell.Core/Get-Module.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -496,12 +496,9 @@ Accept wildcard characters: False
496496

497497
### -ListAvailable
498498

499-
Indicates that this cmdlet gets all installed modules. `Get-Module` gets modules in paths listed in
500-
the **PSModulePath** environment variable. Without this parameter, `Get-Module` gets only the
501-
modules that are both listed in the **PSModulePath** environment variable, and that are loaded in
502-
the current session. **ListAvailable** does not return information about modules that are not found
503-
in the **PSModulePath** environment variable, even if those modules are loaded in the current
504-
session.
499+
By default, `Get-Module` only returns the modules that have been imported into the current session.
500+
With this parameter the command lists modules installed in any path included in the
501+
`$env:PSModulePath` environment variable.
505502

506503
```yaml
507504
Type: System.Management.Automation.SwitchParameter

reference/7.4/Microsoft.PowerShell.Utility/Get-Random.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ In this example, the **InputObject** parameter specifies an array that contains
266266
Get-Random -InputObject @('a','',$null)
267267
```
268268

269-
`Get-Random` returns either `a`, empty string, or `$null`. The empty sting displays as a blank line
269+
`Get-Random` returns either `a`, empty string, or `$null`. The empty string displays as a blank line
270270
and `$null` returns to a PowerShell prompt.
271271

272272
## PARAMETERS

reference/7.4/Microsoft.PowerShell.Utility/Get-SecureRandom.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ In this example, the **InputObject** parameter specifies an array that contains
205205
Get-SecureRandom -InputObject @('a','',$null)
206206
```
207207

208-
`Get-SecureRandom` returns either `a`, empty string, or `$null`. The empty sting displays as a blank
208+
`Get-SecureRandom` returns either `a`, empty string, or `$null`. The empty string displays as a blank
209209
line and `$null` returns to a PowerShell prompt.
210210

211211
## PARAMETERS

reference/7.5/Microsoft.PowerShell.Core/About/about_Comment_Based_Help.md

Lines changed: 19 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: Describes how to write comment-based help content for functions and scripts.
33
Locale: en-US
4-
ms.date: 01/09/2025
4+
ms.date: 05/21/2025
55
no-loc: [.SYNOPSIS, .DESCRIPTION, .PARAMETER, .EXAMPLE, .INPUTS, .OUTPUTS, .NOTES, .LINK, .COMPONENT, .ROLE, .FUNCTIONALITY, .FORWARDHELPTARGETNAME, .FORWARDHELPCATEGORY, .REMOTEHELPRUNSPACE, .EXTERNALHELP]
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help?view=powershell-7.5&WT.mc_id=ps-gethelp
77
schema: 2.0.0
@@ -227,58 +227,54 @@ function Verb-Noun {
227227
}
228228
```
229229

230-
### .EXAMPLE
230+
### `.EXAMPLE`
231231

232232
A sample command that uses the function or script, optionally followed by
233233
sample output and a description. Repeat this keyword for each example.
234234

235-
### .INPUTS
235+
### `.INPUTS`
236236

237237
The .NET types of objects that can be piped to the function or script. You can
238-
also include a description of the input objects.
238+
also include a description of the input objects. Repeat this keyword for each
239+
input type.
239240

240-
### .OUTPUTS
241+
### `.OUTPUTS`
241242

242243
The .NET type of the objects that the cmdlet returns. You can also include a
243-
description of the returned objects.
244+
description of the returned objects. Repeat this keyword for each output type.
244245

245-
### .NOTES
246+
### `.NOTES`
246247

247248
Additional information about the function or script.
248249

249-
### .LINK
250+
### `.LINK`
250251

251-
The name of a related topic. The value appears on the line below the ".LINK"
252-
keyword and must be preceded by a comment symbol `#` or included in the
253-
comment block.
254-
255-
Repeat the `.LINK` keyword for each related topic.
256-
257-
This content appears in the Related Links section of the help topic.
252+
The name of a related topic. Repeat this keyword for each related topic. This
253+
content appears in the Related Links section of the Help topic.
258254

259255
The `.LINK` keyword content can also include a Uniform Resource Identifier
260256
(URI) to an online version of the same help topic. The online version opens
261257
when you use the **Online** parameter of `Get-Help`. The URI must begin with
262-
"http" or "https".
258+
`http` or `https`.
263259

264-
### .COMPONENT
260+
### `.COMPONENT`
265261

266262
The name of the technology or feature that the function or script uses, or to
267263
which it's related. The **Component** parameter of `Get-Help` uses this value
268264
to filter the search results returned by `Get-Help`.
269265

270-
### .ROLE
266+
### `.ROLE`
271267

272268
The name of the user role for the help topic. The **Role** parameter of
273269
`Get-Help` uses this value to filter the search results returned by `Get-Help`.
274270

275-
### .FUNCTIONALITY
271+
### `.FUNCTIONALITY`
276272

277273
The keywords that describe the intended use of the function. The
278274
**Functionality** parameter of `Get-Help` uses this value to filter the search
279275
results returned by `Get-Help`.
280276

281-
### .FORWARDHELPTARGETNAME
277+
### `.FORWARDHELPTARGETNAME <Command-Name>`
282278

283279
Redirects to the help topic for the specified command. You can redirect users
284280
to any help topic, including help content for a function, script, cmdlet, or
@@ -288,7 +284,7 @@ provider.
288284
# .FORWARDHELPTARGETNAME <Command-Name>
289285
```
290286

291-
### .FORWARDHELPCATEGORY
287+
### `.FORWARDHELPCATEGORY`
292288

293289
Specifies the help category of the item in `.FORWARDHELPTARGETNAME`. Valid
294290
values are `Alias`, `Cmdlet`, `HelpFile`, `Function`, `Provider`, `General`,
@@ -299,7 +295,7 @@ this keyword to avoid conflicts when there are commands with the same name.
299295
# .FORWARDHELPCATEGORY <Category>
300296
```
301297

302-
### .REMOTEHELPRUNSPACE
298+
### `.REMOTEHELPRUNSPACE <PSSession-variable>`
303299

304300
Specifies a session that contains the help topic. Enter a variable that
305301
contains a **PSSession** object. This keyword is used by the
@@ -310,7 +306,7 @@ commands.
310306
# .REMOTEHELPRUNSPACE <PSSession-variable>
311307
```
312308

313-
### .EXTERNALHELP
309+
### `.EXTERNALHELP`
314310

315311
Specifies an XML-based help file for the script or function.
316312

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -496,12 +496,9 @@ Accept wildcard characters: False
496496

497497
### -ListAvailable
498498

499-
Indicates that this cmdlet gets all installed modules. `Get-Module` gets modules in paths listed in
500-
the **PSModulePath** environment variable. Without this parameter, `Get-Module` gets only the
501-
modules that are both listed in the **PSModulePath** environment variable, and that are loaded in
502-
the current session. **ListAvailable** does not return information about modules that are not found
503-
in the **PSModulePath** environment variable, even if those modules are loaded in the current
504-
session.
499+
By default, `Get-Module` only returns the modules that have been imported into the current session.
500+
With this parameter the command lists modules installed in any path included in the
501+
`$env:PSModulePath` environment variable.
505502

506503
```yaml
507504
Type: System.Management.Automation.SwitchParameter

0 commit comments

Comments
 (0)