Aussie owned and operated, with 23+ years of industry experience, Gold Coast InfoTech is delighted to support all of your business technology requirements.

Gallery

Contacts

success@goldcoastinfotech.com.au

1800 291 071

KBArticles Scripts, Commands, Registry

Troubleshooting AWS Transform Collector WinRM

During the addition of discovery for windows servers youmight find that WinRM is failing to connect via HTTPS.

you might see errors in teh collector console for these windows devices like

192.168.4.184 : FAILURE : Unexpected error on collect_windows_server: Failed to connect to https://192.168.4.184:5986/wsman, HTTPSConnectionPool(host=’192.168.4.184′, port=5986): Max retries exceeded with url: /wsman (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f6ec01fff40>, ‘Connection to 192.168.4.184 timed out. (connect timeout=30)’))
W2012-1.66n.local : FAILURE : Unexpected error on collect_windows_server: Failed to connect to https://W2012-1.66n.local:5986/wsman, HTTPSConnectionPool(host=’w2012-1.66n.local’, port=5986): Max retries exceeded with url: /wsman (Caused by NewConnectionError(‘<urllib3.connection.HTTPSConnection object at 0x7f6eb8789db0>: Failed to establish a new connection: [Errno -2] Name or service not known’))

Temporary WorkAround (powershell script)

# 1. Create self-signed certificate

$cert = New-SelfSignedCertificate -DnsName “W2012-1.66n.local” -CertStoreLocation “cert:\LocalMachine\My”

# 2. Create HTTPS listener

winrm create winrm/config/Listener?Address=*+Transport=HTTPS “@{Hostname=`”W2012-1.66n.local`”;CertificateThumbprint=`”$($cert.Thumbprint)`”}”

# 3. Configure Firewall

New-NetFirewallRule -DisplayName “WinRM HTTPS” -Direction Inbound -Protocol TCP -LocalPort 5986 -Action Allow

Resolution

Check the WinRM Configuraiton on your Windows devices is configured correctly – check out

https://docs.aws.amazon.com/transform/latest/userguide/discovery-tool-setup.html

https://learn.microsoft.com/en-us/windows/win32/winrm/installation-and-configuration-for-windows-remote-management

Author

Customer

Leave a comment

Your email address will not be published. Required fields are marked *