Windows 7 Script a restart at the end of oobeSystem pass? How To know when Setup finished?

rmse

New Member
Joined
Mar 11, 2010
Messages
2
Is it possible to have the system automatically restart after the oobeSystem pass is completed?

Alternatively, is there a way for a service to tell when oobeSystem pass has completed? Is there a file or a registry entry that can be monitored that will change in some way when the system setup is finished?

I have a set of scripts that need to run once windows unattended setup is finished. At the moment, they tend to interfere with oobeSystem pass, as they run after sysprep /generalize has restarted the system, and the scripts are not aware that setup is still in progress with specialize and oobeSystem stages...

Thanks!
 

Last edited:
To automatically restart the system after the oobeSystem pass is completed, you can modify the Unattend.xml file used during Windows Setup. However, there isn't a direct option to automatically trigger a restart specifically after this pass. One approach you could consider is to add a custom command or script to the Windows setup process that checks for the completion of the oobeSystem pass. Here are some suggestions for achieving this:

Approach 1: Custom Script Monitoring​

  1. Custom Script: Add a custom script that periodically checks for a specific file or registry entry that changes upon the completion of the oobeSystem pass.
  2. Monitoring: The script would need to monitor for a specific event or change that signals the completion of the setup stages.

    Approach 2: Scheduled Task​

  3. Scheduled Task: Create a scheduled task that triggers based on certain conditions (like a file change, registry key change, or a specific event).
  4. Event Trigger: Configure the task to run after a specific event that occurs at the end of the oobeSystem pass.

    Monitoring File/Registry Changes​

    To identify a file or registry entry that changes upon the completion of setup, you may need to observe the system during the setup process to pinpoint the exact change that signifies the completion of the oobeSystem pass. However, the specifics can vary based on your Windows version and setup configurations.

    Considerations​

    • Ensure the scripts you are running are compatible and do not interfere with the setup process.
    • Test any modifications or additions thoroughly in a controlled environment.
    If you need more specific guidance or assistance in implementing this solution, feel free to provide additional details or ask for further clarification!
 

Back
Top