Skip to content

Commit 6545c60

Browse files
authored
Merge pull request #5816 from MicrosoftDocs/staging
4/21 PM Publish
2 parents efd67c5 + 29d299a commit 6545c60

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

reference/5.1/Microsoft.PowerShell.Management/Reset-ComputerMachinePassword.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ It uses the *Credential* parameter to specify a user account that has permission
4545

4646
### Example 3: Reset the password on a remote computer
4747
```
48-
PS C:\> Invoke-Command -ComputerName "Server01" -ScriptBlock {Reset-ComputerMachinePassword}
48+
$cred = Get-Credential
49+
PS C:\> Invoke-Command -ComputerName "Server01" -ScriptBlock {Reset-ComputerMachinePassword -Credential $using:cred}
4950
```
5051

5152
This command uses the Invoke-Command cmdlet to run a **Reset-ComputerMachinePassword** command on the Server01 remote computer.

reference/5.1/Microsoft.PowerShell.Utility/Write-Error.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ Type: String
292292
Parameter Sets: NoException, WithException
293293
Aliases: Msg
294294
295-
Required: True (NoException), True (WithException)
295+
Required: True (NoException), False (WithException)
296296
Position: 0
297297
Default value: None
298298
Accept pipeline input: True (ByValue)

reference/6/Microsoft.PowerShell.Utility/Write-Error.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ Type: String
292292
Parameter Sets: NoException, WithException
293293
Aliases: Msg
294294
295-
Required: True (NoException), True (WithException)
295+
Required: True (NoException), False (WithException)
296296
Position: 0
297297
Default value: None
298298
Accept pipeline input: True (ByValue)

reference/7.0/Microsoft.PowerShell.Utility/Write-Error.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ Type: String
292292
Parameter Sets: NoException, WithException
293293
Aliases: Msg
294294
295-
Required: True (NoException), True (WithException)
295+
Required: True (NoException), False (WithException)
296296
Position: 0
297297
Default value: None
298298
Accept pipeline input: True (ByValue)

reference/7.1/Microsoft.PowerShell.Utility/Write-Error.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ Type: String
292292
Parameter Sets: NoException, WithException
293293
Aliases: Msg
294294
295-
Required: True (NoException), True (WithException)
295+
Required: True (NoException), False (WithException)
296296
Position: 0
297297
Default value: None
298298
Accept pipeline input: True (ByValue)
@@ -372,4 +372,3 @@ a terminating error condition. To signal a terminating error, use the
372372
[Write-Verbose](Write-Verbose.md)
373373

374374
[Write-Warning](Write-Warning.md)
375-

0 commit comments

Comments
 (0)