Question regarding Sysprep in Packer on a Windows image

Hi,

I’m using Packer to build Windows images, and at the end of the process Packer runs a shutdown command with a sysprep.bat file. But this causes one problem for me which is that it makes so that I have to change/update the password of Administrator user(which is the user I use to setup Packer), so basically I have to do update the password to the same one manually after the next restart, because otherwise Ansible won’t be able to connect. And I would want to avoid doing this step manually, is there any way I can solve this? I tried adding a command in unattend.xml file which sysprep command runs with to disable password expiration of Administrator user but it did not work. Any other ideas?