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
### 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 |