You add this in the sysprep.ini file. Like this [GuiRunOnce] Command0=Start.bat In the batch file, put in there exactly what you want. But this will run as the next logged on user, so make sure your user is the first to logon to get the changes for them.