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
| ###### STEP 1 - Get GIT Credentials | |
| $EncryptedPasswordString = "Your Encrypted Github Password String" | |
| $Args = "Your Github Username", ($EncryptedPasswordString |ConvertTo-SecureString) | |
| $GitCreds = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $Args | |
| # Required Functions | |
| Function Update-AllPowerShellProfile | |
| { | |
| $ProfileDirectory = "$env:USERPROFILE\Documents\WindowsPowerShell\" | |
| $AllPSPRofiles = dir $ProfileDirectory | ?{$_.name -like "*Profile*"} | sort LastWriteTime -Descending |
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
| function XmlDocTransform($xml, $xdt, $output) | |
| { | |
| if (!$xml -or !(Test-Path -path $xml -PathType Leaf)) { | |
| throw "File not found. $xml"; | |
| } | |
| if (!$xdt -or !(Test-Path -path $xdt -PathType Leaf)) { | |
| throw "File not found. $xdt"; | |
| } | |
| $transformDll = "" |