Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.