Grab our RSS feeds Follow us on Twitter Join our Facebook Group Connect with us on LinkedIn
myITforum.com, Powered by You.
you are not logged in

Articles

Newslinks

Links

Downloads

Site Services

Community Forums

Discussion Lists

Article Search

Newsletter

Web Blogs

FAQs

Live Support

myITforum TV

Take a Poll

Monthly Drawing

myITforum Network

User Group Directory

Our Partners

About Us

Register

Login

BRONZE PARTNER:

BRONZE PARTNER:



Industry News:




  Home : Articles : SMS 2.x print | email | | Forums |   print | email | | Blogs |   print | email | | Wiki |   print | email | | FAQs |   print | email | Article Search  
How to Use PowerShell To Prompt For Console Credentials


Bookmark and Share

By: Don Hite
Posted On: 9/30/2008

When you first open the PowerShell console if you type Get-Credential the password dialog box will be displayed with a blank user name and password. However you can add either of the lines below to your PowerShell profile so that each time the console is opened the credentials provided will be used:

$Credentials = Get-Credential Domain\UserName

$Credentials = Get-Credential Local_UserName

Type $Credentials and the User name and the password (System.Security.SecureString) will be listed.

To see more information on the cmdlet type: Get-Help Get-Credential.

Tip: You can also use the –Detailed or –Full switch to get additional information such as examples for using the cmdlet.

Get-Help Get-Credential -Detailed.
Get-Help Get-Credential -Full.


  myITforum.com ©2010 | Legal | Privacy