Skip to content

Instantly share code, notes, and snippets.

@hclpandv
Last active November 19, 2018 06:54
Show Gist options
  • Select an option

  • Save hclpandv/815939292111a0a81b288926e61c6cb4 to your computer and use it in GitHub Desktop.

Select an option

Save hclpandv/815939292111a0a81b288926e61c6cb4 to your computer and use it in GitHub Desktop.
Function InvokeScript-FromGitHub ($github_script_raw_uri){
$github_script_raw_uri = "https://gist.githubusercontent.com/hclpandv/76739cc615f3eee0d4722243379d324f/raw/9573fa17aadee9f0b5fb71d38cccefde8b4a220b/CheckSumCalc.ps1"
$temp_script_file = "$pwd\temp.ps1"
Invoke-RestMethod -Uri $github_script_raw_uri -Method GET | Out-File $temp_script_file
& $temp_script_file
Remove-Item $temp_script_file -Force
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment