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.

Auto Reboot after logoff

Featured Replies

Hello

I couldn't find a way to do this but maybe a genius could help me here :D

I'm searching a way to Initiate a reboot when a user loggs off in certain conditions only

The complete shceme is here

I have a script that set Windows 3GB mode on when logging on some partical Users (domain policy)

Once 3GB mode is active computer reboots and log on automatically with the same user name.

What I would like is to make the computer reboot automatically when this user loggs off, and the computer was not set to 3GB mode before first login

The matter is that it seems the logoff process is recognized as a "shutdown" option by Windows,

So VBScript reboot and Shutdown commands can not run since a "shutdown" procedure is already running

If anyone has an idea I'll take it


  • Author

Eheh, time has done it,

I've found a way to do this so I thought I'd share it for those who are interested

I use a rebooter in combination with psexec (sysinternals tool) and sleep.exe to go through

My main logoff script copies the rebooter batch file to windows\temp then calls it with this command

psexec -d "c:\windows\temp\rebooter.bat"

rebooter.bat

IF (%1)==() goto relaunch
goto doreboot
:relaunch
psexec -d c:\windows\temp\rebooter.bat truc
goto eof
:doreboot
sleep 15
shutdown -r -t 00 -f
:eof
exit

Of course it's not a really clean way to do it, but it works...

Psexec completely detach the rebooter batch from the logoff process, so finishing the logoff does not kill the batch, and once logoff is finished, shutdown command is accepted at last ...

a whole day to find this trick, but now it's available to everyone :D

Edited by alcium

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.