Updates from: 07/20/2021 03:13:48
Service Microsoft Docs article Related commit history on GitHub Change details
Microsoft.PowerShell.Core About Comparison Operators (5.1) https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/5.1/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md
--- description: Describes the operators that compare values in PowerShell. Locale: en-US Previously updated : 07/06/2021 Last updated : 07/15/2021 online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comparison_operators?view=powershell-5.1&WT.mc_id=ps-gethelp schema: 2.0.0 Title: about Comparison Operators
specified patterns. PowerShell includes the following comparison operators:
## Common features
-By default, all comparison operators are case-insensitive. To make a comparison
+By default, string comparisons are case-insensitive. The equality operators have
+explicit case-sensitive and case-insensitive forms. To make a comparison
operator case-sensitive, add a `c` after the `-`. For example, `-ceq` is the
-case-sensitive version of `-eq`. To make the case-insensitivity explicit,
-add an `i` after `-`. For example, `-ieq` is the explicitly case-insensitive
+case-sensitive version of `-eq`. To make the case-insensitivity explicit, add
+an `i` after `-`. For example, `-ieq` is the explicitly case-insensitive
version of `-eq`. When the input of an operator is a scalar value, the operator returns a
Microsoft.PowerShell.Core About Intrinsic Members (5.1) https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/5.1/Microsoft.PowerShell.Core/About/about_Intrinsic_Members.md
--- description: Describes automatic members in all PowerShell objects Locale: en-US Previously updated : 06/01/2021 Last updated : 07/14/2021 online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_Inrinsic_Members?view=powershell-5.1&WT.mc_id=ps-gethelp schema: 2.0.0 Title: about_Intrinsic_Members
not visible using the `Get-Member -Force` command or tab completion.
The `ForEach()` and `Where()` methods are available to all PowerShell objects. However, they are most useful when working with collections. For more information on how to use these methods, see [about_Arrays](about_Arrays.md).+
+## Properties
+
+### Count and Length
+
+The **Count** and **Length** properties are available to all PowerShell
+objects. These are similar to each other but may work differently depending on
+the data type. For more information about these properties, see [about_Properties](about_Properties.md).
Microsoft.PowerShell.Core About Commonparameters (7.0) https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/7.0/Microsoft.PowerShell.Core/About/about_CommonParameters.md
--- description: Describes the parameters that can be used with any cmdlet. Locale: en-US Previously updated : 05/17/2021 Last updated : 07/13/2021 no-loc: [Debug, Verbose, Confirm] online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters?view=powershell-7&WT.mc_id=ps-gethelp schema: 2.0.0
parentheses.
The **Action** parameters are **ActionPreference** type values. **ActionPreference** is an enumeration with the following values:
-| Name | Value |
-|------------------|-------|
+| Name | Value |
+| ------------------ | ----- |
+| `Break` | 6 |
| `Suspend` | 5 | | `Ignore` | 4 | | `Inquire` | 3 |
such as those from the `Write-Error` cmdlet.
```yaml Type: ActionPreference Aliases: ea
-Accepted values: Suspend, Ignore, Inquire, Continue, Stop, SilentlyContinue
+Accepted values: Break, Suspend, Ignore, Inquire, Continue, Stop, SilentlyContinue
Required: False Position: Named
The **ErrorAction** parameter has no effect on terminating errors (such as
missing data, parameters that aren't valid, or insufficient permissions) that prevent a command from completing successfully.
-`-ErrorAction:Continue` display the error message and continues executing the
+`-ErrorAction:Break` Enters the debugger when an error occurs or an exception
+is raised.
+
+`-ErrorAction:Continue` displays the error message and continues executing the
command. `Continue` is the default. `-ErrorAction:Ignore` suppresses the error message and continues executing the
value of the **InformationAction** parameter. For more information about
```yaml Type: ActionPreference Aliases: ia
-Accepted values: Suspend, Ignore, Inquire, Continue, Stop, SilentlyContinue
+Accepted values: Break, Suspend, Ignore, Inquire, Continue, Stop, SilentlyContinue
Required: False Position: Named
Accept pipeline input: False
Accept wildcard characters: False ```
+`-InformationAction:Break` Enters the debugger at an occurrence of the
+`Write-Information` command.
+ `-InformationAction:Stop` stops a command or script at an occurrence of the `Write-Information` command.
warning message. For example, this parameter works when a command contains the
```yaml Type: ActionPreference Aliases: wa
-Accepted values: Suspend, Ignore, Inquire, Continue, Stop, SilentlyContinue
+Accepted values: Break, Suspend, Ignore, Inquire, Continue, Stop, SilentlyContinue
Required: False Position: Named
value of the `$WarningPreference` variable is **Continue**, warnings are
displayed and execution continues unless you use the **WarningAction** parameter.
+`-WarningAction:Break` enters the debugger when a warning occurs.
+ `-WarningAction:Continue` displays the warning messages and continues executing the command. `Continue` is the default.
Microsoft.PowerShell.Core About Comparison Operators (7.0) https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/7.0/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md
--- description: Describes the operators that compare values in PowerShell. Locale: en-US Previously updated : 07/06/2021 Last updated : 07/15/2021 online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comparison_operators?view=powershell-7&WT.mc_id=ps-gethelp schema: 2.0.0 Title: about Comparison Operators
specified patterns. PowerShell includes the following comparison operators:
## Common features
-By default, all comparison operators are case-insensitive. To make a comparison
+By default, string comparisons are case-insensitive. The equality operators have
+explicit case-sensitive and case-insensitive forms. To make a comparison
operator case-sensitive, add a `c` after the `-`. For example, `-ceq` is the
-case-sensitive version of `-eq`. To make the case-insensitivity explicit,
-add an `i` after `-`. For example, `-ieq` is the explicitly case-insensitive
+case-sensitive version of `-eq`. To make the case-insensitivity explicit, add
+an `i` after `-`. For example, `-ieq` is the explicitly case-insensitive
version of `-eq`. When the input of an operator is a scalar value, the operator returns a
Microsoft.PowerShell.Core About Functions Advanced Parameters (7.0) https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/7.0/Microsoft.PowerShell.Core/About/about_Functions_Advanced_Parameters.md
description: Explains how to add parameters to advanced functions. keywords: powershell,cmdlet Locale: en-US Previously updated : 04/14/2021 Last updated : 07/12/2021 online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_functions_advanced_parameters?view=powershell-7&WT.mc_id=ps-gethelp schema: 2.0.0 Title: about Functions Advanced Parameters
function Test-ArgumentCompleter {
} ```
+## ArgumentCompletions attribute
+
+The **ArgumentCompletions** attribute allows you to add tab completion values
+to a specific parameter. An **ArgumentCompletions** attribute must be defined
+for each parameter that needs tab completion. The **ArgumentCompletions**
+attribute is similar to **ValidateSet**. Both attributes take a list of values
+to be presented when the user presses <kbd>Tab</kbd> after the parameter name.
+However, unlike **ValidateSet**, the values are not validated. Therefore the
+user can supply any value, not just the values in the list.
+
+The **ArgumentCompletions** attribute should not be confused with the
+**ArgumentCompleter** attribute, which needs a scriptblock to define the
+options. the specified values are available
+
+The syntax is as follows:
+
+```powershell
+function Test-ArgumentCompletions {
+ [CmdletBinding()]
+ param (
+ [Parameter(Mandatory=$true)]
+ [ArgumentCompletions('Fruits', 'Vegetables')]
+ $Type,
+
+ [Parameter()]
+ [ArgumentCompletions('Apple', 'Banana', 'Orange')]
+ $Fruit,
+
+ [Parameter()]
+ [ArgumentCompletions('Tomato', 'Corn', 'Squash')]
+ $Vegetable
+ )
+}
+```
+
+Each of the parameters is provided a list of options to the
+**ArgumentCompletions** attribute to enable tab completion.
+
+This attribute was introduced in PowerShell Core 6.0
+ ## See also [about_Automatic_Variables](about_Automatic_Variables.md)
Microsoft.PowerShell.Core About Intrinsic Members (7.0) https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/7.0/Microsoft.PowerShell.Core/About/about_Intrinsic_Members.md
not visible using the `Get-Member -Force` command or tab completion.
The `ForEach()` and `Where()` methods are available to all PowerShell objects. However, they are most useful when working with collections. For more information on how to use these methods, see [about_Arrays](about_Arrays.md).+
+## Properties
+
+### Count and Length
+
+The **Count** and **Length** properties are available to all PowerShell
+objects. These are similar to each other but may work differently depending on
+the data type. For more information about these properties, see [about_Properties](about_Properties.md).
Microsoft.PowerShell.Core About Commonparameters (7.1) https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/7.1/Microsoft.PowerShell.Core/About/about_CommonParameters.md
--- description: Describes the parameters that can be used with any cmdlet. Locale: en-US Previously updated : 05/17/2021 Last updated : 07/13/2021 no-loc: [Debug, Verbose, Confirm] online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters?view=powershell-7.1&WT.mc_id=ps-gethelp schema: 2.0.0
parentheses.
The **Action** parameters are **ActionPreference** type values. **ActionPreference** is an enumeration with the following values:
-| Name | Value |
-|------------------|-------|
+| Name | Value |
+| ------------------ | ----- |
+| `Break` | 6 |
| `Suspend` | 5 | | `Ignore` | 4 | | `Inquire` | 3 |
such as those from the `Write-Error` cmdlet.
```yaml Type: ActionPreference Aliases: ea
-Accepted values: Suspend, Ignore, Inquire, Continue, Stop, SilentlyContinue
+Accepted values: Break, Suspend, Ignore, Inquire, Continue, Stop, SilentlyContinue
Required: False Position: Named
The **ErrorAction** parameter has no effect on terminating errors (such as
missing data, parameters that aren't valid, or insufficient permissions) that prevent a command from completing successfully.
-`-ErrorAction:Continue` display the error message and continues executing the
+`-ErrorAction:Break` Enters the debugger when an error occurs or an exception
+is raised.
+
+`-ErrorAction:Continue` displays the error message and continues executing the
command. `Continue` is the default. `-ErrorAction:Ignore` suppresses the error message and continues executing the
value of the **InformationAction** parameter. For more information about
```yaml Type: ActionPreference Aliases: ia
-Accepted values: Suspend, Ignore, Inquire, Continue, Stop, SilentlyContinue
+Accepted values: Break, Suspend, Ignore, Inquire, Continue, Stop, SilentlyContinue
Required: False Position: Named
Accept pipeline input: False
Accept wildcard characters: False ```
+`-InformationAction:Break` Enters the debugger at an occurrence of the
+`Write-Information` command.
+ `-InformationAction:Stop` stops a command or script at an occurrence of the `Write-Information` command.
warning message. For example, this parameter works when a command contains the
```yaml Type: ActionPreference Aliases: wa
-Accepted values: Suspend, Ignore, Inquire, Continue, Stop, SilentlyContinue
+Accepted values: Break, Suspend, Ignore, Inquire, Continue, Stop, SilentlyContinue
Required: False Position: Named
value of the `$WarningPreference` variable is **Continue**, warnings are
displayed and execution continues unless you use the **WarningAction** parameter.
+`-WarningAction:Break` enters the debugger when a warning occurs.
+ `-WarningAction:Continue` displays the warning messages and continues executing the command. `Continue` is the default.
Microsoft.PowerShell.Core About Comparison Operators (7.1) https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/7.1/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md
--- description: Describes the operators that compare values in PowerShell. Locale: en-US Previously updated : 07/06/2021
-online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comparison_operators?view=powershell-7.1&WT.mc_id=ps-gethelp
Last updated : 07/15/2021
+online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comparison_operators?view=powershell-5.1&WT.mc_id=ps-gethelp
schema: 2.0.0 Title: about Comparison Operators ---
specified patterns. PowerShell includes the following comparison operators:
## Common features
-By default, all comparison operators are case-insensitive. To make a comparison
+By default, string comparisons are case-insensitive. The equality operators have
+explicit case-sensitive and case-insensitive forms. To make a comparison
operator case-sensitive, add a `c` after the `-`. For example, `-ceq` is the
-case-sensitive version of `-eq`. To make the case-insensitivity explicit,
-add an `i` after `-`. For example, `-ieq` is the explicitly case-insensitive
+case-sensitive version of `-eq`. To make the case-insensitivity explicit, add
+an `i` after `-`. For example, `-ieq` is the explicitly case-insensitive
version of `-eq`. When the input of an operator is a scalar value, the operator returns a
Microsoft.PowerShell.Core About Functions Advanced Parameters (7.1) https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/7.1/Microsoft.PowerShell.Core/About/about_Functions_Advanced_Parameters.md
description: Explains how to add parameters to advanced functions. keywords: powershell,cmdlet Locale: en-US Previously updated : 04/14/2021 Last updated : 07/12/2021 online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_functions_advanced_parameters?view=powershell-7.1&WT.mc_id=ps-gethelp schema: 2.0.0 Title: about Functions Advanced Parameters
function Test-ArgumentCompleter {
} ```
+## ArgumentCompletions attribute
+
+The **ArgumentCompletions** attribute allows you to add tab completion values
+to a specific parameter. An **ArgumentCompletions** attribute must be defined
+for each parameter that needs tab completion. The **ArgumentCompletions**
+attribute is similar to **ValidateSet**. Both attributes take a list of values
+to be presented when the user presses <kbd>Tab</kbd> after the parameter name.
+However, unlike **ValidateSet**, the values are not validated. Therefore the
+user can supply any value, not just the values in the list.
+
+The **ArgumentCompletions** attribute should not be confused with the
+**ArgumentCompleter** attribute, which needs a scriptblock to define the
+options. the specified values are available
+
+The syntax is as follows:
+
+```powershell
+function Test-ArgumentCompletions {
+ [CmdletBinding()]
+ param (
+ [Parameter(Mandatory=$true)]
+ [ArgumentCompletions('Fruits', 'Vegetables')]
+ $Type,
+
+ [Parameter()]
+ [ArgumentCompletions('Apple', 'Banana', 'Orange')]
+ $Fruit,
+
+ [Parameter()]
+ [ArgumentCompletions('Tomato', 'Corn', 'Squash')]
+ $Vegetable
+ )
+}
+```
+
+Each of the parameters is provided a list of options to the
+**ArgumentCompletions** attribute to enable tab completion.
+
+This attribute was introduced in PowerShell Core 6.0
+ ## See also [about_Automatic_Variables](about_Automatic_Variables.md)
Microsoft.PowerShell.Core About Intrinsic Members (7.1) https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/7.1/Microsoft.PowerShell.Core/About/about_Intrinsic_Members.md
--- description: Describes automatic members in all PowerShell objects Locale: en-US Previously updated : 06/01/2021 Last updated : 07/14/2021 online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_Inrinsic_Members?view=powershell-7.1&WT.mc_id=ps-gethelp schema: 2.0.0 Title: about_Intrinsic_Members
not visible using the `Get-Member -Force` command or tab completion.
The `ForEach()` and `Where()` methods are available to all PowerShell objects. However, they are most useful when working with collections. For more information on how to use these methods, see [about_Arrays](about_Arrays.md).+
+## Properties
+
+### Count and Length
+
+The **Count** and **Length** properties are available to all PowerShell
+objects. These are similar to each other but may work differently depending on
+the data type. For more information about these properties, see [about_Properties](about_Properties.md).
Microsoft.PowerShell.Core About Commonparameters (7.2) https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/7.2/Microsoft.PowerShell.Core/About/about_CommonParameters.md
--- description: Describes the parameters that can be used with any cmdlet. Locale: en-US Previously updated : 05/17/2021 Last updated : 07/13/2021 no-loc: [Debug, Verbose, Confirm] online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters?view=powershell-7.2&WT.mc_id=ps-gethelp schema: 2.0.0
parentheses.
The **Action** parameters are **ActionPreference** type values. **ActionPreference** is an enumeration with the following values:
-| Name | Value |
-|------------------|-------|
+| Name | Value |
+| ------------------ | ----- |
+| `Break` | 6 |
| `Suspend` | 5 | | `Ignore` | 4 | | `Inquire` | 3 |
such as those from the `Write-Error` cmdlet.
```yaml Type: ActionPreference Aliases: ea
-Accepted values: Suspend, Ignore, Inquire, Continue, Stop, SilentlyContinue
+Accepted values: Break, Suspend, Ignore, Inquire, Continue, Stop, SilentlyContinue
Required: False Position: Named
The **ErrorAction** parameter has no effect on terminating errors (such as
missing data, parameters that aren't valid, or insufficient permissions) that prevent a command from completing successfully.
-`-ErrorAction:Continue` display the error message and continues executing the
+`-ErrorAction:Break` Enters the debugger when an error occurs or an exception
+is raised.
+
+`-ErrorAction:Continue` displays the error message and continues executing the
command. `Continue` is the default. `-ErrorAction:Ignore` suppresses the error message and continues executing the
value of the **InformationAction** parameter. For more information about
```yaml Type: ActionPreference Aliases: ia
-Accepted values: Suspend, Ignore, Inquire, Continue, Stop, SilentlyContinue
+Accepted values: Break, Suspend, Ignore, Inquire, Continue, Stop, SilentlyContinue
Required: False Position: Named
Accept pipeline input: False
Accept wildcard characters: False ```
+`-InformationAction:Break` Enters the debugger at an occurrence of the
+`Write-Information` command.
+ `-InformationAction:Stop` stops a command or script at an occurrence of the `Write-Information` command.
warning message. For example, this parameter works when a command contains the
```yaml Type: ActionPreference Aliases: wa
-Accepted values: Suspend, Ignore, Inquire, Continue, Stop, SilentlyContinue
+Accepted values: Break, Suspend, Ignore, Inquire, Continue, Stop, SilentlyContinue
Required: False Position: Named
value of the `$WarningPreference` variable is **Continue**, warnings are
displayed and execution continues unless you use the **WarningAction** parameter.
+`-WarningAction:Break` enters the debugger when a warning occurs.
+ `-WarningAction:Continue` displays the warning messages and continues executing the command. `Continue` is the default.
Microsoft.PowerShell.Core About Comparison Operators (7.2) https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/7.2/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md
--- description: Describes the operators that compare values in PowerShell. Locale: en-US Previously updated : 07/06/2021 Last updated : 07/15/2021 online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comparison_operators?view=powershell-7.2&WT.mc_id=ps-gethelp schema: 2.0.0 Title: about Comparison Operators
specified patterns. PowerShell includes the following comparison operators:
## Common features
-By default, all comparison operators are case-insensitive. To make a comparison
+By default, string comparisons are case-insensitive. The equality operators have
+explicit case-sensitive and case-insensitive forms. To make a comparison
operator case-sensitive, add a `c` after the `-`. For example, `-ceq` is the
-case-sensitive version of `-eq`. To make the case-insensitivity explicit,
-add an `i` after `-`. For example, `-ieq` is the explicitly case-insensitive
+case-sensitive version of `-eq`. To make the case-insensitivity explicit, add
+an `i` after `-`. For example, `-ieq` is the explicitly case-insensitive
version of `-eq`. When the input of an operator is a scalar value, the operator returns a
Microsoft.PowerShell.Core About Functions Advanced Parameters (7.2) https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/7.2/Microsoft.PowerShell.Core/About/about_Functions_Advanced_Parameters.md
--- description: Explains how to add parameters to advanced functions. Locale: en-US Previously updated : 04/14/2021 Last updated : 07/12/2021 online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_functions_advanced_parameters?view=powershell-7.2&WT.mc_id=ps-gethelp schema: 2.0.0 Title: about Functions Advanced Parameters
function Test-ArgumentCompleter {
} ```
+## ArgumentCompletions attribute
+
+The **ArgumentCompletions** attribute allows you to add tab completion values
+to a specific parameter. An **ArgumentCompletions** attribute must be defined
+for each parameter that needs tab completion. The **ArgumentCompletions**
+attribute is similar to **ValidateSet**. Both attributes take a list of values
+to be presented when the user presses <kbd>Tab</kbd> after the parameter name.
+However, unlike **ValidateSet**, the values are not validated. Therefore the
+user can supply any value, not just the values in the list.
+
+The **ArgumentCompletions** attribute should not be confused with the
+**ArgumentCompleter** attribute, which needs a scriptblock to define the
+options. the specified values are available
+
+The syntax is as follows:
+
+```powershell
+function Test-ArgumentCompletions {
+ [CmdletBinding()]
+ param (
+ [Parameter(Mandatory=$true)]
+ [ArgumentCompletions('Fruits', 'Vegetables')]
+ $Type,
+
+ [Parameter()]
+ [ArgumentCompletions('Apple', 'Banana', 'Orange')]
+ $Fruit,
+
+ [Parameter()]
+ [ArgumentCompletions('Tomato', 'Corn', 'Squash')]
+ $Vegetable
+ )
+}
+```
+
+Each of the parameters is provided a list of options to the
+**ArgumentCompletions** attribute to enable tab completion.
+
+This attribute was introduced in PowerShell Core 6.0
+ ## See also [about_Automatic_Variables](about_Automatic_Variables.md)
Microsoft.PowerShell.Core About Intrinsic Members (7.2) https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/7.2/Microsoft.PowerShell.Core/About/about_Intrinsic_Members.md
--- description: Describes automatic members in all PowerShell objects Locale: en-US Previously updated : 06/01/2021 Last updated : 07/14/2021 online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_Inrinsic_Members?view=powershell-7.2&WT.mc_id=ps-gethelp schema: 2.0.0 Title: about_Intrinsic_Members
not visible using the `Get-Member -Force` command or tab completion.
The `ForEach()` and `Where()` methods are available to all PowerShell objects. However, they are most useful when working with collections. For more information on how to use these methods, see [about_Arrays](about_Arrays.md).+
+## Properties
+
+### Count and Length
+
+The **Count** and **Length** properties are available to all PowerShell
+objects. These are similar to each other but may work differently depending on
+the data type. For more information about these properties, see [about_Properties](about_Properties.md).
lang-spec Chapter 04 https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/docs-conceptual/lang-spec/chapter-04.md
the type object, so object is the ultimate base type of all non-null types. A va
### 4.2.1 Boolean
-The Boolean type is `bool`. There are only two values of this type, Fal****se and **True**,
+The Boolean type is `bool`. There are only two values of this type, **False** and **True**,
represented by the automatic variables `$false` and `$true`, respectively ([§2.3.2.2][]). In PowerShell, `bool` maps to `System.Boolean`.
learn Compatibility Aliases https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/docs-conceptual/learn/Compatibility-Aliases.md
--- Previously updated : 08/03/2020 Last updated : 07/12/2021 Title: Compatibility Aliases description: PowerShell has several aliases that allow UNIX and cmd.exe users to use familiar commands. ---
PowerShell has several aliases that allow **UNIX** and **cmd.exe** users to use
The commands and their related PowerShell cmdlet and PowerShell alias are shown in the following table:
-| cmd.exe command | UNIX command | PowerShell cmdlet | PowerShell alias |
-| ------------------------------------- | ------------ | ----------------- | ---------------- |
-| **cd**, **chdir** | **cd** | `Set-Location` | `sl` |
-| **cls** | **clear** | `Clear-Host` | `cls` |
-| **copy** | **cp** | `Copy-Item` | `cpi` |
-| **del**, **erase**, **rd**, **rmdir** | **rm** | `Remove-Item` | `ri` |
-| **dir** | **ls** | `Get-ChildItem` | `gci` |
-| **echo** | **echo** | `Write-Output` | `write` |
-| **md** | **mkdir** | `New-Item` | `ni` |
-| **move** | **mv** | `Move-Item` | `mi` |
-| **popd** | **popd** | `Pop-Location` | `popd` |
-| **pushd** | **pushd** | `Push-Location` | `pushd` |
-| **ren** | **mv** | `Rename-Item` | `rni` |
-| **type** | **cat** | `Get-Content` | `gc` |
-
-To find the PowerShell aliases, use the [Get-Alias](xref:Microsoft.PowerShell.Utility.Get-Alias)
+| cmd.exe command | UNIX command | PowerShell cmdlet | PowerShell alias |
+| ------------------------------------- | ------------ | ----------------- | ----------------------------------------- |
+| **cd**, **chdir** | **cd** | `Set-Location` | `sl`, `cd`, `chdir` |
+| **cls** | **clear** | `Clear-Host` | `cls` `clear` |
+| **copy** | **cp** | `Copy-Item` | `cpi`, `cp`, `copy` |
+| **del**, **erase**, **rd**, **rmdir** | **rm** | `Remove-Item` | `ri`, `del`, `erase`, `rd`, `rm`, `rmdir` |
+| **dir** | **ls** | `Get-ChildItem` | `gci`, `dir`, `ls` |
+| **echo** | **echo** | `Write-Output` | `write` `echo` |
+| **md** | **mkdir** | `New-Item` | `ni` |
+| **move** | **mv** | `Move-Item` | `mi`, `move`, `mi` |
+| **popd** | **popd** | `Pop-Location` | `popd` |
+| | **pwd** | `Get-Location` | `gl`, `pwd` |
+| **pushd** | **pushd** | `Push-Location` | `pushd` |
+| **ren** | **mv** | `Rename-Item` | `rni`, `ren` |
+| **type** | **cat** | `Get-Content` | `gc`, `cat`, `type` |
+
+To find all PowerShell aliases, use the [Get-Alias](xref:Microsoft.PowerShell.Utility.Get-Alias)
cmdlet. To display a cmdlet's aliases, use the **Definition** parameter and specify the cmdlet name. Or, to find an alias's cmdlet name, use the **Name** parameter and specify the alias.
CommandType Name
----------- ---- Alias gci -> Get-ChildItem ```++
+## See Also
+
+- [about_Aliases](/powershell/module/microsoft.powershell.core/about/about_aliases)
learn Everything About Arrays https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/docs-conceptual/learn/deep-dives/everything-about-arrays.md
--- Title: Everything you wanted to know about arrays description: Arrays are a fundamental language feature of most programming languages. Previously updated : 10/08/2020 Last updated : 07/19/2021 --- # Everything you wanted to know about arrays
for ( $index = 0; $index -lt $data.count; $index++)
The first thing we do is initialize an `$index` to `0`. Then we add the condition that `$index` must be less than `$data.count`. Finally, we specify that every time we loop that me must increase the
-index by `1`. In this case `$index++` is short for `$index = $index + 1`.
+index by `1`. In this case `$index++` is short for `$index = $index + 1`. The
+[format operator](/powershell/module/microsoft.powershell.core/about/about_operators#format-operator--f)
+(`-f`) is used to insert the value of `$data[$index]` in the output string.
Whenever you're using a `for` loop, pay special attention to the condition. I used `$index -lt $data.count` here. It's easy to get the condition slightly wrong to get an off-by-one
learn 08 Powershell Remoting https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/docs-conceptual/learn/ps101/08-powershell-remoting.md
Invoke-Command -ComputerName dc01, sql02, web01 {Get-Service -Name W32time} -Cre
```Output Status Name DisplayName PSComputerName ------ ---- ----------- --------------
-Running W32time Windows Time web01
-Start... W32time Windows Time dc01
-Running W32time Windows Time sql02
+Stopped W32time Windows Time web01
+Stopped W32time Windows Time dc01
+Stopped W32time Windows Time sql02
``` As mentioned in a previous chapter, if a cmdlet exists for accomplishing a task, I recommend using