Skip to content

Instantly share code, notes, and snippets.

@iversond
Created August 2, 2016 19:42
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 iversond/dbfaa0d230e55b1a9921fac147d00b80 to your computer and use it in GitHub Desktop.
Save iversond/dbfaa0d230e55b1a9921fac147d00b80 to your computer and use it in GitHub Desktop.
PS Admin Workstation Profile for PowerShell
# Create symlink for Puppet Gold folder to c:\puppetGold
Invoke-Expression -Command "cmd.exe /c mklink /D puppetGold `"\\long\network\share\path\to\the\puppet\gold\folder\`""
function pg {set-location -path "c:\puppetGold"}
Write-Host "Enter your Domain credentials to automate PowerShell authentication" -Foreground White -Background Red
$dba_credential = Get-Credential
Write-Host "`t [Function] pg changes directory to Puppet Gold Directory `n`t`t'c:\puppetGold'" -Foreground Green
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment