Skip to content

Instantly share code, notes, and snippets.

@carlin-q-scott
Created June 7, 2017 19:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carlin-q-scott/673a681a2d89adceac307d171595b4b3 to your computer and use it in GitHub Desktop.
Save carlin-q-scott/673a681a2d89adceac307d171595b4b3 to your computer and use it in GitHub Desktop.
Powershell snippets
$credential = $Host.ui.PromptForCredential("Need your domain account credentials", "Please enter your domain user name and password", $null, "NetBiosUserName")
# use -Credential $credential for some of the powershell commandlets. Copy-Item takes in this param but can't use it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment