Sha256: 49cac84a3b524d1c7213aad6970ded4201cdbd354258d308258e258c8ccc5bb3
Contents?: true
Size: 670 Bytes
Versions: 3
Compression:
Stored size: 670 Bytes
Contents
$LaunchConfigFile = "C:\ProgramData\Amazon\EC2-Windows\Launch\Config\LaunchConfig.json" $UnattendFile = "C:\ProgramData\Amazon\EC2-Windows\Launch\Sysprep\Unattend.xml" # EC2Launch should not set the `Administrator` user password to a random string (Get-Content $LaunchConfigFile -Verbose).Replace("Random", "DoNothing") | Set-Content $LaunchConfigFile -Verbose # Do not utilize the CopyProfile feature of the specialize step # We do not want the `Administrator` user profile to overwrite the `Default` user profile (Get-Content $UnattendFile -Verbose).Replace("<CopyProfile>true</CopyProfile>", "<CopyProfile>false</CopyProfile>") | Set-Content $UnattendFile -Verbose
Version data entries
3 entries across 3 versions & 1 rubygems