Skip to content

Instantly share code, notes, and snippets.

@mrlesmithjr
Last active March 15, 2019 04:58
Show Gist options
  • Select an option

  • Save mrlesmithjr/158e8e60bb517114e8727122aae208b1 to your computer and use it in GitHub Desktop.

Select an option

Save mrlesmithjr/158e8e60bb517114e8727122aae208b1 to your computer and use it in GitHub Desktop.
Windows runonce for Ansible
powershell.exe -Command "& {[Net.ServicePointManager]::SecurityProtocol = 'tls12'; Invoke-WebRequest -Uri https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1 -OutFile C:\Windows\Temp\ConfigureRemotingForAnsible.ps1}"
powershell.exe -ExecutionPolicy Unrestricted -File C:\Windows\Temp\ConfigureRemotingForAnsible.ps1 -ForceNewSSLCert -EnableCredSSP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment