diff --git a/reference/5.1/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md b/reference/5.1/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md index f26bb1eff49a..490b239f0442 100644 --- a/reference/5.1/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md +++ b/reference/5.1/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md @@ -1,7 +1,7 @@ --- description: Describes the operators that compare values in PowerShell. Locale: en-US -ms.date: 01/19/2025 +ms.date: 04/30/2025 online version: https://learn.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 @@ -36,8 +36,8 @@ specified patterns. PowerShell includes the following comparison operators: **Replacement** -- `-replace`, `-ireplace`, `-creplace` - replaces strings matching a regex - pattern +- `-replace`, `-ireplace`, `-creplace` - finds and replaces strings matching a + regex pattern **Containment** diff --git a/reference/5.1/Microsoft.PowerShell.Core/About/about_Operators.md b/reference/5.1/Microsoft.PowerShell.Core/About/about_Operators.md index 2245be04b7d8..f06b0339dcee 100644 --- a/reference/5.1/Microsoft.PowerShell.Core/About/about_Operators.md +++ b/reference/5.1/Microsoft.PowerShell.Core/About/about_Operators.md @@ -1,7 +1,7 @@ --- description: Describes the operators that are supported by PowerShell. Locale: en-US -ms.date: 09/03/2024 +ms.date: 04/30/2025 online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_operators?view=powershell-5.1&WT.mc_id=ps-gethelp schema: 2.0.0 title: about_Operators @@ -9,6 +9,7 @@ title: about_Operators # about_Operators ## Short description + Describes the operators that are supported by PowerShell. ## Long description @@ -49,7 +50,7 @@ determine whether they're equal. The comparison operators also include operators that find or replace patterns in text. The (`-match`, `-notmatch`, `-replace`) operators use regular -expressions, and (`-like`, `-notlike`) use wildcards `*`. +expressions, and (`-like`, `-notlike`) use wildcards like `*`. Containment comparison operators determine whether a test value appears in a reference set (`-in`, `-notin`, `-contains`, `-notcontains`). diff --git a/reference/5.1/Microsoft.PowerShell.Utility/Get-Date.md b/reference/5.1/Microsoft.PowerShell.Utility/Get-Date.md index a7020bcd8415..9ca2132c9729 100644 --- a/reference/5.1/Microsoft.PowerShell.Utility/Get-Date.md +++ b/reference/5.1/Microsoft.PowerShell.Utility/Get-Date.md @@ -2,7 +2,7 @@ external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml Locale: en-US Module Name: Microsoft.PowerShell.Utility -ms.date: 03/19/2024 +ms.date: 04/30/2025 online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/get-date?view=powershell-5.1&WT.mc_id=ps-gethelp schema: 2.0.0 title: Get-Date @@ -548,7 +548,7 @@ The valid **UFormat specifiers** are displayed in the following table: | `%u` | Day of the week - number | Sunday = 0 | | `%V` | Week of the year | 01-53 | | `%w` | Same as 'u' | | -| `%W` | Week of the year | 00-52 | +| `%W` | Week of the year | 1-53 | | `%X` | Same as 'T' | | | `%x` | Date in standard format for locale | 06/27/19 for English-US | | `%Y` | Year in 4-digit format | 2019 | diff --git a/reference/7.4/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md b/reference/7.4/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md index 4fc2b5631f81..cd220da23614 100644 --- a/reference/7.4/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md +++ b/reference/7.4/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md @@ -1,7 +1,7 @@ --- description: Describes the operators that compare values in PowerShell. Locale: en-US -ms.date: 01/19/2025 +ms.date: 04/30/2025 online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comparison_operators?view=powershell-7.4&WT.mc_id=ps-gethelp schema: 2.0.0 title: about_Comparison_Operators @@ -36,8 +36,8 @@ specified patterns. PowerShell includes the following comparison operators: **Replacement** -- `-replace`, `-ireplace`, `-creplace` - replaces strings matching a regex - pattern +- `-replace`, `-ireplace`, `-creplace` - finds and replaces strings matching a + regex pattern **Containment** diff --git a/reference/7.4/Microsoft.PowerShell.Core/About/about_Operators.md b/reference/7.4/Microsoft.PowerShell.Core/About/about_Operators.md index b295d8544efd..95f5d709a96e 100644 --- a/reference/7.4/Microsoft.PowerShell.Core/About/about_Operators.md +++ b/reference/7.4/Microsoft.PowerShell.Core/About/about_Operators.md @@ -1,7 +1,7 @@ --- description: Describes the operators that are supported by PowerShell. Locale: en-US -ms.date: 09/03/2024 +ms.date: 04/30/2025 online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_operators?view=powershell-7.4&WT.mc_id=ps-gethelp schema: 2.0.0 title: about_Operators @@ -50,7 +50,7 @@ determine whether they're equal. The comparison operators also include operators that find or replace patterns in text. The (`-match`, `-notmatch`, `-replace`) operators use regular -expressions, and (`-like`, `-notlike`) use wildcards `*`. +expressions, and (`-like`, `-notlike`) use wildcards like `*`. Containment comparison operators determine whether a test value appears in a reference set (`-in`, `-notin`, `-contains`, `-notcontains`). diff --git a/reference/7.4/Microsoft.PowerShell.Utility/Get-Date.md b/reference/7.4/Microsoft.PowerShell.Utility/Get-Date.md index 290c56db8a6f..262127591202 100644 --- a/reference/7.4/Microsoft.PowerShell.Utility/Get-Date.md +++ b/reference/7.4/Microsoft.PowerShell.Utility/Get-Date.md @@ -2,7 +2,7 @@ external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml Locale: en-US Module Name: Microsoft.PowerShell.Utility -ms.date: 03/19/2024 +ms.date: 04/30/2025 online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/get-date?view=powershell-7.4&WT.mc_id=ps-gethelp schema: 2.0.0 title: Get-Date @@ -649,7 +649,7 @@ The valid **UFormat specifiers** are displayed in the following table: | `%u` | Numeric day of the week (1-7) (Changed in PowerShell 7.2) | Monday = 1, Sunday = 7 | | `%V` | Week of the year | 01-53 | | `%w` | Numeric day of the week (0-6) | Sunday = 0, Saturday = 6 | -| `%W` | Week of the year | 00-52 | +| `%W` | Week of the year | 1-53 | | `%X` | Same as 'T' | | | `%x` | Date in standard format for locale | 06/27/19 for English-US | | `%Y` | Year in 4-digit format | 2019 | diff --git a/reference/7.5/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md b/reference/7.5/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md index 3deda395730f..1f99dc7c1662 100644 --- a/reference/7.5/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md +++ b/reference/7.5/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md @@ -1,7 +1,7 @@ --- description: Describes the operators that compare values in PowerShell. Locale: en-US -ms.date: 01/19/2025 +ms.date: 04/30/2025 online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comparison_operators?view=powershell-7.5&WT.mc_id=ps-gethelp schema: 2.0.0 title: about_Comparison_Operators @@ -36,8 +36,8 @@ specified patterns. PowerShell includes the following comparison operators: **Replacement** -- `-replace`, `-ireplace`, `-creplace` - replaces strings matching a regex - pattern +- `-replace`, `-ireplace`, `-creplace` - finds and replaces strings matching a + regex pattern **Containment** diff --git a/reference/7.5/Microsoft.PowerShell.Core/About/about_Operators.md b/reference/7.5/Microsoft.PowerShell.Core/About/about_Operators.md index 09f115e12d0f..3a0cfba251db 100644 --- a/reference/7.5/Microsoft.PowerShell.Core/About/about_Operators.md +++ b/reference/7.5/Microsoft.PowerShell.Core/About/about_Operators.md @@ -1,7 +1,7 @@ --- description: Describes the operators that are supported by PowerShell. Locale: en-US -ms.date: 09/03/2024 +ms.date: 04/30/2025 online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_operators?view=powershell-7.5&WT.mc_id=ps-gethelp schema: 2.0.0 title: about_Operators @@ -50,7 +50,7 @@ determine whether they're equal. The comparison operators also include operators that find or replace patterns in text. The (`-match`, `-notmatch`, `-replace`) operators use regular -expressions, and (`-like`, `-notlike`) use wildcards `*`. +expressions, and (`-like`, `-notlike`) use wildcards like `*`. Containment comparison operators determine whether a test value appears in a reference set (`-in`, `-notin`, `-contains`, `-notcontains`). diff --git a/reference/7.5/Microsoft.PowerShell.Utility/Get-Date.md b/reference/7.5/Microsoft.PowerShell.Utility/Get-Date.md index 45bb22982427..06232e579b94 100644 --- a/reference/7.5/Microsoft.PowerShell.Utility/Get-Date.md +++ b/reference/7.5/Microsoft.PowerShell.Utility/Get-Date.md @@ -2,7 +2,7 @@ external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml Locale: en-US Module Name: Microsoft.PowerShell.Utility -ms.date: 03/19/2024 +ms.date: 04/30/2025 online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/get-date?view=powershell-7.5&WT.mc_id=ps-gethelp schema: 2.0.0 title: Get-Date @@ -649,7 +649,7 @@ The valid **UFormat specifiers** are displayed in the following table: | `%u` | Numeric day of the week (1-7) (Changed in PowerShell 7.2) | Monday = 1, Sunday = 7 | | `%V` | Week of the year | 01-53 | | `%w` | Numeric day of the week (0-6) | Sunday = 0, Saturday = 6 | -| `%W` | Week of the year | 00-52 | +| `%W` | Week of the year | 1-53 | | `%X` | Same as 'T' | | | `%x` | Date in standard format for locale | 06/27/19 for English-US | | `%Y` | Year in 4-digit format | 2019 | diff --git a/reference/7.6/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md b/reference/7.6/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md index 7b32b0890708..383d8d622792 100644 --- a/reference/7.6/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md +++ b/reference/7.6/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md @@ -1,7 +1,7 @@ --- description: Describes the operators that compare values in PowerShell. Locale: en-US -ms.date: 01/19/2025 +ms.date: 04/30/2025 online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comparison_operators?view=powershell-7.6&WT.mc_id=ps-gethelp schema: 2.0.0 title: about_Comparison_Operators @@ -36,8 +36,8 @@ specified patterns. PowerShell includes the following comparison operators: **Replacement** -- `-replace`, `-ireplace`, `-creplace` - replaces strings matching a regex - pattern +- `-replace`, `-ireplace`, `-creplace` - finds and replaces strings matching a + regex pattern **Containment** diff --git a/reference/7.6/Microsoft.PowerShell.Core/About/about_Operators.md b/reference/7.6/Microsoft.PowerShell.Core/About/about_Operators.md index dbbb33bb361f..8eb9cccf6814 100644 --- a/reference/7.6/Microsoft.PowerShell.Core/About/about_Operators.md +++ b/reference/7.6/Microsoft.PowerShell.Core/About/about_Operators.md @@ -1,7 +1,7 @@ --- description: Describes the operators that are supported by PowerShell. Locale: en-US -ms.date: 09/03/2024 +ms.date: 04/30/2025 online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_operators?view=powershell-7.6&WT.mc_id=ps-gethelp schema: 2.0.0 title: about_Operators @@ -50,7 +50,7 @@ determine whether they're equal. The comparison operators also include operators that find or replace patterns in text. The (`-match`, `-notmatch`, `-replace`) operators use regular -expressions, and (`-like`, `-notlike`) use wildcards `*`. +expressions, and (`-like`, `-notlike`) use wildcards like `*`. Containment comparison operators determine whether a test value appears in a reference set (`-in`, `-notin`, `-contains`, `-notcontains`). diff --git a/reference/7.6/Microsoft.PowerShell.Utility/Get-Date.md b/reference/7.6/Microsoft.PowerShell.Utility/Get-Date.md index 29aaf10c6f35..537955d0d986 100644 --- a/reference/7.6/Microsoft.PowerShell.Utility/Get-Date.md +++ b/reference/7.6/Microsoft.PowerShell.Utility/Get-Date.md @@ -649,7 +649,7 @@ The valid **UFormat specifiers** are displayed in the following table: | `%u` | Numeric day of the week (1-7) (Changed in PowerShell 7.2) | Monday = 1, Sunday = 7 | | `%V` | Week of the year | 01-53 | | `%w` | Numeric day of the week (0-6) | Sunday = 0, Saturday = 6 | -| `%W` | Week of the year | 00-52 | +| `%W` | Week of the year | 1-53 | | `%X` | Same as 'T' | | | `%x` | Date in standard format for locale | 06/27/19 for English-US | | `%Y` | Year in 4-digit format | 2019 | diff --git a/reference/docs-conceptual/learn/deep-dives/output-missing-from-transcript.md b/reference/docs-conceptual/learn/deep-dives/output-missing-from-transcript.md index ad7e829fb004..384cef8d05c8 100644 --- a/reference/docs-conceptual/learn/deep-dives/output-missing-from-transcript.md +++ b/reference/docs-conceptual/learn/deep-dives/output-missing-from-transcript.md @@ -1,7 +1,7 @@ --- description: This articles explains the limitations of PowerShell transcripts and the cases than can cause data to be logged out of order or be missing from the transcript. ms.custom: wiki-migration -ms.date: 11/16/2022 +ms.date: 04/30/2025 title: Limitations of PowerShell transcripts --- # Limitations of PowerShell transcripts @@ -14,10 +14,10 @@ When you emit objects from your script the formatting of those objects is handle But the formatting can occur after the script has completed and transcription has stopped. This means that the output doesn't get transcribed. Strings are handled differently. Sometimes string output is passed through formatting, but not always. `Write-Host` makes an immediate write to the -host process. `Write-Object` is sent through the formatting system. Combining the output of complex +host process. `Write-Output` is sent through the formatting system. Combining the output of complex objects with writes to the host makes it difficult to predict what gets logged in the transcript. -## Scenario 1 - Output of a structured object at the end of all of the other operations +## Scenario 1 - Output of a structured object after all other operations Consider the following script and its output: @@ -152,7 +152,7 @@ Path Transcript stopped, output file is /Users/user1/src/projects/transcript/scenario3.log ``` -The string output from both `Write-Host` and `Write-Object` makes it into the transcript. However, +The string output from both `Write-Host` and `Write-Output` makes it into the transcript. However, the output from `Get-Location` occurs after transcription has stopped. ``` diff --git a/reference/docs-conceptual/windows-powershell/ise/object-model/The-ISEOptions-Object.md b/reference/docs-conceptual/windows-powershell/ise/object-model/The-ISEOptions-Object.md index 53aeb534b6c7..a097aae327c3 100644 --- a/reference/docs-conceptual/windows-powershell/ise/object-model/The-ISEOptions-Object.md +++ b/reference/docs-conceptual/windows-powershell/ise/object-model/The-ISEOptions-Object.md @@ -1,6 +1,6 @@ --- description: The ISEOptions object represents various settings for Windows PowerShell ISE. -ms.date: 03/27/2025 +ms.date: 04/30/2025 title: The ISEOptions Object --- @@ -148,10 +148,10 @@ Specifies the colors of the IntelliSense tokens in the Windows PowerShell ISE Co property is a dictionary object that contains name/value pairs of token types and colors for the Console pane. To change the colors of the IntelliSense tokens in the Script pane, see [TokenColors][08]. To reset the colors to the default values, see -[RestoreDefaultConsoleTokenColors][05]. Token colors can be set for the following: Attribute, -Command, CommandArgument, CommandParameter, Comment, GroupEnd, GroupStart, Keyword, -LineContinuation, LoopLabel, Member, NewLine, Number, Operator, Position, StatementSeparator, -String, Type, Unknown, Variable. +[RestoreDefaultConsoleTokenColors][05]. Token colors can be set for the following: `Attribute`, +`Command`, `CommandArgument`, `CommandParameter`, `Comment`, `GroupEnd`, `GroupStart`, `Keyword`, +`LineContinuation`, `LoopLabel`, `Member`, `NewLine`, `Number`, `Operator`, `Position`, +`StatementSeparator`, `String`, `Type`, `Unknown`, `Variable`. ```powershell # Sets the color of commands to green. @@ -204,14 +204,17 @@ ShowDefaultSnippets : True ShowToolBar : True ShowOutlining : True ShowLineNumbers : True -TokenColors : {[Attribute, #FF00BFFF], [Command, #FF0000FF], [CommandArgument, #FF8A2BE2], [CommandParameter, #FF000080]...} -ConsoleTokenColors : {[Attribute, #FFB0C4DE], [Command, #FFE0FFFF], [CommandArgument, #FFEE82EE], [CommandParameter, #FFFFE4B5]...} -XmlTokenColors : {[Comment, #FF006400], [CommentDelimiter, #FF008000], [ElementName, #FF8B0000], [MarkupExtension, #FFFF8C00]...} +TokenColors : {[Attribute, #FF00BFFF], [Command, #FF0000FF], + [CommandArgument, #FF8A2BE2], [CommandParameter, #FF000080]...} +ConsoleTokenColors : {[Attribute, #FFB0C4DE], [Command, #FFE0FFFF], + [CommandArgument, #FFEE82EE], [CommandParameter, #FFFFE4B5]...} +XmlTokenColors : {[Comment, #FF006400], [CommentDelimiter, #FF008000], + [ElementName, #FF8B0000], [MarkupExtension, #FFFF8C00]...} DefaultOptions : Microsoft.PowerShell.Host.ISE.ISEOptions FontSize : 9 Zoom : 100 FontName : Lucida Console -ErrorForegroundColor : #FFFF0000 +ErrorForegroundColor : #FFFF9494 ErrorBackgroundColor : #00FFFFFF WarningForegroundColor : #FFFF8C00 WarningBackgroundColor : #00FFFFFF @@ -233,7 +236,6 @@ ShowIntellisenseInConsolePane : True ShowIntellisenseInScriptPane : True UseEnterToSelectInConsolePaneIntellisense : True UseEnterToSelectInScriptPaneIntellisense : True -IntellisenseTimeoutInSeconds : 3 ``` ### ErrorBackgroundColor @@ -391,12 +393,12 @@ $psISE.Options.SelectedScriptPaneState = 'Maximized' Supported in Windows PowerShell ISE 3.0 and later, and not present in earlier versions. -Specifies whether the CTRL+J list of snippets includes the starter set that's +Specifies whether the Ctrl+J list of snippets includes the starter set that's included in Windows PowerShell. When set to `$false`, only user-defined snippets appear in the -CTRL+J list. The default value is `$true`. +Ctrl+J list. The default value is `$true`. ```powershell -# Hide the default snippets from the CTRL+J list. +# Hide the default snippets from the Ctrl+J list. $psISE.Options.ShowDefaultSnippets = $false ```