Skip to content

Instantly share code, notes, and snippets.

@rybons
Created May 13, 2019 08:47
Show Gist options
  • Save rybons/9c0f5afa9e96775b97253272af46ca00 to your computer and use it in GitHub Desktop.
Save rybons/9c0f5afa9e96775b97253272af46ca00 to your computer and use it in GitHub Desktop.
install chocolatey and create myfile
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
C:/ProgramData/chocolatey/choco install git -y
# Create myfile:
${var1} | Set-Content 'myfile.txt'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment