Skip to content

Instantly share code, notes, and snippets.

View mschuchard's full-sized avatar

Matthew Schuchard mschuchard

  • Atlanta, United States
View GitHub Profile
@mschuchard
mschuchard / provisioner.ps1
Last active May 21, 2025 19:18
provisioner
### system configuration
# create temp directory, set universal permissions, and change shell into it
New-Item -Path 'C:\' -Name 'temp' -ItemType 'Directory'
cmd.exe /c 'icacls C:\Temp /grant Everyone:F'
Set-Location -Path 'C:\temp'
New-Item -Path 'C:\' -Name 'bitbucket-pipelines-runner' -ItemType 'Directory'
# allow unsigned ps scripts (necessary for runner scripts)
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser -Force