Last active
August 31, 2020 08:25
-
-
Save demiters/f6903fc764771ff972513a02ab5ea0a3 to your computer and use it in GitHub Desktop.
PowerShell script that configures WinRM for use with Ansible
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
$url = "https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1" | |
$file = "$env:temp\ConfigureRemotingForAnsible.ps1" | |
(New-Object -TypeName System.Net.WebClient).DownloadFile($url, $file) | |
powershell.exe -ExecutionPolicy ByPass -File $file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment