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
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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**

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
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
---
# about_Operators

## Short description

Describes the operators that are supported by PowerShell.

## Long description
Expand Down Expand Up @@ -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`).
Expand Down
4 changes: 2 additions & 2 deletions reference/5.1/Microsoft.PowerShell.Utility/Get-Date.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 |
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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**

Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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`).
Expand Down
4 changes: 2 additions & 2 deletions reference/7.4/Microsoft.PowerShell.Utility/Get-Date.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 |
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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**

Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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`).
Expand Down
4 changes: 2 additions & 2 deletions reference/7.5/Microsoft.PowerShell.Utility/Get-Date.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 |
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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**

Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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`).
Expand Down
2 changes: 1 addition & 1 deletion reference/7.6/Microsoft.PowerShell.Utility/Get-Date.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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:

Expand Down Expand Up @@ -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.

```
Expand Down
Original file line number Diff line number Diff line change
@@ -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
---

Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand All @@ -233,7 +236,6 @@ ShowIntellisenseInConsolePane : True
ShowIntellisenseInScriptPane : True
UseEnterToSelectInConsolePaneIntellisense : True
UseEnterToSelectInScriptPaneIntellisense : True
IntellisenseTimeoutInSeconds : 3
```

### ErrorBackgroundColor
Expand Down Expand Up @@ -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 <kbd>CTRL</kbd>+<kbd>J</kbd> list of snippets includes the starter set that's
Specifies whether the <kbd>Ctrl</kbd>+<kbd>J</kbd> list of snippets includes the starter set that's
included in Windows PowerShell. When set to `$false`, only user-defined snippets appear in the
<kbd>CTRL</kbd>+<kbd>J</kbd> list. The default value is `$true`.
<kbd>Ctrl</kbd>+<kbd>J</kbd> 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
```

Expand Down
Loading