Skip to content

Commit

Permalink
add sysprep to switch Administrator password when booting an ami
Browse files Browse the repository at this point in the history
  • Loading branch information
lmayorga1980 committed Nov 30, 2018
1 parent 4a115b0 commit 4df44e1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
7 changes: 7 additions & 0 deletions windows_2016_core_ami.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,13 @@
"./scripts/compact.bat"
],
"type": "windows-shell"
},
{
"type": "powershell",
"inline": [
"C:/ProgramData/Amazon/EC2-Windows/Launch/Scripts/InitializeInstance.ps1 -Schedule",
"C:/ProgramData/Amazon/EC2-Windows/Launch/Scripts/SysprepInstance.ps1 -NoShutdown"
]
}
],
"variables": {
Expand Down
11 changes: 9 additions & 2 deletions windows_2019_core_ami.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,23 @@
"./scripts/compact.bat"
],
"type": "windows-shell"
},
{
"type": "powershell",
"inline": [
"C:/ProgramData/Amazon/EC2-Windows/Launch/Scripts/InitializeInstance.ps1 -Schedule",
"C:/ProgramData/Amazon/EC2-Windows/Launch/Scripts/SysprepInstance.ps1 -NoShutdown"
]
}
],
"variables": {
"autounattend": "./answer_files/2019_core/Autounattend.xml",
"disk_size": "61440",
"disk_type_id": "1",
"headless": "false",
"iso_checksum": "dbb0ffbab5d114ce7370784c4e24740191fefdb3349917c77a53ff953dd10f72",
"iso_checksum": "4c5dd63efee50117986a2e38d4b3a3fbaf3c1c15e2e7ea1d23ef9d8af148dd2d",
"iso_checksum_type": "sha256",
"iso_url": "https://software-download.microsoft.com/download/pr/17763.1.180914-1434.rs5_release_SERVER_EVAL_x64FRE_en-us.iso",
"iso_url": "iso/en_windows_server_2019_x64_dvd_4cb967d8.iso",
"manually_download_iso_from": "https://www.microsoft.com/en-us/software-download/windowsinsiderpreviewserver",
"winrm_timeout": "6h",
"aws_s3_bucket_name": "{{env `AWS_S3_BUCKET`}}"
Expand Down

0 comments on commit 4df44e1

Please sign in to comment.