Skip to content

Commit 52b0d41

Browse files
authored
Merge pull request #11840 from MicrosoftDocs/main
2/24/2025 PM Publish
2 parents aee25a7 + aad2338 commit 52b0d41

File tree

379 files changed

+1103
-1020
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

379 files changed

+1103
-1020
lines changed

.github/actions/.pwsh/module/functions/utility/Get-GHAConsoleError.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
properties to the fully qualified ID, the type of the error, the error message, and the target
77
object (which for GH CLI errors is always the command-line arguments for the failing command).
88
9-
It can retrieve errors from the `$error` variable or act on an input object.
9+
It can retrieve errors from the `$Error` variable or act on an input object.
1010
.PARAMETER Newest
1111
Specifies the number of error records to return, from newest to oldest.
1212
.PARAMETER InputObject
@@ -19,7 +19,7 @@
1919
The cmdlet gets the alternate view for the last error in the session.
2020
.EXAMPLE
2121
```powershell
22-
Get-GHAConsoleError -InputObject $error[0]
22+
Get-GHAConsoleError -InputObject $Error[0]
2323
```
2424
2525
The cmdlet gets the alternate view for the last error in the session.

.github/actions/.pwsh/module/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ This cmdlet returns an alternate view of an error record for the GH CLI. It limi
7878
properties to the fully qualified ID, the type of the error, the error message, and the target
7979
object (which for GH CLI errors is always the command-line arguments for the failing command).
8080

81-
It can retrieve errors from the `$error` variable or act on an input object.
81+
It can retrieve errors from the `$Error` variable or act on an input object.
8282

8383
For more information, review the [source code][utility-Get-GHAConsoleError]
8484

reference/5.1/CimCmdlets/Register-CimIndicationEvent.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,12 @@ Register-CimIndicationEvent -Query $query -SourceIdentifier "Timer"
9494
### Example 3: Run a script when the event arrives
9595

9696
This example shows how to use an action in response to an event. The variable `$action` holds the
97-
script block for **Action**, which uses the `$event` variable to access the event received from CIM.
97+
script block for **Action**, which uses the `$Event` variable to access the event received from CIM.
9898

9999
```powershell
100100
$action = {
101-
$name = $event.SourceEventArgs.NewEvent.ProcessName
102-
$id = $event.SourceEventArgs.NewEvent.ProcessId
101+
$name = $Event.SourceEventArgs.NewEvent.ProcessName
102+
$id = $Event.SourceEventArgs.NewEvent.ProcessId
103103
Write-Host -Object "New Process Started : Name = $name ID = $id"
104104
}
105105
$event = @{

reference/5.1/ISE/Get-IseSnippet.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,14 @@ This example displays the title and description of all snippets in the session,
100100
snippets, user-defined snippets, and imported snippets.
101101

102102
```powershell
103-
$PSISE.CurrentPowerShellTab.Snippets | Format-Table DisplayTitle, Description
103+
$psISE.CurrentPowerShellTab.Snippets | Format-Table DisplayTitle, Description
104104
```
105105

106-
The `$PSISE` variable represents the Windows PowerShell ISE host program. The
107-
**CurrentPowerShellTab** property of the `$PSISE` variable represent the current session. The
106+
The `$psISE` variable represents the Windows PowerShell ISE host program. The
107+
**CurrentPowerShellTab** property of the `$psISE` variable represent the current session. The
108108
**Snippets** property represents snippets in the current session.
109109

110-
The `$PSISE.CurrentPowerShellTab.Snippets` command returns a
110+
The `$psISE.CurrentPowerShellTab.Snippets` command returns a
111111
**Microsoft.PowerShell.Host.ISE.ISESnippet** object that represents a snippet, unlike the
112112
`Get-IseSnippet` cmdlet. `Get-IseSnippet` returns a file object (System.Io.FileInfo) that represents
113113
a snippet file.

reference/5.1/ISE/Import-IseSnippet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ you don't need to run a command like this because modules that have snippets wil
9292
```powershell
9393
($env:PSModulePath).split(";") |
9494
ForEach-Object {dir $_\*\Snippets\*.Snippets.ps1xml -ErrorAction SilentlyContinue} |
95-
ForEach-Object {$psise.CurrentPowerShellTab.Snippets.Load($_)}
95+
ForEach-Object {$psISE.CurrentPowerShellTab.Snippets.Load($_)}
9696
```
9797

9898
### Example 5: Copy all module snippets

reference/5.1/ISE/New-IseSnippet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ For more information about Windows PowerShell execution policies, see
244244
Windows PowerShell ISE.
245245
- To delete a snippet that you added, delete the snippet file.
246246
- You cannot delete a built-in snippet, but you can hide all built-in snippets by using the
247-
"$psise.Options.ShowDefaultSnippets=$false" command.
247+
"$psISE.Options.ShowDefaultSnippets=$false" command.
248248
- You can create a snippet that has the same name as a built-in snippet. Both snippets appear in the
249249
snippet menu in Windows PowerShell ISE.
250250

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ non-zero integer.
205205
### `$foreach`
206206

207207
Contains the enumerator (not the resulting values) of a [ForEach][56] loop. The
208-
`$ForEach` variable exists only while the `ForEach` loop is running; it's
208+
`$foreach` variable exists only while the `ForEach` loop is running; it's
209209
deleted after the loop is completed.
210210

211211
Enumerators contain properties and methods you can use to retrieve loop values

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ You can use this parameter to create a variable that contains only error
202202
messages from specific commands and doesn't affect the behavior of the `$Error`
203203
automatic variable. The `$Error` automatic variable contains error messages
204204
from all the commands in the session. You can use array notation, such as
205-
`$a[0]` or `$error[1,2]` to refer to specific errors stored in the variables.
205+
`$a[0]` or `$Error[1,2]` to refer to specific errors stored in the variables.
206206

207207
> [!NOTE]
208208
> The custom error variable contains all errors generated by the command,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ is limited to the following elements:
4646

4747
- All PowerShell operators, except `-match`
4848
- `If`, `Else`, and `ElseIf` statements
49-
- The following automatic variables: `$PsCulture`, `$PsUICulture`, `$True`,
50-
`$False`, and `$Null`
49+
- The following automatic variables: `$PSCulture`, `$PSUICulture`, `$true`,
50+
`$false`, and `$null`
5151
- Comments
5252
- Pipelines
5353
- Statements separated by semicolons (`;`)

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ for the following automatic variables:
126126

127127
```powershell
128128
$_
129-
$Args
130-
$Input
129+
$args
130+
$input
131131
$MyInvocation
132132
$PSBoundParameters
133133
```
@@ -144,7 +144,7 @@ variable.
144144
For example,
145145

146146
```powershell
147-
$scriptArgs = $Args
147+
$scriptArgs = $args
148148
$scriptname = $MyInvocation.PSCommandPath
149149
```
150150

0 commit comments

Comments
 (0)