diff options
author | Don Naro <dnaro@redhat.com> | 2022-06-16 18:30:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-16 13:30:31 -0400 |
commit | 3cd2c494bdf17a1e43fa3dd01cf3c69776c2ee45 (patch) | |
tree | c1963769c3b48f9af3c93a1bc576d9af9c5c3462 /examples | |
parent | 681dc6eab9156229f75cf42f19b05c900c557863 (diff) | |
download | ansible-3cd2c494bdf17a1e43fa3dd01cf3c69776c2ee45.tar.gz |
issue #72449 winrm script rm (#77931)
Diffstat (limited to 'examples')
-rw-r--r-- | examples/scripts/ConfigureRemotingForAnsible.ps1 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/scripts/ConfigureRemotingForAnsible.ps1 b/examples/scripts/ConfigureRemotingForAnsible.ps1 index 1fcbaabc37..7cc86abd7c 100644 --- a/examples/scripts/ConfigureRemotingForAnsible.ps1 +++ b/examples/scripts/ConfigureRemotingForAnsible.ps1 @@ -7,6 +7,21 @@ # the necessary changes to allow Ansible to connect, authenticate and # execute PowerShell commands. # +# IMPORTANT: This script uses self-signed certificates and authentication mechanisms +# that are intended for development environments and evaluation purposes only. +# Production environments and deployments that are exposed on the network should +# use CA-signed certificates and secure authentication mechanisms such as Kerberos. +# +# To run this script in Powershell: +# +# [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 +# $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 +# # All events are logged to the Windows EventLog, useful for unattended runs. # # Use option -Verbose in order to see the verbose output messages. |