Last active
February 5, 2018 19:49
-
-
Save gravcat/788a6edf1b56fa6ecbd134a712cb234f to your computer and use it in GitHub Desktop.
This file contains 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
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