packer-templates/scripts/SetupComplete-qemu.ps1

7 lines
299 B
PowerShell
Raw Normal View History

2021-01-25 07:28:41 +00:00
# start cloudbase-init service and set to auto-start
start-process -nonewwindow -FilePath "C:/Windows/system32/sc.exe" -ArgumentList "config cloudbase-init start= auto" -wait
start-process -nonewwindow -FilePath "C:/Windows/system32/sc.exe" -ArgumentList "start cloudbase-init" -wait
exit 0