Skip to content

Commit 242573a

Browse files
sdwheelerDCtheGeek
authored andcommitted
Fixes #4748, Fixes #4720, Fixes #4754 - update sudo command, EncodedCommand UTF-16LE, typos (#4755)
* update toc for samples * Fixes #4748 - update sudo command * Fixes #4720 - change to UTF-16LE * Fixes #4754 - typo in example 3
1 parent 54b06e9 commit 242573a

File tree

11 files changed

+56
-59
lines changed

11 files changed

+56
-59
lines changed

reference/3.0/Microsoft.PowerShell.Core/About/about_PowerShell_exe.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ Maximized and Hidden.
104104

105105
Accepts a base-64-encoded string version of a command. Use this parameter to
106106
submit commands to PowerShell that require complex quotation marks or curly
107-
braces. The string must be formatted using UTF-16 character encoding.
107+
braces. The string must be formatted using UTF-16LE character encoding.
108108

109109
#### -ConfigurationName \<string\>
110110

reference/3.0/Microsoft.PowerShell.Utility/Measure-Command.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
11
---
2-
ms.date: 06/09/2017
3-
schema: 2.0.0
4-
locale: en-us
5-
keywords: powershell,cmdlet
2+
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
3+
keywords: powershell,cmdlet
4+
locale: en-us
5+
Module Name: Microsoft.PowerShell.Utility
6+
ms.date: 06/09/2017
67
online version: https://go.microsoft.com/fwlink/?linkid=113348
7-
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
8-
title: Measure-Command
8+
schema: 2.0.0
9+
title: Measure-Command
910
---
1011
# Measure-Command
1112

1213
## Synopsis
13-
1414
Measures the time it takes to run script blocks and cmdlets.
1515

1616
## Syntax
1717

1818
```
19-
Measure-Command [-Expression] <ScriptBlock> [-InputObject <PSObject>]
20-
[<CommonParameters>]
19+
Measure-Command [-InputObject <PSObject>] [-Expression] <ScriptBlock> [<CommonParameters>]
2120
```
2221

2322
## Description
@@ -40,10 +39,10 @@ The first command measures the time it takes to process a recursive `Get-ChildIt
4039

4140
The second command measures the time it takes to process a recursive `Get-ChildItem` command that uses the provider-specific `-Filter` parameter.
4241

43-
These commands show the value of using a provider-specific filter in Windows PowerShell commands.
42+
These commands show the value of using a provider-specific filter in PowerShell commands.
4443

4544
```powershell
46-
Measure-Command {Get-ChildItem -Path C:\Windows\*.txt -Recurse}
45+
Measure-Command { Get-ChildItem -Path C:\Windows\*.txt -Recurse }
4746
```
4847

4948
```output
@@ -88,7 +87,7 @@ This example shows how to use the `InputObject` parameter of `Measure-Command`.
8887
```powershell
8988
# Perform a simple operation to demonstrate the InputObject parameter
9089
# Note that no output is displayed.
91-
10, 20, 50 | Measure-Command -Expression {for($i=0; $i - lt $_;$i++) {$i} }
90+
10, 20, 50 | Measure-Command -Expression {for($i=0; $i -lt $_;$i++) {$i} }
9291
```
9392

9493
```output
@@ -169,7 +168,7 @@ Accept wildcard characters: False
169168

170169
### CommonParameters
171170

172-
This cmdlet supports the common parameters: `-Debug`, `-ErrorAction`, `-ErrorVariable`, `-InformationAction`, `-InformationVariable`, `-OutVariable`, `-OutBuffer`, `-PipelineVariable`, `-Verbose`, `-WarningAction`, and `-WarningVariable`. For more information, see [about_CommonParameters](../Microsoft.PowerShell.Core/About/about_CommonParameters.md).
171+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
173172

174173
## Inputs
175174

@@ -183,6 +182,8 @@ You can pipe an object to `Measure-Command`.
183182

184183
`Measure-Command` returns a time span object that represents the result.
185184

185+
## NOTES
186+
186187
## Related Links
187188

188189
[Invoke-Command](../Microsoft.PowerShell.Core/Invoke-Command.md)

reference/4.0/Microsoft.PowerShell.Core/About/about_PowerShell_exe.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ PowerShell.
5454
Starts the specified version of PowerShell. Valid values are 2.0 and
5555
3.0. The version that you specify must be installed on the system. If Windows
5656
PowerShell 3.0 is installed on the computer, "3.0" is the default version.
57-
Otherwise, "2.0" is the default version. For more information, see [Installing PowerShell](/powershell/scripting/install/installing-windows-powershell.md).
57+
Otherwise, "2.0" is the default version. For more information, see [Installing PowerShell](/powershell/scripting/install/installing-windows-powershell).
5858

5959
#### -NoLogo
6060

@@ -104,7 +104,7 @@ Maximized and Hidden.
104104

105105
Accepts a base-64-encoded string version of a command. Use this parameter to
106106
submit commands to PowerShell that require complex quotation marks or curly
107-
braces. The string must be formatted using UTF-16 character encoding.
107+
braces. The string must be formatted using UTF-16LE character encoding.
108108

109109
#### -ConfigurationName \<string\>
110110

reference/4.0/Microsoft.PowerShell.Utility/Measure-Command.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
11
---
2-
ms.date: 06/09/2017
3-
schema: 2.0.0
4-
locale: en-us
5-
keywords: powershell,cmdlet
2+
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
3+
keywords: powershell,cmdlet
4+
locale: en-us
5+
Module Name: Microsoft.PowerShell.Utility
6+
ms.date: 06/09/2017
67
online version: https://go.microsoft.com/fwlink/?linkid=293989
7-
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
8-
title: Measure-Command
8+
schema: 2.0.0
9+
title: Measure-Command
910
---
1011
# Measure-Command
1112

1213
## Synopsis
13-
1414
Measures the time it takes to run script blocks and cmdlets.
1515

1616
## Syntax
1717

1818
```
19-
Measure-Command [-Expression] <ScriptBlock> [-InputObject <PSObject>]
20-
[<CommonParameters>]
19+
Measure-Command [-InputObject <PSObject>] [-Expression] <ScriptBlock> [<CommonParameters>]
2120
```
2221

2322
## Description
@@ -40,10 +39,10 @@ The first command measures the time it takes to process a recursive `Get-ChildIt
4039

4140
The second command measures the time it takes to process a recursive `Get-ChildItem` command that uses the provider-specific `-Filter` parameter.
4241

43-
These commands show the value of using a provider-specific filter in Windows PowerShell commands.
42+
These commands show the value of using a provider-specific filter in PowerShell commands.
4443

4544
```powershell
46-
Measure-Command {Get-ChildItem -Path C:\Windows\*.txt -Recurse}
45+
Measure-Command { Get-ChildItem -Path C:\Windows\*.txt -Recurse }
4746
```
4847

4948
```output
@@ -88,7 +87,7 @@ This example shows how to use the `InputObject` parameter of `Measure-Command`.
8887
```powershell
8988
# Perform a simple operation to demonstrate the InputObject parameter
9089
# Note that no output is displayed.
91-
10, 20, 50 | Measure-Command -Expression {for($i=0; $i - lt $_;$i++) {$i} }
90+
10, 20, 50 | Measure-Command -Expression {for($i=0; $i -lt $_;$i++) {$i} }
9291
```
9392

9493
```output
@@ -169,7 +168,7 @@ Accept wildcard characters: False
169168

170169
### CommonParameters
171170

172-
This cmdlet supports the common parameters: `-Debug`, `-ErrorAction`, `-ErrorVariable`, `-InformationAction`, `-InformationVariable`, `-OutVariable`, `-OutBuffer`, `-PipelineVariable`, `-Verbose`, `-WarningAction`, and `-WarningVariable`. For more information, see [about_CommonParameters](../Microsoft.PowerShell.Core/About/about_CommonParameters.md).
171+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
173172

174173
## Inputs
175174

@@ -183,6 +182,8 @@ You can pipe an object to `Measure-Command`.
183182

184183
`Measure-Command` returns a time span object that represents the result.
185184

185+
## NOTES
186+
186187
## Related Links
187188

188189
[Invoke-Command](../Microsoft.PowerShell.Core/Invoke-Command.md)

reference/5.0/Microsoft.PowerShell.Core/About/about_PowerShell_exe.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ Maximized and Hidden.
104104

105105
Accepts a base-64-encoded string version of a command. Use this parameter to
106106
submit commands to PowerShell that require complex quotation marks or curly
107-
braces. The string must be formatted using UTF-16 character encoding.
107+
braces. The string must be formatted using UTF-16LE character encoding.
108108

109109
#### -ConfigurationName \<string\>
110110

reference/5.0/Microsoft.PowerShell.Utility/Measure-Command.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
---
2-
ms.date: 06/09/2017
3-
schema: 2.0.0
4-
locale: en-us
5-
keywords: powershell,cmdlet
2+
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
3+
keywords: powershell,cmdlet
4+
locale: en-us
5+
Module Name: Microsoft.PowerShell.Utility
6+
ms.date: 06/09/2017
67
online version: https://go.microsoft.com/fwlink/?linkid=821828
7-
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
8-
title: Measure-Command
8+
schema: 2.0.0
9+
title: Measure-Command
910
---
1011
# Measure-Command
1112

@@ -15,8 +16,7 @@ Measures the time it takes to run script blocks and cmdlets.
1516
## Syntax
1617

1718
```
18-
Measure-Command [-Expression] <ScriptBlock> [-InputObject <PSObject>]
19-
[<CommonParameters>]
19+
Measure-Command [-InputObject <PSObject>] [-Expression] <ScriptBlock> [<CommonParameters>]
2020
```
2121

2222
## Description
@@ -39,10 +39,10 @@ The first command measures the time it takes to process a recursive `Get-ChildIt
3939

4040
The second command measures the time it takes to process a recursive `Get-ChildItem` command that uses the provider-specific `-Filter` parameter.
4141

42-
These commands show the value of using a provider-specific filter in Windows PowerShell commands.
42+
These commands show the value of using a provider-specific filter in PowerShell commands.
4343

4444
```powershell
45-
Measure-Command {Get-ChildItem -Path C:\Windows\*.txt -Recurse}
45+
Measure-Command { Get-ChildItem -Path C:\Windows\*.txt -Recurse }
4646
```
4747

4848
```output
@@ -87,7 +87,7 @@ This example shows how to use the `InputObject` parameter of `Measure-Command`.
8787
```powershell
8888
# Perform a simple operation to demonstrate the InputObject parameter
8989
# Note that no output is displayed.
90-
10, 20, 50 | Measure-Command -Expression {for($i=0; $i - lt $_;$i++) {$i} }
90+
10, 20, 50 | Measure-Command -Expression {for($i=0; $i -lt $_;$i++) {$i} }
9191
```
9292

9393
```output
@@ -168,7 +168,7 @@ Accept wildcard characters: False
168168

169169
### CommonParameters
170170

171-
This cmdlet supports the common parameters: `-Debug`, `-ErrorAction`, `-ErrorVariable`, `-InformationAction`, `-InformationVariable`, `-OutVariable`, `-OutBuffer`, `-PipelineVariable`, `-Verbose`, `-WarningAction`, and `-WarningVariable`. For more information, see [about_CommonParameters](../Microsoft.PowerShell.Core/About/about_CommonParameters.md).
171+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
172172

173173
## Inputs
174174

@@ -182,7 +182,9 @@ You can pipe an object to `Measure-Command`.
182182

183183
`Measure-Command` returns a time span object that represents the result.
184184

185-
## Related Links
185+
## NOTES
186+
187+
## RELATED LINKS
186188

187189
[Invoke-Command](../Microsoft.PowerShell.Core/Invoke-Command.md)
188190

reference/5.1/Microsoft.PowerShell.Core/About/about_PowerShell_exe.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ Maximized and Hidden.
104104

105105
Accepts a base-64-encoded string version of a command. Use this parameter to
106106
submit commands to PowerShell that require complex quotation marks or curly
107-
braces. The string must be formatted using UTF-16 character encoding.
107+
braces. The string must be formatted using UTF-16LE character encoding.
108108

109109
#### -ConfigurationName \<string\>
110110

reference/5.1/Microsoft.PowerShell.Utility/Measure-Command.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@ online version: https://go.microsoft.com/fwlink/?linkid=821828
88
schema: 2.0.0
99
title: Measure-Command
1010
---
11-
1211
# Measure-Command
1312

1413
## SYNOPSIS
15-
1614
Measures the time it takes to run script blocks and cmdlets.
1715

1816
## SYNTAX
@@ -41,10 +39,10 @@ The first command measures the time it takes to process a recursive `Get-ChildIt
4139

4240
The second command measures the time it takes to process a recursive `Get-ChildItem` command that uses the provider-specific `-Filter` parameter.
4341

44-
These commands show the value of using a provider-specific filter in Windows PowerShell commands.
42+
These commands show the value of using a provider-specific filter in PowerShell commands.
4543

4644
```powershell
47-
Measure-Command {Get-ChildItem -Path C:\Windows\*.txt -Recurse}
45+
Measure-Command { Get-ChildItem -Path C:\Windows\*.txt -Recurse }
4846
```
4947

5048
```output
@@ -89,7 +87,7 @@ This example shows how to use the `InputObject` parameter of `Measure-Command`.
8987
```powershell
9088
# Perform a simple operation to demonstrate the InputObject parameter
9189
# Note that no output is displayed.
92-
10, 20, 50 | Measure-Command -Expression {for($i=0; $i - lt $_;$i++) {$i} }
90+
10, 20, 50 | Measure-Command -Expression {for($i=0; $i -lt $_;$i++) {$i} }
9391
```
9492

9593
```output
@@ -169,6 +167,7 @@ Accept wildcard characters: False
169167
```
170168

171169
### CommonParameters
170+
172171
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
173172

174173
## INPUTS
@@ -190,5 +189,3 @@ You can pipe an object to `Measure-Command`.
190189
[Invoke-Command](../Microsoft.PowerShell.Core/Invoke-Command.md)
191190

192191
[Trace-Command](Trace-Command.md)
193-
194-

reference/6/Microsoft.PowerShell.Utility/Measure-Command.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ This example shows how to use the `InputObject` parameter of `Measure-Command`.
8787
```powershell
8888
# Perform a simple operation to demonstrate the InputObject parameter
8989
# Note that no output is displayed.
90-
10, 20, 50 | Measure-Command -Expression {for($i=0; $i - lt $_;$i++) {$i} }
90+
10, 20, 50 | Measure-Command -Expression {for($i=0; $i -lt $_;$i++) {$i} }
9191
```
9292

9393
```output
@@ -189,5 +189,3 @@ You can pipe an object to `Measure-Command`.
189189
[Invoke-Command](../Microsoft.PowerShell.Core/Invoke-Command.md)
190190

191191
[Trace-Command](Trace-Command.md)
192-
193-

reference/7/Microsoft.PowerShell.Utility/Measure-Command.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ This example shows how to use the `InputObject` parameter of `Measure-Command`.
8787
```powershell
8888
# Perform a simple operation to demonstrate the InputObject parameter
8989
# Note that no output is displayed.
90-
10, 20, 50 | Measure-Command -Expression {for($i=0; $i - lt $_;$i++) {$i} }
90+
10, 20, 50 | Measure-Command -Expression {for($i=0; $i -lt $_;$i++) {$i} }
9191
```
9292

9393
```output
@@ -189,5 +189,3 @@ You can pipe an object to `Measure-Command`.
189189
[Invoke-Command](../Microsoft.PowerShell.Core/Invoke-Command.md)
190190

191191
[Trace-Command](Trace-Command.md)
192-
193-

0 commit comments

Comments
 (0)