Skip to content

Commit 8df919f

Browse files
davidsmatlaksdwheeler
authored andcommitted
credentials and PS7 changes (#5074)
1 parent 241379b commit 8df919f

File tree

5 files changed

+36
-14
lines changed

5 files changed

+36
-14
lines changed

reference/5.1/Microsoft.PowerShell.Management/Get-HotFix.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ external help file: Microsoft.PowerShell.Commands.Management.dll-Help.xml
33
keywords: powershell,cmdlet
44
locale: en-us
55
Module Name: Microsoft.PowerShell.Management
6-
ms.date: 5/20/2019
6+
ms.date: 05/20/2019
77
online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.management/get-hotfix?view=powershell-5.1&WT.mc_id=ps-gethelp
88
schema: 2.0.0
99
title: Get-HotFix
@@ -123,11 +123,19 @@ Accept wildcard characters: False
123123
124124
### -Credential
125125
126-
Specifies a user account that has permission to access the computer and run commands. Type a user
127-
name, such as **User01**, **Domain01\User01**, or enter a **PSCredential** object, generated by the
128-
`Get-Credential` cmdlet. If you type a user name, you're prompted for a password.
126+
Specifies a user account that has permission to access the computer and run commands. The default is
127+
the current user
129128
130-
When the **Credential** parameter isn't specified, `Get-Hotfix` uses the current user.
129+
Type a user name, such as **User01** or **Domain01\User01**, or enter a **PSCredential** object
130+
generated by the `Get-Credential` cmdlet. If you type a user name, you're prompted to enter the
131+
password.
132+
133+
Credentials are stored in a [PSCredential](/dotnet/api/system.management.automation.pscredential)
134+
object and the password is stored as a [SecureString](/dotnet/api/system.security.securestring).
135+
136+
> [!NOTE]
137+
> For more information about **SecureString** data protection, see
138+
> [How secure is SecureString?](/dotnet/api/system.security.securestring#how-secure-is-securestring).
131139

132140
```yaml
133141
Type: PSCredential
@@ -136,7 +144,7 @@ Aliases:
136144
137145
Required: False
138146
Position: Named
139-
Default value: None
147+
Default value: Current user
140148
Accept pipeline input: False
141149
Accept wildcard characters: False
142150
```

reference/7/Microsoft.PowerShell.Management/Get-HotFix.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,19 @@ Accept wildcard characters: False
123123
124124
### -Credential
125125
126-
Specifies a user account that has permission to access the computer and run commands. Type a user
127-
name, such as **User01**, **Domain01\User01**, or enter a **PSCredential** object, generated by the
128-
`Get-Credential` cmdlet. If you type a user name, you're prompted for a password.
126+
Specifies a user account that has permission to access the computer and run commands. The default is
127+
the current user
129128
130-
When the **Credential** parameter isn't specified, `Get-Hotfix` uses the current user.
129+
Type a user name, such as **User01** or **Domain01\User01**, or enter a **PSCredential** object
130+
generated by the `Get-Credential` cmdlet. If you type a user name, you're prompted to enter the
131+
password.
132+
133+
Credentials are stored in a [PSCredential](/dotnet/api/system.management.automation.pscredential)
134+
object and the password is stored as a [SecureString](/dotnet/api/system.security.securestring).
135+
136+
> [!NOTE]
137+
> For more information about **SecureString** data protection, see
138+
> [How secure is SecureString?](/dotnet/api/system.security.securestring#how-secure-is-securestring).
131139

132140
```yaml
133141
Type: PSCredential
@@ -136,7 +144,7 @@ Aliases:
136144
137145
Required: False
138146
Position: Named
139-
Default value: None
147+
Default value: Current user
140148
Accept pipeline input: False
141149
Accept wildcard characters: False
142150
```

reference/7/PSReadLine/Set-PSReadlineOption.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,8 @@ Accept wildcard characters: False
598598
When the **ViModeIndicator** is set to `Script`, the script block provided will be invoked every
599599
time the mode changes. The script block is provided one argument of type `ViMode`.
600600

601+
This parameter was introduced in PowerShell 7.
602+
601603
```yaml
602604
Type: ScriptBlock
603605
Parameter Sets: (All)

reference/7/PowerShellGet/Publish-Module.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,10 @@ Accept wildcard characters: False
301301

302302
### -SkipAutomaticTags
303303

304-
Removes commands and resources from being included as tags.
305-
Skips automatically adding tags to a module.
304+
Removes commands and resources from being included as tags. Skips automatically adding tags to a
305+
module.
306+
307+
This parameter was introduced in PowerShell 7.
306308

307309
```yaml
308310
Type: SwitchParameter

reference/7/PowerShellGet/Update-Module.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,8 @@ accessible only to the current user of the computer:
276276

277277
`$home\Documents\PowerShell\Modules`
278278

279+
This parameter was introduced in PowerShell 7.
280+
279281
```yaml
280282
Type: String
281283
Parameter Sets: (All)
@@ -284,7 +286,7 @@ Accepted values: AllUsers, CurrentUser
284286
285287
Required: False
286288
Position: Named
287-
Default value: None
289+
Default value: CurrentUser
288290
Accept pipeline input: False
289291
Accept wildcard characters: False
290292
```

0 commit comments

Comments
 (0)