TUTORIAL: Create perfect Windows Post-Setup using OOBE.cmd

hi george, want ask something :)
can u please show me how to call .cmd files use this method??
i already read all ur work , i only saw tutorial for how to instal from .msi and .exe and .reg but can u tell me how i can calling .cmd files use this method (like use setup_complete.cmd)
 
i think my suggestions won't be considered
Multifolder for W7 / W8.1 etc support you should add very easy by modifying script. I don't like this idea as I'm creating AIO image for one Windows version.
hi george, want ask something :)
can u please show me how to call .cmd files use this method??
i already read all ur work , i only saw tutorial for how to instal from .msi and .exe and .reg but can u tell me how i can calling .cmd files use this method (like use setup_complete.cmd)

1) PS1 / CMD / BAT scripts execution will be added soon, I created test version now.
2) Also importing certificates aka .CER files will be added in upcoming update in few days.

3) Dynamic drivers folder is also in progress, but needs to be created as patched autorun.dll to call setup.cmd to add easy support to run custom scripts during WinPE, as I'm using this method in my AIO project. This need some time to test, as more things are in To-Do list, as it's part of single edition Updater / ESD support maker. More things are going to be posted soon

4) Little GUI .RES patch for RunOnceEx dialog is in progress, new icon, hide titlebar and insert custom text. This needs more work for support multi language patching files inside install.wim

1 & 2 are close to add, you will be informed here :)
 
Last edited:
As I am reading the code.. and then I read the note below it.. until I reach
@George King
This folder is dynamically readed so you should love this solution :)
I said "I am in love with you right now" ;D
but seriously man, that's really nice code up there, I will try it soon and share my a outcomes.
 
Hey George King, Is Watched.cmd doing any technical things in this method? like if Explorer loaded the process will be distracted or something. Or it's just to make it looks clean and neat ?
 
Hey George King, Is Watched.cmd doing any technical things in this method? like if Explorer loaded the process will be distracted or something. Or it's just to make it looks clean and neat ?

Watcher.cmd is for Customer Experience and also to avoid user data loss when needed restart begin. Also it can be weird if you are on desktop and RunOnceEx dialog is always on top. I developed it as I like clear Customer Experience. An also the the process looks same like from Windows 2000 :)
 
Last edited:
Tutorial updated

  • Added certificates installing into My, Root, CA store
  • Added custom scripts execution support, PS1, CMD and BAT
  • Added missing depencies for images with Internet Explorer 9 up
  • Attached RunOnceEx_Protector.xml for easier Internet Explorer removal with working RunOnceEx
 
George King,
If you want automatically activate Windows and Office, create Activate.cmd inside support folder and follow Windows and Office Microsoft documents.

If you are going to install your own Windows product key specified in Activate.cmd just add these commands at the end of OOBE.cmd before exit command.
So you avoid problem with Windows to use OEM key automatically readed from BIOS, discussed here.

This activate.cmd is compulsory, and it's throwing error massage coz I didn't add it. Can you please update the code with IF EXIST ?
 
The tutorial doesn't work for me. Only when I remove the Watcher.cmd can the script be seen working. I loaded the RunOnceEx_Protector.xml as a template and made no changes in NTLite apart from updates.
Or do I also have to set something in NTLite?
 
The tutorial doesn't work for me. Only when I remove the Watcher.cmd can the script be seen working. I loaded the RunOnceEx_Protector.xml as a template and made no changes in NTLite apart from updates.
Or do I also have to set something in NTLite?
What you mean with doesn't work for you? Watcher.cmd is not needed on Windows 7 it's only for Windows 8+. Which Windows do you use?
 
Tutorial updated, small changes in OOBE.cmd and information and steps about installing Office 365
Hi George,
After a while using your method, I have installed on various laptop model. and I notice that all the newest model such as Lenovo X13, the custom application is not install, the Office application also not install.
I don't know how it could by pass these step. After Login screen it go straight to Desktop.
Hope you can have sometime to fix this bug.
thanks
Dimand
 
Hi George,
After a while using your method, I have installed on various laptop model. and I notice that all the newest model such as Lenovo X13, the custom application is not install, the Office application also not install.
I don't know how it could by pass these step. After Login screen it go straight to Desktop.
Hope you can have sometime to fix this bug.
thanks
Dimand
This seems like OOBE.cmd is ignored by Windows setup. This need to force inject it into RunOnce in offline mounted registry. I will prepare script that will automatically add it into all images.

Or you can integrate attached registry file into image using Registry page in NTLite as this is most comfortable way

WARNING for other users: Use this registry only when OOBE.cmd doesn't work for you!
 

Attachments

  • OOBE-RunOnce.reg
    320 bytes
Last edited:
Back
Top