The workaround to us - a little bit complicated if you don't mind to try
1. Follow steps to create customize answer file
- Open Windows System Image Manager
- Got to the Tools menu and make sure Hide Sensitive Data is checked
- In the Windows Image pane, right click on Select a Windows image or catalog file and select Select Windows Image…
- Browse to a location that contains Windows 10 installation files and open the sources folder
- In the sources folder select catalog (.clg) file if it exists. It a catalog file does not already exist, select wim instead and allow it to build a catalog file. It can take a few minutes to create a catalog
- In the Answer File pane, right click on Create or open an answer files and select New Answer File…
- Go back to the Windows Image pane and navigate to Components - - > amd64_Microsoft-Windows-Shell-Setup - - > AutoLogon - - > Password
- Right click on Password and choose Add Settings to Pass 4 specialize. amd64_Microsoft-Windows-Shell-Setup - - > AutoLogon - - > Password should now be showing up in the Answer File pane under 4 specialize.
- Make sure that Password is selected under the Answer File pane
- In the Password Properties pane, put in the plain text version of the password next to Value. Ignore that the Plain Text field is set to true
- Go to the File menu and select Save Answer file
- Save the fie with the name and location of your choice
- In Notepad open the file saved in Step 12
- The encoded value of the password that they need to set the variable to will be in between the <Value> </Value> tags under the <AutoLogon> <Password>
2. Create a package from the attached unattend file. In the Task Sequence, at the Apply Operating System task, check the option Use an unattend or Sysprep answer file for a custom installation and then specify the package created from the unattend file. For the File name put in autologon-admin-unattend.xml (unless you changed the name of the attached unattend file, in which case put in the name that you changed it to).
3. Add additional steps in your template sequence to set dynamic variables as below screenshot, pasted the encryped password(get from answer file) as below
See if it works in your environment. This probably the best I can do for you.