Updates from: 05/12/2021 03:16:33
Service Microsoft Docs article Related commit history on GitHub Change details
Microsoft.PowerShell.Core About Commonparameters (5.1) https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/5.1/Microsoft.PowerShell.Core/About/about_CommonParameters.md
description: Describes the parameters that can be used with any cmdlet. keywords: powershell,cmdlet Locale: en-US Previously updated : 01/26/2021 Last updated : 05/11/2021 online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters?view=powershell-5.1&WT.mc_id=ps-gethelp schema: 2.0.0 Title: about_CommonParameters
The **Action** parameters are **ActionPreference** type values.
| Name | Value | |------------------|-------|
-| Suspend | 5 |
-| Ignore | 4 |
-| Inquire | 3 |
-| Continue | 2 |
-| Stop | 1 |
-| SilentlyContinue | 0 |
+| `Suspend` | 5 |
+| `Ignore` | 4 |
+| `Inquire` | 3 |
+| `Continue` | 2 |
+| `Stop` | 1 |
+| `SilentlyContinue` | 0 |
You may use the name or the value with the parameter.
to refer to specific warnings stored in the variable.
> [!NOTE] > The warning variable contains all warnings generated by the command, > including warnings from calls to nested functions or scripts.+ ### Risk Management Parameter Descriptions #### WhatIf
Performing operation "Remove File" on Target " C:\ps-test\tmp1.txt
The Confirm response options are as follows:
-|Response |Result |
-|---------------|-----------------------------------------------------------|
-|Yes (Y) |Perform the action. |
-|Yes to All (A) |Perform all actions and suppress subsequent Confirm queries|
-| |for this command. |
-|No (N): |Do not perform the action. |
-|No to All (L): |Do not perform any actions and suppress subsequent Confirm |
-| |queries for this command. |
-|Suspend (S): |Pause the command and create a temporary session. |
-|Help (?) |Display help for these options. |
+| Response | Result |
+| ------------------ | ----------------------------------------------------------- |
+| `Yes` (`Y`) | Perform the action. |
+| `Yes to All` (`A`) | Perform all actions and suppress subsequent Confirm queries |
+| | for this command. |
+| `No` (`N`): | Do not perform the action. |
+| `No to All` (`L`): | Do not perform any actions and suppress subsequent Confirm |
+| | queries for this command. |
+| `Suspend` (`S`): | Pause the command and create a temporary session. |
+| `Help` (`?`) | Display help for these options. |
The **Suspend** option places the command on hold and creates a temporary nested session in which you can work until you're ready to choose a **Confirm**
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. keywords: powershell,cmdlet Locale: en-US Previously updated : 01/26/2021 Last updated : 05/11/2021 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 Title: about_CommonParameters
The **Action** parameters are **ActionPreference** type values.
| Name | Value | |------------------|-------|
-| Suspend | 5 |
-| Ignore | 4 |
-| Inquire | 3 |
-| Continue | 2 |
-| Stop | 1 |
-| SilentlyContinue | 0 |
+| `Suspend` | 5 |
+| `Ignore` | 4 |
+| `Inquire` | 3 |
+| `Continue` | 2 |
+| `Stop` | 1 |
+| `SilentlyContinue` | 0 |
You may use the name or the value with the parameter.
Performing operation "Remove File" on Target " C:\ps-test\tmp1.txt
The Confirm response options are as follows:
-|Response |Result |
-|---------------|-----------------------------------------------------------|
-|Yes (Y) |Perform the action. |
-|Yes to All (A) |Perform all actions and suppress subsequent Confirm queries|
-| |for this command. |
-|No (N): |Do not perform the action. |
-|No to All (L): |Do not perform any actions and suppress subsequent Confirm |
-| |queries for this command. |
-|Suspend (S): |Pause the command and create a temporary session. |
-|Help (?) |Display help for these options. |
+| Response | Result |
+| ------------------ | ----------------------------------------------------------- |
+| `Yes` (`Y`) | Perform the action. |
+| `Yes to All` (`A`) | Perform all actions and suppress subsequent Confirm queries |
+| | for this command. |
+| `No` (`N`): | Do not perform the action. |
+| `No to All` (`L`): | Do not perform any actions and suppress subsequent Confirm |
+| | queries for this command. |
+| `Suspend` (`S`): | Pause the command and create a temporary session. |
+| `Help` (`?`) | Display help for these options. |
The **Suspend** option places the command on hold and creates a temporary nested session in which you can work until you're ready to choose a **Confirm**
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. keywords: powershell,cmdlet Locale: en-US Previously updated : 01/26/2021 Last updated : 05/11/2021 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 Title: about_CommonParameters
The **Action** parameters are **ActionPreference** type values.
| Name | Value | |------------------|-------|
-| Suspend | 5 |
-| Ignore | 4 |
-| Inquire | 3 |
-| Continue | 2 |
-| Stop | 1 |
-| SilentlyContinue | 0 |
+| `Suspend` | 5 |
+| `Ignore` | 4 |
+| `Inquire` | 3 |
+| `Continue` | 2 |
+| `Stop` | 1 |
+| `SilentlyContinue` | 0 |
You may use the name or the value with the parameter.
Performing operation "Remove File" on Target " C:\ps-test\tmp1.txt
The Confirm response options are as follows:
-|Response |Result |
-|---------------|-----------------------------------------------------------|
-|Yes (Y) |Perform the action. |
-|Yes to All (A) |Perform all actions and suppress subsequent Confirm queries|
-| |for this command. |
-|No (N): |Do not perform the action. |
-|No to All (L): |Do not perform any actions and suppress subsequent Confirm |
-| |queries for this command. |
-|Suspend (S): |Pause the command and create a temporary session. |
-|Help (?) |Display help for these options. |
+| Response | Result |
+| ------------------ | ----------------------------------------------------------- |
+| `Yes` (`Y`) | Perform the action. |
+| `Yes to All` (`A`) | Perform all actions and suppress subsequent Confirm queries |
+| | for this command. |
+| `No` (`N`): | Do not perform the action. |
+| `No to All` (`L`): | Do not perform any actions and suppress subsequent Confirm |
+| | queries for this command. |
+| `Suspend` (`S`): | Pause the command and create a temporary session. |
+| `Help` (`?`) | Display help for these options. |
The **Suspend** option places the command on hold and creates a temporary nested session in which you can work until you're ready to choose a **Confirm**
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 : 11/26/2019 Last updated : 05/11/2021 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 Title: about_CommonParameters
The **Action** parameters are **ActionPreference** type values.
| Name | Value | |------------------|-------|
-| Suspend | 5 |
-| Ignore | 4 |
-| Inquire | 3 |
-| Continue | 2 |
-| Stop | 1 |
-| SilentlyContinue | 0 |
+| `Suspend` | 5 |
+| `Ignore` | 4 |
+| `Inquire` | 3 |
+| `Continue` | 2 |
+| `Stop` | 1 |
+| `SilentlyContinue` | 0 |
You may use the name or the value with the parameter.
Performing operation "Remove File" on Target " C:\ps-test\tmp1.txt
The Confirm response options are as follows:
-|Response |Result |
-|---------------|-----------------------------------------------------------|
-|Yes (Y) |Perform the action. |
-|Yes to All (A) |Perform all actions and suppress subsequent Confirm queries|
-| |for this command. |
-|No (N): |Do not perform the action. |
-|No to All (L): |Do not perform any actions and suppress subsequent Confirm |
-| |queries for this command. |
-|Suspend (S): |Pause the command and create a temporary session. |
-|Help (?) |Display help for these options. |
+| Response | Result |
+| ------------------ | ----------------------------------------------------------- |
+| `Yes` (`Y`) | Perform the action. |
+| `Yes to All` (`A`) | Perform all actions and suppress subsequent Confirm queries |
+| | for this command. |
+| `No` (`N`): | Do not perform the action. |
+| `No to All` (`L`): | Do not perform any actions and suppress subsequent Confirm |
+| | queries for this command. |
+| `Suspend` (`S`): | Pause the command and create a temporary session. |
+| `Help` (`?`) | Display help for these options. |
The **Suspend** option places the command on hold and creates a temporary nested session in which you can work until you're ready to choose a **Confirm**
learn Compatibility Aliases https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/docs-conceptual/learn/Compatibility-Aliases.md
+---
Last updated : 08/03/2020
+ Title: Compatibility Aliases
+description: PowerShell has several aliases that allow UNIX and cmd.exe users to use familiar commands.
+---
+# Compatibility Aliases
+
+PowerShell has several aliases that allow **UNIX** and **cmd.exe** users to use familiar commands.
+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)
+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.
+
+```powershell
+Get-Alias -Definition Get-ChildItem
+```
+
+```Output
+CommandType Name
+----------- ----
+Alias dir -> Get-ChildItem
+Alias gci -> Get-ChildItem
+Alias ls -> Get-ChildItem
+```
+
+```powershell
+Get-Alias -Name gci
+```
+
+```Output
+CommandType Name
+----------- ----
+Alias gci -> Get-ChildItem
+```
windows-powershell Creating A Custom Powershell Shortcut https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/docs-conceptual/windows-powershell/install/Creating-a-Custom-PowerShell-Shortcut.md
+---
Last updated : 06/05/2017
+ Title: Creating a Custom PowerShell Shortcut
+description: The following procedure describes how to create a shortcut to Windows PowerShell that has several convenient options customized.
+---
+# Creating a Custom PowerShell Shortcut
+
+The following procedure describes how to create a shortcut to Windows PowerShell that has several
+convenient options customized.
+
+1. Create a shortcut that points to Powershell.exe.
+
+1. Right-click the shortcut, and then click **Properties**.
+
+1. Click the **Options** tab.
+
+1. In the **Edit Options** section, select the **QuickEdit** check box.
+
+ This setting lets you select text in the Windows PowerShell console window by dragging the left
+ mouse button, and it lets you copy text to the clipboard by pressing ENTER or by right-clicking
+ the mouse.
+
+1. In the **Edit Options** section, select the **Insert Mode** check box. This setting lets you
+ right-click in the console window to automatically paste text from the clipboard.
+
+1. In the **Command History** section, type or select a number between 1 and 999 in the **Buffer
+ Size** box. This sets the number of typed commands that will be kept in the console buffer.
+
+1. In the **Command History** section, select the **Discard Old Duplicates** check box to eliminate
+ repeated commands from the console buffer.
+
+1. Click the **Layout** tab.
+
+1. In the **Screen Buffer** section, type a number between 1 and 9999 in the **Height** box. The
+ height represents the number of lines of output that are buffered. This is the maximum number of
+ lines retained for viewing when you scroll through the console window. If this number is lower
+ than the height shown in the **Window size** section, the window size height will automatically
+ be reduced to the same value.
+
+1. In the **Window Size** section, type a number between 1 and 9999 for the width. This represents
+ the number of characters that are displayed across the console window. The default width is 80,
+ and Windows PowerShell's output formatting is designed for this width.
+
+1. If you want to place the console at a particular point on the desktop when it is opened, clear
+ the **Let system position window** check box in the **Window position** section, and then change
+ the values in the **Left** and **Top** boxes in the **Window position** section.
+
+1. Click **OK**.
windows-powershell Other Useful Scripting Objects https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/docs-conceptual/windows-powershell/ise/object-model/Other-Useful-Scripting-Objects.md
+---
Last updated : 06/05/2017
+keywords: powershell,cmdlet
+ Title: Other Useful Scripting Objects
+description: This article describes objects that provide additional scripting functionality in the Windows PowerShell ISE.
+---
+# Other Useful Scripting Objects
+
+The following objects provide additional scripting functionality in Windows PowerShell ISE. They
+are not part of the **$psISE** hierarchy.
+
+## Useful Scripting objects
+
+### $psUnsupportedConsoleApplications
+
+There are some limitations on how Windows PowerShell ISE interacts with console applications. A
+command or an automation script that requires user intervention might not work the way it works
+from the Windows PowerShell console. You might want to block these commands or scripts from running
+in the Windows PowerShell ISE Command pane. The **$psUnsupportedConsoleApplications** object keeps
+a list of such commands. If you try to run the commands in this list, you get a message that they
+are not supported. The following script adds an entry to the list.
+
+```powershell
+# List the unsupported commands
+$psUnsupportedConsoleApplications
+
+# Add a command to this list
+$psUnsupportedConsoleApplications.Add('Mycommand')
+
+# Show the augmented list of commands
+$psUnsupportedConsoleApplications
+```
+
+### $psLocalHelp
+
+This is a dictionary object that maintains a context-sensitive mapping between Help topics and
+their associated links in the local compiled HTML Help file. It is used to locate the local Help
+for a particular topic. You can add or delete topics from this list. The following code example
+shows some example key-value pairs that are contained in `$psLocalHelp`.
+
+```powershell
+# See the local help map
+$psLocalHelp | Format-List
+```
+
+```Output
+Key : Add-Computer
+Value : WindowsPowerShellHelp.chm::/html/093f660c-b8d5-43cf-aa0c-54e5e54e76f9.htm
+
+Key : Add-Content
+Value : WindowsPowerShellHelp.chm::/html/0c836a1b-f389-4e9a-9325-0f415686d194.htm
+```
+
+The following script adds an entry to the list.
+
+```powershell
+$psLocalHelp.Add("get-myNoun", "c:\MyFolder\MyHelpChm.chm::/html/0198854a-1298-57ae-aa0c-87b5e5a84712.htm")
+```
+
+### $psOnlineHelp
+
+This is a dictionary object that maintains a context-sensitive mapping between topic titles of Help
+topics and their associated external URLs. It is used to locate the Help for a particular topic on
+the web. You can add or delete topics from this list.
+
+```powershell
+$psOnlineHelp | Format-List
+```
+
+```Output
+Key : Add-Computer
+Value : https://go.microsoft.com/fwlink/p/?LinkID=135194
+
+Key : Add-Content
+Value : https://go.microsoft.com/fwlink/p/?LinkID=113278
+```
+
+The following script adds an entry to the list.
+
+```powershell
+$psOnlineHelp.Add("get-myNoun", "https://www.mydomain.com/MyNoun.html")
+```
+
+## See Also
+
+[Purpose of the Windows PowerShell ISE Scripting Object Model](./Purpose-of-the-Windows-PowerShell-ISE-Scripting-Object-Model.md)