theoldgoat Posted April 10, 2012 Report post Posted April 10, 2012 I have edited this file within my WIM image so that it does a couple of things after the Setup Windows and ConfigMgr step in my task sequence, but when I build a machine using my ts the file is never there. For example if I just include the line: %windir%\system32\slmgr.vbs /ato in the file, I would expect it to activate Windows for me. However when I start the machine the SetupComplete.cmd file is replaced with one that just contains this line: %windir%\system32\osdsetuphook.exe /execute I can't understand why this is happening, but think it has something to do with sysprep (is this done again at some point??). If someone could explain to me why this file is being replaced I would appreciate it. Again I couldn't really find anything on searching the internet that I didn't already know. Thanks very much. Quote Share this post Link to post Share on other sites More sharing options...
theoldgoat Posted April 10, 2012 Report post Posted April 10, 2012 Sorry I should have said I edited the WIM to include this file. Should I have edited this file BEFORE I captured my image? Thanks. Quote Share this post Link to post Share on other sites More sharing options...
theoldgoat Posted April 16, 2012 Report post Posted April 16, 2012 Never mind, I just run the command in my ts and it worked fine. Quote Share this post Link to post Share on other sites More sharing options...