Skip to content

SetupComplete.cmd

Featured Replies

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. :)

  • Author

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.