E:\
en-US
en-US
en-US
en-US
en-US
en-US
{% if template_vm_efi is undefined or not template_vm_efi|bool %}
true
NTFS
1
1
NTFS
C
2
2
0
true
Primary
1
350
2
Primary
true
{% else %}
1
NTFS
1
de94bba4-06d1-4d40-a16a-bfd50179d6ac
2
FAT32
2
3
3
NTFS
C
4
4
0
true
1
Primary
300
2
EFI
100
3
MSR
128
4
Primary
true
{% endif %}
/IMAGE/INDEX
{{ iso_image_index }}
0
{% if template_vm_efi is undefined or not template_vm_efi|bool %}
2
{% else %}
4
{% endif %}
true
Ansible
Your Org.
{% if unattend.product_key is defined and unattend.product_key|length %}
{{ unattend.product_key | trim }}
{% endif %}
Never
1
false
false
en-US
en-US
en-US
en-US
true
{% if not '2008' in distro_name %}
true
true
true
{% endif %}
true
Home
1
{{ settings.time_zone | default('UTC') }}
{% if unattend.administrator_password is defined %}
{{ unattend.administrator_password }}
true
{% endif %}
{% if unattend.local_accounts is defined %}
{% for local_account in unattend.local_accounts %}
{% if local_account.password is defined %}
{{ local_account.password }}
true
{% endif %}
{% if local_account.description is defined %}
{{ local_account.description }}
{% endif %}
{% if local_account.display_name is defined %}
{{ local_account.display_name }}
{% endif %}
{% if local_account.group is defined %}
{{ local_account.group }}
{% endif %}
{% if local_account.name is defined %}
{{ local_account.name }}
{% endif %}
{% endfor %}
{% endif %}
{% if enable_auto_logon and unattend.local_accounts and unattend.local_accounts[0].name and unattend.local_accounts[0].password %}
{{ unattend.local_accounts[0].password }}
true
{{ unattend.local_accounts[0].name }}
true
{% endif %}
cmd.exe /c powershell -Command "Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Force"
Set Execution Policy 64 Bit
1
true
{% if not '2008' in distro_name %}
cmd.exe /c powershell -Command "Set-NetConnectionProfile -NetworkCategory Private"
Set network connection profile to private
2
true
{% else %}
cmd.exe /c powershell –EncodedCommand {{ set_network_to_private | b64encode(encoding='utf-16-le') }}
Set network connection profile to private
2
true
cmd.exe /c winrm quickconfig -q
winrm quickconfig -q
4
true
cmd.exe /c winrm quickconfig -transport:http
winrm quickconfig -transport:http
5
true
cmd.exe /c winrm set winrm/config @{MaxTimeoutms="1800000"}
Win RM MaxTimoutms
6
true
cmd.exe /c winrm set winrm/config/winrs @{MaxMemoryPerShellMB="800"}
Win RM MaxMemoryPerShellMB
7
true
cmd.exe /c winrm set winrm/config/service @{AllowUnencrypted="true"}
Win RM AllowUnencrypted
8
true
cmd.exe /c winrm set winrm/config/service/auth @{Basic="true"}
Win RM auth Basic
9
true
cmd.exe /c winrm set winrm/config/client/auth @{Basic="true"}
Win RM client auth Basic
10
true
cmd.exe /c winrm set winrm/config/listener?Address=*+Transport=HTTP @{Port="5985"}
Win RM listener Address/Port
11
true
cmd.exe /c netsh firewall add portopening TCP 5985 "Port 5985"
Win RM port open
12
true
cmd.exe /c net stop winrm
Stop Win RM Service
13
true
cmd.exe /c sc config winrm start= auto
Win RM Autostart
14
true
cmd.exe /c net start winrm
Start Win RM Service
15
true
cmd.exe /c dism /online /enable-feature /featurename:NetFx2-ServerCore
Enable NetFx2-ServerCore feature
16
true
cmd.exe /c dism /online /enable-feature /featurename:NetFx2-ServerCore-WOW64
Enable NetFx2-ServerCore feature
17
true
cmd.exe /c dism /online /enable-feature /featurename:MicrosoftWindowsPowerShell
Enable MicrosoftWindowsPowerShell feature
18
true
cmd.exe /c dism /online /enable-feature /featurename:ServerManager-PSH-Cmdlets
Enable ServerManager-PSH-Cmdlets feature
19
true
{% endif %}
{% if '2016' in distro_name %}
cmd.exe /c reg add HKLM\SOFTWARE\Microsoft\.NETFramework\v4.0.30319 /v SchUseStrongCrypto /t REG_DWORD /d 1 /reg:64 /f
Configure security protocol
19
true
{% endif %}
cmd.exe /c powershell -ExecutionPolicy ByPass -File E:\ConfigureRemotingForAnsible.ps1 -ForceNewSSLCert -EnableCredSSP
Enable winrm
20
true
cmd.exe /c powershell -Command "Enable-WSManCredSSP -Role Server -Force"
Enable winrm server role
21
true
cmd.exe /c powershell -Command "Set-Item -Path 'WSMan:\localhost\Service\Auth\CredSSP' -Value $true"
Enable credssp authentication
22
true
{% if template.networks is defined and template.networks[0].ip is defined and template.networks[0].gateway is defined and template.networks[0].netmask is defined %}
{% if not '2008' in distro_name %}
cmd.exe /c powershell -Command "New-NetIPAddress –IPAddress {{ template.networks[0].ip }} -DefaultGateway {{ template.networks[0].gateway }} -PrefixLength {{ (template.networks[0].ip + '/' + template.networks[0].netmask) | ipaddr('prefix') }} -InterfaceIndex (Get-NetAdapter).InterfaceIndex"
Set static ip
50
true
{% else %}
cmd.exe /c netsh int ipv4 set address "Local Area connection" static {{ template.networks[0].ip }} {{ template.networks[0].netmask }} {{ template.networks[0].gateway }}
Set static ip
50
true
{% endif %}
{% if template.networks[0].dns_servers is defined %}
{% if not '2008' in distro_name %}
cmd.exe /c powershell -Command "Set-DNSClientServerAddress –InterfaceIndex (Get-NetAdapter).InterfaceIndex –ServerAddresses {{ template.networks[0].dns_servers|join(',') }}"
Set static ip
51
true
{% else %}
cmd.exe /c netsh int ipv4 set dns "Local Area connection" static {{ template.networks[0].dns_servers[0] }}
Set static ip
51
true
{% endif %}
{% endif %}
{% endif %}
true
false
false
true
Google
Google
http://www.google.com/search?q={searchTerms}
true
true
about:blank
false
0
true
Remote Desktop
all
true
{{ settings.skip_auto_activation | default('true') }}
*
false