Created
August 2, 2016 19:42
-
-
Save iversond/dbfaa0d230e55b1a9921fac147d00b80 to your computer and use it in GitHub Desktop.
PS Admin Workstation Profile for PowerShell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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