diff --git a/reference/5.1/Microsoft.PowerShell.Management/New-PSDrive.md b/reference/5.1/Microsoft.PowerShell.Management/New-PSDrive.md index 15325762b7cb..49ef3b6eda04 100644 --- a/reference/5.1/Microsoft.PowerShell.Management/New-PSDrive.md +++ b/reference/5.1/Microsoft.PowerShell.Management/New-PSDrive.md @@ -142,12 +142,8 @@ To view the contents from a PowerShell session: `Get-ChildItem -Path MyCompany:` ### Example 4: Create a persistent mapped network drive using credentials This example maps a network drive that's authenticated with a domain service account's credentials. -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). +For more information about the **PSCredential** object that stores credentials and how passwords are +stored as a **SecureString**, see the **Credential** parameter's description. ```powershell $cred = Get-Credential -Credential Contoso\ServiceAccount @@ -277,6 +273,13 @@ Type a user name, such as **User01** or **Domain01\User01**, or enter a **PSCred 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 Parameter Sets: (All) diff --git a/reference/5.1/Microsoft.PowerShell.Management/Restart-Computer.md b/reference/5.1/Microsoft.PowerShell.Management/Restart-Computer.md index 0bdcafaa6860..e0d0b9c57762 100644 --- a/reference/5.1/Microsoft.PowerShell.Management/Restart-Computer.md +++ b/reference/5.1/Microsoft.PowerShell.Management/Restart-Computer.md @@ -210,11 +210,18 @@ Accept wildcard characters: False ### -Credential -Specifies a user account that has permission to do this action. Type a user name, such as User01, -Domain01\User01, or enter a **PSCredential** object generated by the `Get-Credential` cmdlet. +Specifies a user account that has permission to do this action. The default is the current user. -If the **Credential** parameter isn't specified, `Restart-Computer` uses the current user's -credentials. +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 @@ -223,7 +230,7 @@ Aliases: Required: False Position: 1 -Default value: None +Default value: Current user Accept pipeline input: False Accept wildcard characters: False ``` diff --git a/reference/5.1/Microsoft.PowerShell.Management/Start-Process.md b/reference/5.1/Microsoft.PowerShell.Management/Start-Process.md index 8c2c20968970..9de323fb7b74 100644 --- a/reference/5.1/Microsoft.PowerShell.Management/Start-Process.md +++ b/reference/5.1/Microsoft.PowerShell.Management/Start-Process.md @@ -141,9 +141,19 @@ Accept wildcard characters: False ### -Credential -Specifies a user account that has permission to perform this action. Type a user name, such as -User01 or Domain01\User01, or enter a **PSCredential** object, such as one from the `Get-Credential` -cmdlet. By default, the cmdlet uses the credentials of the current user. +Specifies a user account that has permission to perform this action. By default, the cmdlet uses the +credentials of 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 @@ -152,7 +162,7 @@ Aliases: RunAs Required: False Position: Named -Default value: None +Default value: Current user Accept pipeline input: False Accept wildcard characters: False ``` diff --git a/reference/5.1/Microsoft.PowerShell.Management/Stop-Computer.md b/reference/5.1/Microsoft.PowerShell.Management/Stop-Computer.md index 37ceb8814bff..322447b2964f 100644 --- a/reference/5.1/Microsoft.PowerShell.Management/Stop-Computer.md +++ b/reference/5.1/Microsoft.PowerShell.Management/Stop-Computer.md @@ -141,10 +141,19 @@ Accept wildcard characters: False ``` ### -Credential -Specifies a user account that has permission to perform this action. -The default is the current user. -Type a user name, such as User01 or Domain01\User01, or enter a **PSCredential** object, such as one from the Get-Credential cmdlet. +Specifies a user account that has permission to do this action. The default is 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 @@ -153,7 +162,7 @@ Aliases: Required: False Position: 1 -Default value: None +Default value: Current user Accept pipeline input: False Accept wildcard characters: False ``` diff --git a/reference/6/Microsoft.PowerShell.Management/New-PSDrive.md b/reference/6/Microsoft.PowerShell.Management/New-PSDrive.md index acb83b614ecf..265264b9b952 100644 --- a/reference/6/Microsoft.PowerShell.Management/New-PSDrive.md +++ b/reference/6/Microsoft.PowerShell.Management/New-PSDrive.md @@ -142,12 +142,8 @@ To view the contents from a PowerShell session: `Get-ChildItem -Path MyCompany:` ### Example 4: Create a persistent mapped network drive using credentials This example maps a network drive that's authenticated with a domain service account's credentials. -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). +For more information about the **PSCredential** object that stores credentials and how passwords are +stored as a **SecureString**, see the **Credential** parameter's description. ```powershell $cred = Get-Credential -Credential Contoso\ServiceAccount @@ -277,6 +273,13 @@ Type a user name, such as **User01** or **Domain01\User01**, or enter a **PSCred 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 Parameter Sets: (All) diff --git a/reference/6/Microsoft.PowerShell.Management/Restart-Computer.md b/reference/6/Microsoft.PowerShell.Management/Restart-Computer.md index e1dc01f36f94..964ac0962621 100644 --- a/reference/6/Microsoft.PowerShell.Management/Restart-Computer.md +++ b/reference/6/Microsoft.PowerShell.Management/Restart-Computer.md @@ -145,11 +145,18 @@ Accept wildcard characters: False ### -Credential -Specifies a user account that has permission to do this action. Type a user name, such as User01, -Domain01\User01, or enter a **PSCredential** object generated by the `Get-Credential` cmdlet. +Specifies a user account that has permission to do this action. The default is the current user. -If the **Credential** parameter isn't specified, `Restart-Computer` uses the current user's -credentials. +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 @@ -158,7 +165,7 @@ Aliases: Required: False Position: 1 -Default value: None +Default value: Current user Accept pipeline input: False Accept wildcard characters: False ``` diff --git a/reference/6/Microsoft.PowerShell.Management/Start-Process.md b/reference/6/Microsoft.PowerShell.Management/Start-Process.md index 3a221f096c7a..469394a4beb7 100644 --- a/reference/6/Microsoft.PowerShell.Management/Start-Process.md +++ b/reference/6/Microsoft.PowerShell.Management/Start-Process.md @@ -141,9 +141,19 @@ Accept wildcard characters: False ### -Credential -Specifies a user account that has permission to perform this action. Type a user name, such as -User01 or Domain01\User01, or enter a **PSCredential** object, such as one from the `Get-Credential` -cmdlet. By default, the cmdlet uses the credentials of the current user. +Specifies a user account that has permission to perform this action. By default, the cmdlet uses the +credentials of 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 @@ -152,7 +162,7 @@ Aliases: RunAs Required: False Position: Named -Default value: None +Default value: Current user Accept pipeline input: False Accept wildcard characters: False ``` diff --git a/reference/6/Microsoft.PowerShell.Management/Stop-Computer.md b/reference/6/Microsoft.PowerShell.Management/Stop-Computer.md index 8d88d3ea65e9..552f1817e49b 100644 --- a/reference/6/Microsoft.PowerShell.Management/Stop-Computer.md +++ b/reference/6/Microsoft.PowerShell.Management/Stop-Computer.md @@ -121,10 +121,18 @@ Accept wildcard characters: False ### -Credential -Specifies a user account that has permission to perform this action. -The default is the current user. +Specifies a user account that has permission to do this action. The default is the current user. -Type a user name, such as User01 or Domain01\User01, or enter a **PSCredential** object, such as one from the Get-Credential cmdlet. +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 @@ -133,7 +141,7 @@ Aliases: Required: False Position: 1 -Default value: None +Default value: Current user Accept pipeline input: False Accept wildcard characters: False ``` diff --git a/reference/7/Microsoft.PowerShell.Management/New-PSDrive.md b/reference/7/Microsoft.PowerShell.Management/New-PSDrive.md index 2264de799606..8b7045e9bbe5 100644 --- a/reference/7/Microsoft.PowerShell.Management/New-PSDrive.md +++ b/reference/7/Microsoft.PowerShell.Management/New-PSDrive.md @@ -142,12 +142,8 @@ To view the contents from a PowerShell session: `Get-ChildItem -Path MyCompany:` ### Example 4: Create a persistent mapped network drive using credentials This example maps a network drive that's authenticated with a domain service account's credentials. -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). +For more information about the **PSCredential** object that stores credentials and how passwords are +stored as a **SecureString**, see the **Credential** parameter's description. ```powershell $cred = Get-Credential -Credential Contoso\ServiceAccount @@ -277,6 +273,13 @@ Type a user name, such as **User01** or **Domain01\User01**, or enter a **PSCred 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 Parameter Sets: (All) diff --git a/reference/7/Microsoft.PowerShell.Management/Restart-Computer.md b/reference/7/Microsoft.PowerShell.Management/Restart-Computer.md index 2aa38359f1a3..236e8f34560b 100644 --- a/reference/7/Microsoft.PowerShell.Management/Restart-Computer.md +++ b/reference/7/Microsoft.PowerShell.Management/Restart-Computer.md @@ -145,11 +145,18 @@ Accept wildcard characters: False ### -Credential -Specifies a user account that has permission to do this action. Type a user name, such as User01, -Domain01\User01, or enter a **PSCredential** object generated by the `Get-Credential` cmdlet. +Specifies a user account that has permission to do this action. The default is the current user. -If the **Credential** parameter isn't specified, `Restart-Computer` uses the current user's -credentials. +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 @@ -158,7 +165,7 @@ Aliases: Required: False Position: 1 -Default value: None +Default value: Current user Accept pipeline input: False Accept wildcard characters: False ``` diff --git a/reference/7/Microsoft.PowerShell.Management/Start-Process.md b/reference/7/Microsoft.PowerShell.Management/Start-Process.md index 4cedb6cb202f..a85772e3e092 100644 --- a/reference/7/Microsoft.PowerShell.Management/Start-Process.md +++ b/reference/7/Microsoft.PowerShell.Management/Start-Process.md @@ -141,9 +141,19 @@ Accept wildcard characters: False ### -Credential -Specifies a user account that has permission to perform this action. Type a user name, such as -User01 or Domain01\User01, or enter a **PSCredential** object, such as one from the `Get-Credential` -cmdlet. By default, the cmdlet uses the credentials of the current user. +Specifies a user account that has permission to perform this action. By default, the cmdlet uses the +credentials of 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 @@ -152,7 +162,7 @@ Aliases: RunAs 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/Stop-Computer.md b/reference/7/Microsoft.PowerShell.Management/Stop-Computer.md index 91132d758260..28e94de28683 100644 --- a/reference/7/Microsoft.PowerShell.Management/Stop-Computer.md +++ b/reference/7/Microsoft.PowerShell.Management/Stop-Computer.md @@ -121,10 +121,18 @@ Accept wildcard characters: False ### -Credential -Specifies a user account that has permission to perform this action. -The default is the current user. +Specifies a user account that has permission to do this action. The default is the current user. -Type a user name, such as User01 or Domain01\User01, or enter a **PSCredential** object, such as one from the Get-Credential cmdlet. +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 @@ -133,7 +141,7 @@ Aliases: Required: False Position: 1 -Default value: None +Default value: Current user Accept pipeline input: False Accept wildcard characters: False ```