Can the windows shell provisioner access the WinRMPassword variable like in the below example?
{
"type": "windows-shell",
"environment_vars": ["WINRMPASS={{.WinRMPassword}}"],
"inline": [
"reg add \"HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" /v AutoAdminLogon /t REG_SZ /d 1",
"reg add \"HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" /v DefaultUserName /t REG_SZ /d packer",
"reg add \"HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" /v DefaultPassword /t REG_SZ /d %WINRMPASS%"
]
}
Each time i've tried i've only gotten this.
C:\Users\packer>reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultPassword /t REG_SZ /d <no value>