The official guide states to run runonceex.cmd from cmdlines.txt, which is why on first logon it would usually run. But in your case it looks like you ran runonceex.cmd on first logon instead of cmdlines.txt. To solve this, add rundll32.exe iernonce.dll,RunOnceExProcess just before EXIT in the cmd file, or launch runonceex.cmd from cmdlines.txt