Skip to content

Instantly share code, notes, and snippets.

View FallenHoot's full-sized avatar

Zach FallenHoot

View GitHub Profile
@Gonzales
Gonzales / win_2016_aws_network_fix.ps1
Created April 4, 2018 09:53
aws stock windows server 2016 has a network bug which stops Instance to access metadata server with IP
Add-Content 'c:\script.log' (date)
# This fixes a bug in AWS startup script processing.
# 169.254.169.254 is for metadata service
# 169.254.169.250 is for KmsInstanceVpc1
# 169.254.169.251 is for KmsInstanceVpc2
$ipAddrs = @("169.254.169.254/32", "169.254.169.250/32", "169.254.169.251/32")
$sleepTime = 1