Skip to content

Instantly share code, notes, and snippets.

@stiliajohny
Created January 22, 2021 15:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stiliajohny/778abfca90e1c051f32c134ed831f0c1 to your computer and use it in GitHub Desktop.
Save stiliajohny/778abfca90e1c051f32c134ed831f0c1 to your computer and use it in GitHub Desktop.
Ansible WinRM configurator
$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