Summary: Store your Windows PowerShell credentials in a variable for later use.
Image may be NSFW.
Clik here to view. How can I store alternate credentials for repeated use in my Windows PowerShell session?
Image may be NSFW.
Clik here to view.Use the Get-Credential cmdlet to prompt for a credential, and store the results in a variable:
$credential = Get-Credential
Image may be NSFW.
Clik here to view.
Clik here to view.
