<%- powershell = '%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Unrestricted -NoLogo -NoProfile' -%> --- identity: Sysprep: guiRunOnce: commandList: - '<%= powershell %> -Command "invoke-webrequest -Uri http://devforeman01/chef.ps1 -Outfile C:\Windows\Temp\chef.ps1"' - '<%= powershell %> -FIle "C:\Windows\Temp\chef.ps1"' # - '<%= powershell %> -Command "invoke-webrequest -Uri <%= foreman_url("built") %>"' guiUnattended: autoLogon: true autoLogonCount: 1 password: plainText: true value: 'testpass123' timeZone: 110 identification: joinWorkgroup: 'WORKGROUP' licenseFilePrintData: autoMode: 'perSeat' userData: computerName: <%= @host.shortname %> fullName: 'NAME' orgName: 'ORG' productId: 'xxxxx-xxxxx-xxxxx-xxxxx-xxxxx' nicSettingMap: - adapter: dnsDomain: <%= @host.domain %> dnsServerList: - <%= @host.subnet.dns_primary %> gateway: - <%= @host.subnet.gateway %> ip: <%= @host.ip %> subnetMask: <%= @host.subnet.mask %> globalIPSettings: dnsServerList: - <%= @host.subnet.dns_primary %> dnsSuffixList: - <%= @host.domain %> options: changeSID: true deleteAccounts: false