Skip to content

Instantly share code, notes, and snippets.

@gravcat
Last active February 5, 2018 19:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gravcat/788a6edf1b56fa6ecbd134a712cb234f to your computer and use it in GitHub Desktop.
Save gravcat/788a6edf1b56fa6ecbd134a712cb234f to your computer and use it in GitHub Desktop.
Write-Output "Configuring UAC to not prompt Administrators"
REG ADD HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0x0 /f
Write-Output "Creating directories"
if (!(Test-Path "C:\_maintainer")) {
New-Item -Type Directory "C:\_maintainer"
}
cd "C:\_maintainer"
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1" -OutFile "ConfigureRemotingForAnsible.ps1"
.\ConfigureRemotingForAnsible.ps1 -EnableCredSSP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment