From df3ea0a68d9fe82ac58d70a0e6f38ad80299bab6 Mon Sep 17 00:00:00 2001 From: davidsmatlak Date: Fri, 8 Nov 2019 10:13:31 -0800 Subject: [PATCH] credentials and PS7 changes --- .../Get-HotFix.md | 20 +++++++++++++------ .../Get-HotFix.md | 18 ++++++++++++----- .../7/PSReadLine/Set-PSReadlineOption.md | 2 ++ reference/7/PowerShellGet/Publish-Module.md | 6 ++++-- reference/7/PowerShellGet/Update-Module.md | 4 +++- 5 files changed, 36 insertions(+), 14 deletions(-) diff --git a/reference/5.1/Microsoft.PowerShell.Management/Get-HotFix.md b/reference/5.1/Microsoft.PowerShell.Management/Get-HotFix.md index 8cd8d759fa70..5dd6eeed6161 100644 --- a/reference/5.1/Microsoft.PowerShell.Management/Get-HotFix.md +++ b/reference/5.1/Microsoft.PowerShell.Management/Get-HotFix.md @@ -3,7 +3,7 @@ external help file: Microsoft.PowerShell.Commands.Management.dll-Help.xml keywords: powershell,cmdlet locale: en-us Module Name: Microsoft.PowerShell.Management -ms.date: 5/20/2019 +ms.date: 05/20/2019 online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.management/get-hotfix?view=powershell-5.1&WT.mc_id=ps-gethelp schema: 2.0.0 title: Get-HotFix @@ -123,11 +123,19 @@ Accept wildcard characters: False ### -Credential -Specifies a user account that has permission to access the computer and run commands. Type a user -name, such as **User01**, **Domain01\User01**, or enter a **PSCredential** object, generated by the -`Get-Credential` cmdlet. If you type a user name, you're prompted for a password. +Specifies a user account that has permission to access the computer and run commands. The default is +the current user -When the **Credential** parameter isn't specified, `Get-Hotfix` uses the current user. +Type a user name, such as **User01** or **Domain01\User01**, or enter a **PSCredential** object +generated by the `Get-Credential` cmdlet. If you type a user name, you're prompted to enter the +password. + +Credentials are stored in a [PSCredential](/dotnet/api/system.management.automation.pscredential) +object and the password is stored as a [SecureString](/dotnet/api/system.security.securestring). + +> [!NOTE] +> For more information about **SecureString** data protection, see +> [How secure is SecureString?](/dotnet/api/system.security.securestring#how-secure-is-securestring). ```yaml Type: PSCredential @@ -136,7 +144,7 @@ Aliases: Required: False Position: Named -Default value: None +Default value: Current user Accept pipeline input: False Accept wildcard characters: False ``` diff --git a/reference/7/Microsoft.PowerShell.Management/Get-HotFix.md b/reference/7/Microsoft.PowerShell.Management/Get-HotFix.md index 25333c4f58d6..060f4c8abf69 100644 --- a/reference/7/Microsoft.PowerShell.Management/Get-HotFix.md +++ b/reference/7/Microsoft.PowerShell.Management/Get-HotFix.md @@ -123,11 +123,19 @@ Accept wildcard characters: False ### -Credential -Specifies a user account that has permission to access the computer and run commands. Type a user -name, such as **User01**, **Domain01\User01**, or enter a **PSCredential** object, generated by the -`Get-Credential` cmdlet. If you type a user name, you're prompted for a password. +Specifies a user account that has permission to access the computer and run commands. The default is +the current user -When the **Credential** parameter isn't specified, `Get-Hotfix` uses the current user. +Type a user name, such as **User01** or **Domain01\User01**, or enter a **PSCredential** object +generated by the `Get-Credential` cmdlet. If you type a user name, you're prompted to enter the +password. + +Credentials are stored in a [PSCredential](/dotnet/api/system.management.automation.pscredential) +object and the password is stored as a [SecureString](/dotnet/api/system.security.securestring). + +> [!NOTE] +> For more information about **SecureString** data protection, see +> [How secure is SecureString?](/dotnet/api/system.security.securestring#how-secure-is-securestring). ```yaml Type: PSCredential @@ -136,7 +144,7 @@ Aliases: Required: False Position: Named -Default value: None +Default value: Current user Accept pipeline input: False Accept wildcard characters: False ``` diff --git a/reference/7/PSReadLine/Set-PSReadlineOption.md b/reference/7/PSReadLine/Set-PSReadlineOption.md index dd477adc3c9c..f3230fe1b1ce 100644 --- a/reference/7/PSReadLine/Set-PSReadlineOption.md +++ b/reference/7/PSReadLine/Set-PSReadlineOption.md @@ -598,6 +598,8 @@ Accept wildcard characters: False When the **ViModeIndicator** is set to `Script`, the script block provided will be invoked every time the mode changes. The script block is provided one argument of type `ViMode`. +This parameter was introduced in PowerShell 7. + ```yaml Type: ScriptBlock Parameter Sets: (All) diff --git a/reference/7/PowerShellGet/Publish-Module.md b/reference/7/PowerShellGet/Publish-Module.md index a14b28c381a0..286043634d74 100644 --- a/reference/7/PowerShellGet/Publish-Module.md +++ b/reference/7/PowerShellGet/Publish-Module.md @@ -301,8 +301,10 @@ Accept wildcard characters: False ### -SkipAutomaticTags -Removes commands and resources from being included as tags. -Skips automatically adding tags to a module. +Removes commands and resources from being included as tags. Skips automatically adding tags to a +module. + +This parameter was introduced in PowerShell 7. ```yaml Type: SwitchParameter diff --git a/reference/7/PowerShellGet/Update-Module.md b/reference/7/PowerShellGet/Update-Module.md index e473c8a5825c..44d04f79c069 100644 --- a/reference/7/PowerShellGet/Update-Module.md +++ b/reference/7/PowerShellGet/Update-Module.md @@ -276,6 +276,8 @@ accessible only to the current user of the computer: `$home\Documents\PowerShell\Modules` +This parameter was introduced in PowerShell 7. + ```yaml Type: String Parameter Sets: (All) @@ -284,7 +286,7 @@ Accepted values: AllUsers, CurrentUser Required: False Position: Named -Default value: None +Default value: CurrentUser Accept pipeline input: False Accept wildcard characters: False ```