Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion reference/5.1/Microsoft.PowerShell.Utility/Out-File.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ function DemoDefaultOutFileWidth() {
try {
$PSDefaultParameterValues['out-file:width'] = 2000

$logFile = "$pwd\logfile.txt"
$logFile = "$PWD\logfile.txt"

Get-ChildItem Env:\ > $logFile

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Register-EngineEvent -SourceIdentifier MyEventSource -Action {
}

Start-Job -Name TestJob -ScriptBlock {
While ($True) {
While ($true) {
Register-EngineEvent -SourceIdentifier MyEventSource -Forward
Start-Sleep -seconds 2
"Doing some work..."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function Enable-ProcessCreationEvent {
EventName = 'EventArrived'
SourceIdentifier = 'WMI.ProcessCreated'
MessageData = 'Test'
Forward = $True
Forward = $true
}
Register-ObjectEvent @objectEventArgs
}
Expand Down Expand Up @@ -141,7 +141,7 @@ variable.
```powershell
$Timer = New-Object Timers.Timer
$Timer.Interval = 500
$Timer.Enabled = $True
$Timer.Enabled = $true
$objectEventArgs = @{
InputObject = $Timer
EventName = 'Elapsed'
Expand Down
6 changes: 3 additions & 3 deletions reference/5.1/Microsoft.PowerShell.Utility/Select-Xml.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ the XPath statement from the `Types.ps1xml` file. The command uses a pipeline op
**Node** object and returns its **Name** and **ReferencedMemberName** properties.

```powershell
$Path = "$Pshome\Types.ps1xml"
$Path = "$PSHOME\Types.ps1xml"
$XPath = "/Types/Type/Members/AliasProperty"
Select-Xml -Path $Path -XPath $Xpath | Select-Object -ExpandProperty Node
```
Expand Down Expand Up @@ -103,7 +103,7 @@ the **Xml** parameter to specify the XML content in the `$Types` variable and th
parameter to specify the path to the **MethodName** node.

```powershell
[xml]$Types = Get-Content $Pshome\Types.ps1xml
[xml]$Types = Get-Content $PSHOME\Types.ps1xml
Select-Xml -Xml $Types -XPath "//MethodName"
```

Expand Down Expand Up @@ -138,7 +138,7 @@ $Namespace = @{
dev = "http://schemas.microsoft.com/maml/dev/2004/10"
}

$Path = "$Pshome\en-us\*dll-Help.xml"
$Path = "$PSHOME\en-us\*dll-Help.xml"
$Xml = Select-Xml -Path $Path -Namespace $Namespace -XPath "//command:name"
$Xml | Format-Table @{Label="Name"; Expression= {($_.node.innerxml).trim()}}, Path -AutoSize
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ the **Height**, **Width**, and **ErrorPopup** parameters of the `Show-Command` c
$PSDefaultParameterValues = @{
"Show-Command:Height" = 700
"Show-Command:Width" = 1000
"Show-Command:ErrorPopup" = $True
"Show-Command:ErrorPopup" = $true
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ hash table to specify the property names and sort orders. The **Property** param
two properties, **Status** in descending order and **DisplayName** in ascending order.

**Status** is an enumerated property. **Stopped** has a value of **1** and **Running** has a value
of **4**. The **Descending** parameter is set to `$True` so that **Running** processes are displayed
of **4**. The **Descending** parameter is set to `$true` so that **Running** processes are displayed
before **Stopped** processes. **DisplayName** sets the **Descending** parameter to `$false` to sort
the display names in alphabetical order.

Expand Down
4 changes: 2 additions & 2 deletions reference/5.1/Microsoft.PowerShell.Utility/Trace-Command.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ processes a `Get-Alias` expression that takes input from the pipeline.

```powershell
$A = "i*"
Trace-Command ParameterBinding {Get-Alias $Input} -PSHost -InputObject $A
Trace-Command ParameterBinding {Get-Alias $input} -PSHost -InputObject $A
```

In `Trace-Command`, the **InputObject** parameter passes an object to the expression that's being
Expand All @@ -71,7 +71,7 @@ The first command stores the string `i*` in the `$A` variable. The second comman
`Trace-Command` cmdlet with the ParameterBinding trace source. The **PSHost** parameter sends the
output to the console.

The expression being processed is `Get-Alias $Input`, where the `$Input` variable is associated with
The expression being processed is `Get-Alias $input`, where the `$input` variable is associated with
the **InputObject** parameter. The **InputObject** parameter passes the variable `$A` to the
expression. In effect, the command being processed during the trace is
`Get-Alias -InputObject $A" or "$A | Get-Alias`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -492,11 +492,11 @@ Accept wildcard characters: False
### -InheritPropertySerializationSet

Indicates whether the set of properties that are serialized is inherited. The default value is
`$Null`. The acceptable values for this parameter are:
`$null`. The acceptable values for this parameter are:

- `$True`. The property set is inherited.
- `$true`. The property set is inherited.
- `$false`. The property set is not inherited.
- `$Null`. Inheritance is not defined.
- `$null`. Inheritance is not defined.

This parameter is valid only when the value of the **SerializationMethod** parameter is
`SpecificProperties`. When the value of this parameter is `$false`, the **PropertySerializationSet**
Expand Down
2 changes: 1 addition & 1 deletion reference/5.1/Microsoft.PowerShell.Utility/Wait-Event.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ $objectEventArgs = @{
Register-ObjectEvent @objectEventArgs
$Timer.Interval = 2000
$Timer.Autoreset = $false
$Timer.Enabled = $True
$Timer.Enabled = $true
Wait-Event Timer.Elapsed
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ the WSMan provider must be set to true.

```powershell
Connect-WSMan -ComputerName "server02"
Set-Item -Path "WSMan:\server02\service\auth\credSSP" -Value $True
Set-Item -Path "WSMan:\server02\service\auth\credSSP" -Value $true
```

`Connect-WSMan` creates a connection to the remote computer, server02. `Set-Item` uses the **Path**
Expand Down
2 changes: 1 addition & 1 deletion reference/7.4/Microsoft.PowerShell.Utility/Out-File.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ function DemoDefaultOutFileWidth() {
try {
$PSDefaultParameterValues['out-file:width'] = 2000

$logFile = "$pwd\logfile.txt"
$logFile = "$PWD\logfile.txt"

Get-ChildItem Env:\ > $logFile

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Register-EngineEvent -SourceIdentifier MyEventSource -Action {
}

Start-Job -Name TestJob -ScriptBlock {
While ($True) {
While ($true) {
Register-EngineEvent -SourceIdentifier MyEventSource -Forward
Start-Sleep -seconds 2
"Doing some work..."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function Enable-ProcessCreationEvent {
EventName = 'EventArrived'
SourceIdentifier = 'WMI.ProcessCreated'
MessageData = 'Test'
Forward = $True
Forward = $true
}
Register-ObjectEvent @objectEventArgs
}
Expand Down Expand Up @@ -141,7 +141,7 @@ variable.
```powershell
$Timer = New-Object Timers.Timer
$Timer.Interval = 500
$Timer.Enabled = $True
$Timer.Enabled = $true
$objectEventArgs = @{
InputObject = $Timer
EventName = 'Elapsed'
Expand Down
6 changes: 3 additions & 3 deletions reference/7.4/Microsoft.PowerShell.Utility/Select-Xml.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ the XPath statement from the `Types.ps1xml` file. The command uses a pipeline op
**Node** object and returns its **Name** and **ReferencedMemberName** properties.

```powershell
$Path = "$Pshome\Types.ps1xml"
$Path = "$PSHOME\Types.ps1xml"
$XPath = "/Types/Type/Members/AliasProperty"
Select-Xml -Path $Path -XPath $Xpath | Select-Object -ExpandProperty Node
```
Expand Down Expand Up @@ -103,7 +103,7 @@ the **Xml** parameter to specify the XML content in the `$Types` variable and th
parameter to specify the path to the **MethodName** node.

```powershell
[xml]$Types = Get-Content $Pshome\Types.ps1xml
[xml]$Types = Get-Content $PSHOME\Types.ps1xml
Select-Xml -Xml $Types -XPath "//MethodName"
```

Expand Down Expand Up @@ -138,7 +138,7 @@ $Namespace = @{
dev = "http://schemas.microsoft.com/maml/dev/2004/10"
}

$Path = "$Pshome\en-us\*dll-Help.xml"
$Path = "$PSHOME\en-us\*dll-Help.xml"
$Xml = Select-Xml -Path $Path -Namespace $Namespace -XPath "//command:name"
$Xml | Format-Table @{Label="Name"; Expression= {($_.node.innerxml).trim()}}, Path -AutoSize
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ the **Height**, **Width**, and **ErrorPopup** parameters of the `Show-Command` c
$PSDefaultParameterValues = @{
"Show-Command:Height" = 700
"Show-Command:Width" = 1000
"Show-Command:ErrorPopup" = $True
"Show-Command:ErrorPopup" = $true
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ hash table to specify the property names and sort orders. The **Property** param
two properties, **Status** in descending order and **DisplayName** in ascending order.

**Status** is an enumerated property. **Stopped** has a value of **1** and **Running** has a value
of **4**. The **Descending** parameter is set to `$True` so that **Running** processes are displayed
of **4**. The **Descending** parameter is set to `$true` so that **Running** processes are displayed
before **Stopped** processes. **DisplayName** sets the **Descending** parameter to `$false` to sort
the display names in alphabetical order.

Expand Down
4 changes: 2 additions & 2 deletions reference/7.4/Microsoft.PowerShell.Utility/Trace-Command.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ processes a `Get-Alias` expression that takes input from the pipeline.

```powershell
$A = "i*"
Trace-Command ParameterBinding {Get-Alias $Input} -PSHost -InputObject $A
Trace-Command ParameterBinding {Get-Alias $input} -PSHost -InputObject $A
```

In `Trace-Command`, the **InputObject** parameter passes an object to the expression that's being
Expand All @@ -71,7 +71,7 @@ The first command stores the string `i*` in the `$A` variable. The second comman
`Trace-Command` cmdlet with the ParameterBinding trace source. The **PSHost** parameter sends the
output to the console.

The expression being processed is `Get-Alias $Input`, where the `$Input` variable is associated with
The expression being processed is `Get-Alias $input`, where the `$input` variable is associated with
the **InputObject** parameter. The **InputObject** parameter passes the variable `$A` to the
expression. In effect, the command being processed during the trace is
`Get-Alias -InputObject $A" or "$A | Get-Alias`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -500,11 +500,11 @@ Accept wildcard characters: False
### -InheritPropertySerializationSet

Indicates whether the set of properties that are serialized is inherited. The default value is
`$Null`. The acceptable values for this parameter are:
`$null`. The acceptable values for this parameter are:

- `$True`. The property set is inherited.
- `$true`. The property set is inherited.
- `$false`. The property set is not inherited.
- `$Null`. Inheritance is not defined.
- `$null`. Inheritance is not defined.

This parameter is valid only when the value of the **SerializationMethod** parameter is
`SpecificProperties`. When the value of this parameter is `$false`, the **PropertySerializationSet**
Expand Down
2 changes: 1 addition & 1 deletion reference/7.4/Microsoft.PowerShell.Utility/Wait-Event.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ $objectEventArgs = @{
Register-ObjectEvent @objectEventArgs
$Timer.Interval = 2000
$Timer.Autoreset = $false
$Timer.Enabled = $True
$Timer.Enabled = $true
Wait-Event Timer.Elapsed
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ the WSMan provider must be set to true.

```powershell
Connect-WSMan -ComputerName "server02"
Set-Item -Path "WSMan:\server02\service\auth\credSSP" -Value $True
Set-Item -Path "WSMan:\server02\service\auth\credSSP" -Value $true
```

`Connect-WSMan` creates a connection to the remote computer, server02. `Set-Item` uses the **Path**
Expand Down
2 changes: 1 addition & 1 deletion reference/7.5/Microsoft.PowerShell.Utility/Out-File.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ function DemoDefaultOutFileWidth() {
try {
$PSDefaultParameterValues['out-file:width'] = 2000

$logFile = "$pwd\logfile.txt"
$logFile = "$PWD\logfile.txt"

Get-ChildItem Env:\ > $logFile

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Register-EngineEvent -SourceIdentifier MyEventSource -Action {
}

Start-Job -Name TestJob -ScriptBlock {
While ($True) {
While ($true) {
Register-EngineEvent -SourceIdentifier MyEventSource -Forward
Start-Sleep -seconds 2
"Doing some work..."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function Enable-ProcessCreationEvent {
EventName = 'EventArrived'
SourceIdentifier = 'WMI.ProcessCreated'
MessageData = 'Test'
Forward = $True
Forward = $true
}
Register-ObjectEvent @objectEventArgs
}
Expand Down Expand Up @@ -141,7 +141,7 @@ variable.
```powershell
$Timer = New-Object Timers.Timer
$Timer.Interval = 500
$Timer.Enabled = $True
$Timer.Enabled = $true
$objectEventArgs = @{
InputObject = $Timer
EventName = 'Elapsed'
Expand Down
6 changes: 3 additions & 3 deletions reference/7.5/Microsoft.PowerShell.Utility/Select-Xml.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ the XPath statement from the `Types.ps1xml` file. The command uses a pipeline op
**Node** object and returns its **Name** and **ReferencedMemberName** properties.

```powershell
$Path = "$Pshome\Types.ps1xml"
$Path = "$PSHOME\Types.ps1xml"
$XPath = "/Types/Type/Members/AliasProperty"
Select-Xml -Path $Path -XPath $Xpath | Select-Object -ExpandProperty Node
```
Expand Down Expand Up @@ -103,7 +103,7 @@ the **Xml** parameter to specify the XML content in the `$Types` variable and th
parameter to specify the path to the **MethodName** node.

```powershell
[xml]$Types = Get-Content $Pshome\Types.ps1xml
[xml]$Types = Get-Content $PSHOME\Types.ps1xml
Select-Xml -Xml $Types -XPath "//MethodName"
```

Expand Down Expand Up @@ -138,7 +138,7 @@ $Namespace = @{
dev = "http://schemas.microsoft.com/maml/dev/2004/10"
}

$Path = "$Pshome\en-us\*dll-Help.xml"
$Path = "$PSHOME\en-us\*dll-Help.xml"
$Xml = Select-Xml -Path $Path -Namespace $Namespace -XPath "//command:name"
$Xml | Format-Table @{Label="Name"; Expression= {($_.Node.InnerXml).trim()}}, Path -AutoSize
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ the **Height**, **Width**, and **ErrorPopup** parameters of the `Show-Command` c
$PSDefaultParameterValues = @{
"Show-Command:Height" = 700
"Show-Command:Width" = 1000
"Show-Command:ErrorPopup" = $True
"Show-Command:ErrorPopup" = $true
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ hash table to specify the property names and sort orders. The **Property** param
two properties, **Status** in descending order and **DisplayName** in ascending order.

**Status** is an enumerated property. **Stopped** has a value of **1** and **Running** has a value
of **4**. The **Descending** parameter is set to `$True` so that **Running** processes are displayed
of **4**. The **Descending** parameter is set to `$true` so that **Running** processes are displayed
before **Stopped** processes. **DisplayName** sets the **Descending** parameter to `$false` to sort
the display names in alphabetical order.

Expand Down
4 changes: 2 additions & 2 deletions reference/7.5/Microsoft.PowerShell.Utility/Trace-Command.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ processes a `Get-Alias` expression that takes input from the pipeline.

```powershell
$A = "i*"
Trace-Command ParameterBinding {Get-Alias $Input} -PSHost -InputObject $A
Trace-Command ParameterBinding {Get-Alias $input} -PSHost -InputObject $A
```

In `Trace-Command`, the **InputObject** parameter passes an object to the expression that's being
Expand All @@ -71,7 +71,7 @@ The first command stores the string `i*` in the `$A` variable. The second comman
`Trace-Command` cmdlet with the ParameterBinding trace source. The **PSHost** parameter sends the
output to the console.

The expression being processed is `Get-Alias $Input`, where the `$Input` variable is associated with
The expression being processed is `Get-Alias $input`, where the `$input` variable is associated with
the **InputObject** parameter. The **InputObject** parameter passes the variable `$A` to the
expression. In effect, the command being processed during the trace is
`Get-Alias -InputObject $A" or "$A | Get-Alias`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -500,11 +500,11 @@ Accept wildcard characters: False
### -InheritPropertySerializationSet

Indicates whether the set of properties that are serialized is inherited. The default value is
`$Null`. The acceptable values for this parameter are:
`$null`. The acceptable values for this parameter are:

- `$True`. The property set is inherited.
- `$true`. The property set is inherited.
- `$false`. The property set is not inherited.
- `$Null`. Inheritance is not defined.
- `$null`. Inheritance is not defined.

This parameter is valid only when the value of the **SerializationMethod** parameter is
`SpecificProperties`. When the value of this parameter is `$false`, the **PropertySerializationSet**
Expand Down
2 changes: 1 addition & 1 deletion reference/7.5/Microsoft.PowerShell.Utility/Wait-Event.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ $objectEventArgs = @{
Register-ObjectEvent @objectEventArgs
$Timer.Interval = 2000
$Timer.AutoReset = $false
$Timer.Enabled = $True
$Timer.Enabled = $true
Wait-Event Timer.Elapsed
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ the WSMan provider must be set to true.

```powershell
Connect-WSMan -ComputerName "server02"
Set-Item -Path "WSMan:\server02\service\auth\credSSP" -Value $True
Set-Item -Path "WSMan:\server02\service\auth\credSSP" -Value $true
```

`Connect-WSMan` creates a connection to the remote computer, server02. `Set-Item` uses the **Path**
Expand Down
Loading