Skip to content

Commit 326c1b1

Browse files
committed
Minor edits and rebase
1 parent c047479 commit 326c1b1

16 files changed

+87
-73
lines changed

reference/7.5/Microsoft.PowerShell.Management/Remove-Item.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ it in single quotation marks. Single quotation marks tell PowerShell not to inte
354354
as escape sequences.
355355

356356
For more information, see
357-
[about_Quoting_Rules](../Microsoft.Powershell.Core/About/about_Quoting_Rules.md).
357+
[about_Quoting_Rules](../Microsoft.PowerShell.Core/About/about_Quoting_Rules.md).
358358

359359
```yaml
360360
Type: System.String[]
@@ -440,8 +440,8 @@ Accept wildcard characters: True
440440
Prompts you for confirmation before running the cmdlet. For more information, see the following
441441
articles:
442442

443-
- [about_Preference_Variables](../microsoft.powershell.core/About/about_Preference_Variables.md#confirmpreference)
444-
- [about_Functions_CmdletBindingAttribute](../microsoft.powershell.core/About/about_Functions_CmdletBindingAttribute.md?#confirmimpact)
443+
- [about_Preference_Variables](../Microsoft.PowerShell.Core/About/about_Preference_Variables.md#confirmpreference)
444+
- [about_Functions_CmdletBindingAttribute](../Microsoft.PowerShell.Core/About/about_Functions_CmdletBindingAttribute.md#confirmimpact)
445445

446446
```yaml
447447
Type: System.Management.Automation.SwitchParameter
@@ -533,6 +533,6 @@ design.
533533

534534
[about_Providers](../Microsoft.PowerShell.Core/About/about_Providers.md)
535535

536-
[about_Preference_Variables](../microsoft.powershell.core/About/about_Preference_Variables.md#confirmpreference)
536+
[about_Preference_Variables](../Microsoft.PowerShell.Core/About/about_Preference_Variables.md#confirmpreference)
537537

538-
[about_Functions_CmdletBindingAttribute](../microsoft.powershell.core/About/about_Functions_CmdletBindingAttribute.md?#confirmimpact)
538+
[about_Functions_CmdletBindingAttribute](../Microsoft.PowerShell.Core/About/about_Functions_CmdletBindingAttribute.md#confirmimpact)

reference/7.5/Microsoft.PowerShell.Management/Remove-ItemProperty.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ Deletes the property and its value from an item.
1818
### Path (Default)
1919

2020
```
21-
Remove-ItemProperty [-Path] <String[]> [-Name] <String[]> [-Force] [-Filter <String>] [-Include <String[]>]
22-
[-Exclude <String[]>] [-Credential <PSCredential>] [-InformationAction <ActionPreference>]
23-
[-InformationVariable <String>] [-WhatIf] [-Confirm] [<CommonParameters>]
21+
Remove-ItemProperty [-Path] <String[]> [-Name] <String[]> [-Force] [-Filter <String>]
22+
[-Include <String[]>] [-Exclude <String[]>] [-Credential <PSCredential>]
23+
[-InformationAction <ActionPreference>] [-InformationVariable <String>] [-WhatIf] [-Confirm]
24+
[<CommonParameters>]
2425
```
2526

2627
### LiteralPath
@@ -55,7 +56,7 @@ path of the "SmpApplication" subkey, including the drive, `HKLM:`, and the "Soft
5556
These commands delete the "Options" registry value, and its data, from the "MyApp" subkey of
5657
"HKEY_CURRENT_USER\Software\MyCompany".
5758

58-
```
59+
```powershell
5960
PS C:\> Set-Location HKCU:\Software\MyCompany\MyApp
6061
PS HKCU:\Software\MyCompany\MyApp> Remove-ItemProperty -Path . -Name "Options" -Confirm
6162
```
@@ -273,10 +274,10 @@ Accept wildcard characters: False
273274

274275
### CommonParameters
275276

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

281282
## INPUTS
282283

reference/7.5/Microsoft.PowerShell.Management/Rename-Computer.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ Renames a computer.
1717

1818
```
1919
Rename-Computer [-ComputerName <String>] [-PassThru] [-DomainCredential <PSCredential>]
20-
[-LocalCredential <PSCredential>] [-NewName] <String> [-Force] [-Restart] [-WsmanAuthentication <String>]
21-
[-WhatIf] [-Confirm] [<CommonParameters>]
20+
[-LocalCredential <PSCredential>] [-NewName] <String> [-Force] [-Restart]
21+
[-WsmanAuthentication <String>] [-WhatIf] [-Confirm] [<CommonParameters>]
2222
```
2323

2424
## DESCRIPTION
2525

2626
> **This cmdlet is only available on the Windows platform.**
2727
28-
The `Rename-Computer` cmdlet renames the local computer or a remote computer.
29-
It renames one computer in each command.
28+
The `Rename-Computer` cmdlet renames the local computer or a remote computer. It renames one
29+
computer in each command.
3030

3131
This cmdlet was introduced in Windows PowerShell 3.0.
3232

@@ -51,7 +51,13 @@ computers in the domain.
5151
The **Force** parameter suppresses the confirmation prompt.
5252

5353
```powershell
54-
Rename-Computer -ComputerName "Srv01" -NewName "Server001" -DomainCredential Domain01\Admin01 -Force
54+
$renameParams = @{
55+
ComputerName = "Srv01"
56+
NewName = "Server001"
57+
DomainCredential = "Domain01\Admin01"
58+
Force = $true
59+
}
60+
Rename-Computer @renameParams
5561
```
5662

5763
## PARAMETERS
@@ -216,7 +222,7 @@ WSMan protocol. The acceptable values for this parameter are:
216222
The default value is **Default**.
217223

218224
For more information about the values of this parameter, see
219-
[AuthenticationMechanism Enumeration](/dotnet/api/system.management.automation.runspaces.authenticationmechanism).
225+
[AuthenticationMechanism Enumeration](xref:System.Management.Automation.Runspaces.AuthenticationMechanism).
220226

221227
> [!WARNING]
222228
> Credential Security Service Provider (CredSSP) authentication, in which the user
@@ -279,7 +285,7 @@ Accept wildcard characters: False
279285
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
280286
-InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose,
281287
-WarningAction, and -WarningVariable. For more information, see
282-
[about_CommonParameters](../Microsoft.PowerShell.Core/About/about_CommonParameters.md).
288+
[about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
283289

284290
## INPUTS
285291

reference/7.5/Microsoft.PowerShell.Management/Rename-Item.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ Accept wildcard characters: False
279279
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
280280
-InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose,
281281
-WarningAction, and -WarningVariable. For more information, see
282-
[about_CommonParameters](../Microsoft.PowerShell.Core/About/about_CommonParameters.md).
282+
[about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
283283

284284
## INPUTS
285285

reference/7.5/Microsoft.PowerShell.Management/Rename-ItemProperty.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -272,10 +272,10 @@ Accept wildcard characters: False
272272

273273
### CommonParameters
274274

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

280280
## INPUTS
281281

reference/7.5/Microsoft.PowerShell.Management/Resolve-Path.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ Accept wildcard characters: False
287287
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
288288
-InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose,
289289
-WarningAction, and -WarningVariable. For more information, see
290-
[about_CommonParameters](../Microsoft.PowerShell.Core/About/about_CommonParameters.md).
290+
[about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
291291
292292
## INPUTS
293293
@@ -316,7 +316,7 @@ The `*-Path` cmdlets work with the **FileSystem**, **Registry**, and **Certifica
316316
317317
`Resolve-Path` is designed to work with any provider. To list the providers available in your
318318
session, type `Get-PSProvider`. For more information, see
319-
[about_Providers](../microsoft.powershell.core/About/about_Providers.md).
319+
[about_Providers](../Microsoft.PowerShell.Core/About/about_Providers.md).
320320
321321
`Resolve-Path` only resolves existing paths. It cannot be used to resolve a location that does not
322322
exist yet.

reference/7.5/Microsoft.PowerShell.Management/Restart-Computer.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ queries the remote computer every two seconds to determine whether it's restarte
108108
`Restart-Computer` restarts the remote computer using the **WsmanAuthentication** mechanism.
109109
Kerberos authentication determines whether the current user has permission to restart the remote
110110
computer. For more information, see
111-
[AuthenticationMechanism](/dotnet/api/system.management.automation.runspaces.authenticationmechanism).
111+
[AuthenticationMechanism](xref:System.Management.Automation.Runspaces.AuthenticationMechanism).
112112

113113
```powershell
114114
Restart-Computer -ComputerName Server01 -WsmanAuthentication Kerberos
@@ -152,12 +152,12 @@ Type a user name, such as **User01** or **Domain01\User01**, or enter a **PSCred
152152
generated by the `Get-Credential` cmdlet. If you type a user name, you're prompted to enter the
153153
password.
154154

155-
Credentials are stored in a [PSCredential](/dotnet/api/system.management.automation.pscredential)
156-
object and the password is stored as a [SecureString](/dotnet/api/system.security.securestring).
155+
Credentials are stored in a [PSCredential](xref:System.Management.Automation.PSCredential)
156+
object and the password is stored as a [SecureString](xref:System.Security.SecureString).
157157

158158
> [!NOTE]
159159
> For more information about **SecureString** data protection, see
160-
> [How secure is SecureString?](/dotnet/api/system.security.securestring#how-secure-is-securestring).
160+
> [How secure is SecureString?](xref:System.Security.SecureString#how-secure-is-securestring).
161161

162162
```yaml
163163
Type: System.Management.Automation.PSCredential
@@ -297,7 +297,7 @@ The acceptable values for this parameter are: **Basic**, **CredSSP**, **Default*
297297
**Kerberos**, and **Negotiate**.
298298

299299
For more information, see
300-
[AuthenticationMechanism](/dotnet/api/system.management.automation.runspaces.authenticationmechanism).
300+
[AuthenticationMechanism](xref:System.Management.Automation.Runspaces.AuthenticationMechanism).
301301

302302
> [!WARNING]
303303
> Credential Security Service Provider (CredSSP) authentication, in which the user credentials are

reference/7.5/Microsoft.PowerShell.Management/Set-Clipboard.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ $PSDefaultParameterValues['Set-Clipboard:AsOSC52'] = $env:SSH_TTY
6868
```
6969

7070
For more information about `$PSDefaultParameterValues`, see
71-
[about_Parameters_Default_Values](/powershell/module/microsoft.powershell.core/About/about_Parameters_Default_Values).
71+
[about_Parameters_Default_Values](../Microsoft.PowerShell.Core/About/about_Parameters_Default_Values.md).
7272

7373
## PARAMETERS
7474

reference/7.5/Microsoft.PowerShell.Management/Set-Item.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ Changes the value of an item to the value specified in the command.
1818
### Path (Default) - All providers
1919

2020
```
21-
Set-Item [-Path] <String[]> [[-Value] <Object>] [-Force] [-PassThru] [-Filter <String>] [-Include <String[]>]
22-
[-Exclude <String[]>] [-Credential <PSCredential>] [-WhatIf] [-Confirm] [<CommonParameters>]
21+
Set-Item [-Path] <String[]> [[-Value] <Object>] [-Force] [-PassThru] [-Filter <String>]
22+
[-Include <String[]>] [-Exclude <String[]>] [-Credential <PSCredential>] [-WhatIf] [-Confirm]
23+
[<CommonParameters>]
2324
```
2425

2526
### LiteralPath - All providers
@@ -90,7 +91,9 @@ Set-Item -Path env:UserRole -Value "Administrator"
9091
This command changes the prompt function so that it displays the time before the path.
9192

9293
```powershell
93-
Set-Item -Path function:prompt -Value {'PS '+ (Get-Date -Format t) + " " + (Get-Location) + '> '}
94+
Set-Item -Path function:prompt -Value {
95+
'PS '+ (Get-Date -Format t) + " " + (Get-Location) + '> '
96+
}
9497
```
9598

9699
### Example 4: Set options for your prompt function

reference/7.5/Microsoft.PowerShell.Management/Set-Location.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ specified in the command. For information about location stacks, see the [Notes]
108108

109109
### Example 5: Navigate location history using `+` or `-`
110110

111-
```
111+
```powershell
112112
PS C:\> Set-Location -Path $env:SystemRoot
113113
PS C:\Windows> Set-Location -Path Cert:\
114114
PS Cert:\> Set-Location -Path HKLM:\

0 commit comments

Comments
 (0)