Open spuder opened 8 years ago
I dont have access to my vbox server now. But looking at this I'm thinking that removing
<AdministratorPassword>
<Value>vagrant</Value>
<PlainText>true</PlainText>
</AdministratorPassword>
from the postunattend.xml may keep the administrator user disabled.
I had the same thought earlier today.
According to this link, that section might be required. I'll try it later to see what happens.
https://technet.microsoft.com/en-us/library/cc766283%28v=ws.10%29.aspx?f=255&MSPPError=-2147217396
Both Microsoft-Windows-Shell-Setup | Autologon and Microsoft-Windows-Shell-Setup | UserAccounts | AdministratorPassword sections are now needed for autologon in audit mode to work. Both of these settings should be added to the auditSystem pass.
Negative, without the admin password set, windows prompts for the admin password on first boot.
@spuder Is there a "disabled: true" option we could set in that section? Or a "hidden: true" option for the Administrator account specifically?
I haven't found much on google. Perhaps something like this
net user administrator /active:no
Using this packer template, I find that the administrator account is still enabled. This is supposed to be disabled in
PackerShutdown.bat
when sysprep.exe /generalize is runhttps://github.com/mwrock/packer-templates/blob/master/scripts/PackerShutdown.bat#L2
The shutdown command is properly configured here:
https://github.com/mwrock/packer-templates/blob/master/vbox-2012r2.json#L22
Is this right? Shouldn't it be auto logging in as 'vagrant' ?