I am building Windows 10 with autounattend.xml to automate Windows 10 installation.
I also trying to automate installation of programs, that will install after first login.
I create these folders x:\$OEM$\$$\Setup\scripts\ and copy SetupComplete.cmd to run at first login.
Problem is that SetupComplete.cmd is not launched as administrator (i think).
I am trying to start cmd file that is on image, witch can install all application that are in the image.
I tried with adding registry in H
KEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce
which is not added.
Also tried adding task from command line, witch is not added. Also tried adding
HKEY_curent_user\Software\Microsoft\Windows\CurrentVersion\RunOnce
with loading hive hku, witch will add run once as default user, but that doesn't work.
How can I do this?