Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Store PowerShell Credentials

$
0
0

 

Summary: Store your Windows PowerShell credentials in a variable for later use.

Hey, Scripting Guy! Question How can I store alternate credentials for repeated use in my Windows PowerShell session?

Hey, Scripting Guy! AnswerUse the Get-Credential cmdlet to prompt for a credential, and store the results in a variable:

$credential = Get-Credential

 


Viewing all articles
Browse latest Browse all 3333

Trending Articles