Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

reboot after GuiRunOnce

Featured Replies

Hello all,

Just a little question :

In my unattend.txt I told windows to launch a script in the [GuiRunOnce] section to install some softwares...

(logged as local admin)

At the end of the script, I force the computer to reboot :

%systemdrive%\Tools\shutdown /L /R /C /T:5 /Y

Of course, I wait that all MY installation tasks in MY script are over before rebooting...

BUT :

It seems a lot of things occur on the first logon... (I don't have the list, it's sure the HDD is heating at this time !)

What if I reboot the computer at this time if these tasks are not completed ???

Anyone has any idea ?

Thanks !

I've always allowed 60 seconds to pass before rebooting my machine /T:60 and I haven't had any problems so far.

I've always ran this at the begining of my cleanup batch file...

shutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute..."

60 seconds seems to be perfect for windows to load all the way in and become idle.

  • Author

OK, I think I'll let a "comfortable" amount of time before rebooting so that win can complete its tasks...

It would be great if there was "trigger" (file, registry value ... ?) that is set after the process is complete...

Does anyone know about that ?

Thanks

Put the command and switch "start /wait" (without the quotes) in front of all your GuiRunOnce commands.

This will help to alleviate all the simultaneous commands that are running. The /wait switch causes Windows to wait for that process to finish before moving on with the next command.

Obviously, if you wish to clean stuff up in a small time buffer that you set like Bi0haZarD does, then you don't want start /wait in front of the shutdown command, but everything else is fine.

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

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.