Created
January 22, 2021 15:42
-
-
Save stiliajohny/778abfca90e1c051f32c134ed831f0c1 to your computer and use it in GitHub Desktop.
Ansible WinRM configurator
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
$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 | |
winrm enumerate winrm/config/Listener |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment