Skip to content
Open
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
1 change: 0 additions & 1 deletion reference/7.7/CimCmdlets/CimCmdlets.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,3 @@ Removes one or more CIM sessions.
### [Set-CimInstance](Set-CimInstance.md)

Modifies a CIM instance on a CIM server by calling the ModifyInstance method of the CIM class.

1 change: 0 additions & 1 deletion reference/7.7/CimCmdlets/Register-CimIndicationEvent.md
Original file line number Diff line number Diff line change
Expand Up @@ -428,4 +428,3 @@ This cmdlet is only available on Windows platforms.
[New-CimSession](New-CimSession.md)

[about_WQL](../Microsoft.PowerShell.Core/About/about_WQL.md)

8 changes: 4 additions & 4 deletions reference/7.7/Microsoft.PowerShell.Core/Where-Object.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,9 @@ particular version of Windows.
Starting in Windows PowerShell 3.0, there are two different ways to construct a `Where-Object`
command.

- **Scriptblock syntax**. You can use a scriptblock to specify the property name, a comparison operator,
and a property value. `Where-Object` returns all objects for which the scriptblock statement is
true.
- **Scriptblock syntax**. You can use a scriptblock to specify the property name, a comparison
operator, and a property value. `Where-Object` returns all objects for which the scriptblock
statement is true.

For example, the following command gets processes where the value of the **PriorityClass**
property equals `Normal`.
Expand All @@ -263,7 +263,7 @@ command.
All PowerShell comparison operators are valid in the scriptblock format. For more information,
see [about_Comparison_Operators](./About/about_Comparison_Operators.md).

- **Simplified syntax**. To enable the simiplified syntax, `Where-Object` includes 31 switch
- **Simplified syntax**. To enable the simplified syntax, `Where-Object` includes 31 switch
parameters that represent the comparison operators. The simplified syntax is easier to read and
write than the scriptblock syntax. You can combine one of the switch parameters with the
**Property** and **Value** parameters to create a command that filters objects based on the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ Gets performance counter data from local and remote computers.
### GetCounterSet (Default)

```
Get-Counter [[-Counter] <String[]>] [-SampleInterval <Int32>] [-MaxSamples <Int64>] [-Continuous]
[-ComputerName <String[]>] [<CommonParameters>]
Get-Counter [[-Counter] <String[]>] [-SampleInterval <Int32>] [-MaxSamples <Int64>]
[-Continuous] [-ComputerName <String[]>] [<CommonParameters>]
```

### ListSetSet
Expand Down
32 changes: 18 additions & 14 deletions reference/7.7/Microsoft.PowerShell.Diagnostics/Get-WinEvent.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,28 +18,30 @@ Gets events from event logs and event tracing log files on local and remote comp

```
Get-WinEvent [[-LogName] <String[]>] [-MaxEvents <Int64>] [-ComputerName <String>]
[-Credential <PSCredential>] [-FilterXPath <String>] [-Force] [-Oldest] [<CommonParameters>]
[-Credential <PSCredential>] [-FilterXPath <String>] [-Force] [-Oldest]
[<CommonParameters>]
```

### ListLogSet

```
Get-WinEvent [-ListLog] <String[]> [-ComputerName <String>] [-Credential <PSCredential>] [-Force]
[<CommonParameters>]
Get-WinEvent [-ListLog] <String[]> [-ComputerName <String>] [-Credential <PSCredential>]
[-Force] [<CommonParameters>]
```

### ListProviderSet

```
Get-WinEvent [-ListProvider] <String[]> [-ComputerName <String>] [-Credential <PSCredential>]
[<CommonParameters>]
Get-WinEvent [-ListProvider] <String[]> [-ComputerName <String>]
[-Credential <PSCredential>] [<CommonParameters>]
```

### GetProviderSet

```
Get-WinEvent [-ProviderName] <String[]> [-MaxEvents <Int64>] [-ComputerName <String>]
[-Credential <PSCredential>] [-FilterXPath <String>] [-Force] [-Oldest] [<CommonParameters>]
[-Credential <PSCredential>] [-FilterXPath <String>] [-Force] [-Oldest]
[<CommonParameters>]
```

### FileSet
Expand Down Expand Up @@ -150,9 +152,9 @@ with the asterisk (`*`) wildcard to display each property.

### Example 3: Configure the classic Security log

This command gets an **EventLogConfiguration** object that represents the classic **Security** log. The
object is then used to configure settings for the log, such as max file size, file path, and whether the
log is enabled.
This command gets an **EventLogConfiguration** object that represents the classic **Security** log.
The object is then used to configure settings for the log, such as max file size, file path, and
whether the log is enabled.

```powershell
$log = Get-WinEvent -ListLog Security
Expand Down Expand Up @@ -195,11 +197,12 @@ ProviderLatency : 1000
ProviderControlGuid :
```

The `Get-WinEvent` cmdlet uses the **ListLog** parameter to specify the **Security** log. The object is
saved to a variable. The **MaximumSizeInBytes** property is set to 1 gigabyte on the object. The
The `Get-WinEvent` cmdlet uses the **ListLog** parameter to specify the **Security** log. The object
is saved to a variable. The **MaximumSizeInBytes** property is set to 1 gigabyte on the object. The
**SaveChanges** method is called to push the change to the system inside of a try block to handle
access violations. The `Get-WinEvent` cmdlet is called again on the **Security** log and piped to the
`Format-List` cmdlet to verify that the **MaximumSizeInBytes** property has been saved on the machine.
access violations. The `Get-WinEvent` cmdlet is called again on the **Security** log and piped to
the `Format-List` cmdlet to verify that the **MaximumSizeInBytes** property has been saved on the
machine.

### Example 4: Get event logs from a server

Expand Down Expand Up @@ -232,7 +235,8 @@ is a property of the object with a non-null value.

This example gets objects that represent the **Application** event logs on three computers:
Server01, Server02, and Server03. The `foreach` keyword is used because the **ComputerName**
parameter accepts only one value. For more information, see [about_Foreach](../Microsoft.PowerShell.Core/about/about_Foreach.md).
parameter accepts only one value. For more information, see
[about_Foreach](../Microsoft.PowerShell.Core/about/about_Foreach.md).

```powershell
$S = 'Server01', 'Server02', 'Server03'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ Creates a new Windows event for the specified event provider.
## SYNTAX

```
New-WinEvent [-ProviderName] <String> [-Id] <Int32> [-Version <Byte>] [[-Payload] <Object[]>]
[<CommonParameters>]
New-WinEvent [-ProviderName] <String> [-Id] <Int32> [-Version <Byte>]
[[-Payload] <Object[]>] [<CommonParameters>]
```

## DESCRIPTION
Expand Down
12 changes: 6 additions & 6 deletions reference/7.7/Microsoft.PowerShell.Host/Start-Transcript.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,22 @@ Creates a record of all or part of a PowerShell session to a text file.
### ByPath (Default)

```
Start-Transcript [[-Path] <String>] [-Append] [-Force] [-NoClobber] [-IncludeInvocationHeader]
[-UseMinimalHeader] [-WhatIf] [-Confirm] [<CommonParameters>]
Start-Transcript [[-Path] <String>] [-Append] [-Force] [-NoClobber]
[-IncludeInvocationHeader] [-UseMinimalHeader] [-WhatIf] [-Confirm] [<CommonParameters>]
```

### ByLiteralPath

```
Start-Transcript [[-LiteralPath] <String>] [-Append] [-Force] [-NoClobber]
[-IncludeInvocationHeader] [-UseMinimalHeader] [-WhatIf] [-Confirm] [<CommonParameters>]
[-IncludeInvocationHeader] [-UseMinimalHeader] [-WhatIf] [-Confirm] [<CommonParameters>]
```

### ByOutputDirectory

```
Start-Transcript [[-OutputDirectory] <String>] [-Append] [-Force] [-NoClobber]
[-IncludeInvocationHeader] [-UseMinimalHeader] [-WhatIf] [-Confirm] [<CommonParameters>]
[-IncludeInvocationHeader] [-UseMinimalHeader] [-WhatIf] [-Confirm] [<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -115,8 +115,8 @@ Transcript started, output file is C:\Users\username\Documents\.\transcripts\Pow

### Example 5: Start a transcript using a relative path on non-Windows systems

When you use a relative path with the **OutputDirectory** parameter on non-Windows systems, the path is relative
to your home directory.
When you use a relative path with the **OutputDirectory** parameter on non-Windows systems, the
path is relative to your home directory.

```powershell
Start-Transcript -Path ./transcripts
Expand Down
12 changes: 6 additions & 6 deletions reference/7.7/Microsoft.PowerShell.Management/Add-Content.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@ Adds content to the specified items, such as adding words to a file.

```
Add-Content [-Path] <string[]> [-Value] <Object[]> [-PassThru] [-Filter <string>]
[-Include <string[]>] [-Exclude <string[]>] [-Force] [-Credential <pscredential>] [-WhatIf]
[-Confirm] [-NoNewline] [-Encoding <Encoding>] [-AsByteStream] [-Stream <string>]
[<CommonParameters>]
[-Include <string[]>] [-Exclude <string[]>] [-Force] [-Credential <pscredential>]
[-WhatIf] [-Confirm] [-NoNewline] [-Encoding <Encoding>] [-AsByteStream]
[-Stream <string>] [<CommonParameters>]
```

### LiteralPath

```
Add-Content [-Value] <Object[]> -LiteralPath <string[]> [-PassThru] [-Filter <string>]
[-Include <string[]>] [-Exclude <string[]>] [-Force] [-Credential <pscredential>] [-WhatIf]
[-Confirm] [-NoNewline] [-Encoding <Encoding>] [-AsByteStream] [-Stream <string>]
[<CommonParameters>]
[-Include <string[]>] [-Exclude <string[]>] [-Force] [-Credential <pscredential>]
[-WhatIf] [-Confirm] [-NoNewline] [-Encoding <Encoding>] [-AsByteStream]
[-Stream <string>] [<CommonParameters>]
```

## DESCRIPTION
Expand Down
13 changes: 8 additions & 5 deletions reference/7.7/Microsoft.PowerShell.Management/Clear-Item.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,17 @@ Clears the contents of an item, but does not delete the item.
### Path (Default)

```
Clear-Item [-Path] <String[]> [-Force] [-Filter <String>] [-Include <String[]>] [-Exclude <String[]>]
[-Credential <PSCredential>] [-WhatIf] [-Confirm] [<CommonParameters>]
Clear-Item [-Path] <String[]> [-Force] [-Filter <String>] [-Include <String[]>]
[-Exclude <String[]>] [-Credential <PSCredential>] [-WhatIf] [-Confirm]
[<CommonParameters>]
```

### LiteralPath

```
Clear-Item -LiteralPath <String[]> [-Force] [-Filter <String>] [-Include <String[]>] [-Exclude <String[]>]
[-Credential <PSCredential>] [-WhatIf] [-Confirm] [<CommonParameters>]
Clear-Item -LiteralPath <String[]> [-Force] [-Filter <String>] [-Include <String[]>]
[-Exclude <String[]>] [-Credential <PSCredential>] [-WhatIf] [-Confirm]
[<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -182,7 +184,8 @@ typed. No characters are interpreted as wildcards. If the path includes escape c
it in single quotation marks. Single quotation marks tell PowerShell not to interpret any characters
as escape sequences.

For more information, see [about_Quoting_Rules](../Microsoft.Powershell.Core/About/about_Quoting_Rules.md).
For more information, see
[about_Quoting_Rules](../Microsoft.Powershell.Core/About/about_Quoting_Rules.md).

```yaml
Type: System.String[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ Clears the value of a property but does not delete the property.
### Path (Default)

```
Clear-ItemProperty [-Path] <String[]> [-Name] <String> [-PassThru] [-Force] [-Filter <String>]
[-Include <String[]>] [-Exclude <String[]>] [-Credential <PSCredential>]
[-WhatIf] [-Confirm] [<CommonParameters>]
Clear-ItemProperty [-Path] <String[]> [-Name] <String> [-PassThru] [-Force]
[-Filter <String>] [-Include <String[]>] [-Exclude <String[]>]
[-Credential <PSCredential>] [-WhatIf] [-Confirm] [<CommonParameters>]
```

### LiteralPath

```
Clear-ItemProperty -LiteralPath <String[]> [-Name] <String> [-PassThru] [-Force] [-Filter <String>]
[-Include <String[]>] [-Exclude <String[]>] [-Credential <PSCredential>]
[-WhatIf] [-Confirm] [<CommonParameters>]
Clear-ItemProperty -LiteralPath <String[]> [-Name] <String> [-PassThru] [-Force]
[-Filter <String>] [-Include <String[]>] [-Exclude <String[]>]
[-Credential <PSCredential>] [-WhatIf] [-Confirm] [<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -92,9 +92,11 @@ Accept wildcard characters: True

### -Filter

Specifies a filter to qualify the **Path** parameter. The [FileSystem](../Microsoft.PowerShell.Core/About/about_FileSystem_Provider.md)
Specifies a filter to qualify the **Path** parameter. The
[FileSystem](../Microsoft.PowerShell.Core/About/about_FileSystem_Provider.md)
provider is the only installed PowerShell provider that supports the use of filters. You can find
the syntax for the **FileSystem** filter language in [about_Wildcards](../Microsoft.PowerShell.Core/About/about_Wildcards.md).
the syntax for the **FileSystem** filter language in
[about_Wildcards](../Microsoft.PowerShell.Core/About/about_Wildcards.md).
Filters are more efficient than other parameters, because the provider applies them when the cmdlet
gets the objects rather than having PowerShell filter the objects after they are retrieved.

Expand Down Expand Up @@ -155,7 +157,8 @@ typed. No characters are interpreted as wildcards. If the path includes escape c
it in single quotation marks. Single quotation marks tell PowerShell not to interpret any characters
as escape sequences.

For more information, see [about_Quoting_Rules](../Microsoft.Powershell.Core/About/about_Quoting_Rules.md).
For more information, see
[about_Quoting_Rules](../Microsoft.Powershell.Core/About/about_Quoting_Rules.md).

```yaml
Type: System.String[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ Clears the contents of the current user's recycle bin.
### All

```
Clear-RecycleBin [[-DriveLetter] <String[]>] [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]
Clear-RecycleBin [[-DriveLetter] <String[]>] [-Force] [-WhatIf] [-Confirm]
[<CommonParameters>]
```

## DESCRIPTION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ Copies a property and value from a specified location to another location.
### Path (Default)

```
Copy-ItemProperty [-Path] <String[]> [-Name] <String> [-Destination] <String> [-PassThru] [-Force]
[-Filter <String>] [-Include <String[]>] [-Exclude <String[]>] [-Credential <PSCredential>]
[-WhatIf] [-Confirm] [<CommonParameters>]
Copy-ItemProperty [-Path] <String[]> [-Name] <String> [-Destination] <String> [-PassThru]
[-Force] [-Filter <String>] [-Include <String[]>] [-Exclude <String[]>]
[-Credential <PSCredential>] [-WhatIf] [-Confirm] [<CommonParameters>]
```

### LiteralPath

```
Copy-ItemProperty -LiteralPath <String[]> [-Name] <String> [-Destination] <String> [-PassThru] [-Force]
[-Filter <String>] [-Include <String[]>] [-Exclude <String[]>] [-Credential <PSCredential>]
[-WhatIf] [-Confirm] [<CommonParameters>]
Copy-ItemProperty -LiteralPath <String[]> [-Name] <String> [-Destination] <String>
[-PassThru] [-Force] [-Filter <String>] [-Include <String[]>] [-Exclude <String[]>]
[-Credential <PSCredential>] [-WhatIf] [-Confirm] [<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -110,9 +110,11 @@ Accept wildcard characters: True

### -Filter

Specifies a filter to qualify the **Path** parameter. The [FileSystem](../Microsoft.PowerShell.Core/About/about_FileSystem_Provider.md)
Specifies a filter to qualify the **Path** parameter. The
[FileSystem](../Microsoft.PowerShell.Core/About/about_FileSystem_Provider.md)
provider is the only installed PowerShell provider that supports the use of filters. You can find
the syntax for the **FileSystem** filter language in [about_Wildcards](../Microsoft.PowerShell.Core/About/about_Wildcards.md).
the syntax for the **FileSystem** filter language in
[about_Wildcards](../Microsoft.PowerShell.Core/About/about_Wildcards.md).
Filters are more efficient than other parameters, because the provider applies them when the cmdlet
gets the objects rather than having PowerShell filter the objects after they are retrieved.

Expand Down Expand Up @@ -174,7 +176,8 @@ typed. No characters are interpreted as wildcards. If the path includes escape c
it in single quotation marks. Single quotation marks tell PowerShell not to interpret any characters
as escape sequences.

For more information, see [about_Quoting_Rules](../Microsoft.Powershell.Core/About/about_Quoting_Rules.md).
For more information, se
[about_Quoting_Rules](../Microsoft.Powershell.Core/About/about_Quoting_Rules.md).
Comment on lines +179 to +180

```yaml
Type: System.String[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ Get-Content [-ReadCount <Int64>] [-TotalCount <Int64>] [-Tail <Int32>] [-Path] <
### LiteralPath

```
Get-Content [-ReadCount <Int64>] [-TotalCount <Int64>] [-Tail <Int32>] -LiteralPath <String[]>
[-Filter <String>] [-Include <String[]>] [-Exclude <String[]>] [-Force]
[-Credential <PSCredential>] [-Delimiter <String>] [-Wait] [-Raw] [-Encoding <Encoding>]
[-AsByteStream] [-Stream <String>] [<CommonParameters>]
Get-Content [-ReadCount <Int64>] [-TotalCount <Int64>] [-Tail <Int32>]
-LiteralPath <String[]> [-Filter <String>] [-Include <String[]>] [-Exclude <String[]>]
[-Force] [-Credential <PSCredential>] [-Delimiter <String>] [-Wait] [-Raw]
[-Encoding <Encoding>] [-AsByteStream] [-Stream <String>] [<CommonParameters>]
```

## DESCRIPTION
Expand Down
4 changes: 2 additions & 2 deletions reference/7.7/Microsoft.PowerShell.Management/Get-HotFix.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ Get-HotFix [[-Id] <String[]>] [-ComputerName <String[]>] [-Credential <PSCredent
### DESCRIPTION

```
Get-HotFix [-Description <String[]>] [-ComputerName <String[]>] [-Credential <PSCredential>]
[<CommonParameters>]
Get-HotFix [-Description <String[]>] [-ComputerName <String[]>]
[-Credential <PSCredential>] [<CommonParameters>]
```

## DESCRIPTION
Expand Down
3 changes: 2 additions & 1 deletion reference/7.7/Microsoft.PowerShell.Management/Get-Item.md
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,8 @@ typed. No characters are interpreted as wildcards. If the path includes escape c
it in single quotation marks. Single quotation marks tell PowerShell not to interpret any characters
as escape sequences.

For more information, see [about_Quoting_Rules](../Microsoft.Powershell.Core/About/about_Quoting_Rules.md).
For more information, see
[about_Quoting_Rules](../Microsoft.Powershell.Core/About/about_Quoting_Rules.md).

```yaml
Type: System.String[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,17 @@ Gets the properties of a specified item.
### Path (Default)

```
Get-ItemProperty [-Path] <String[]> [[-Name] <String[]>] [-Filter <String>] [-Include <String[]>]
[-Exclude <String[]>] [-Credential <PSCredential>] [<CommonParameters>]
Get-ItemProperty [-Path] <String[]> [[-Name] <String[]>] [-Filter <String>]
[-Include <String[]>] [-Exclude <String[]>] [-Credential <PSCredential>]
[<CommonParameters>]
```

### LiteralPath

```
Get-ItemProperty -LiteralPath <String[]> [[-Name] <String[]>] [-Filter <String>]
[-Include <String[]>] [-Exclude <String[]>] [-Credential <PSCredential>] [<CommonParameters>]
[-Include <String[]>] [-Exclude <String[]>] [-Credential <PSCredential>]
[<CommonParameters>]
```

## DESCRIPTION
Expand Down
Loading
Loading