Logoff/Shutdown Scripts

SinNisTeR

Diamond Member
Jan 3, 2001
3,570
0
0
I know that with group policy you can set the logoff and shutdown scripts, but those are meant more for doing things in the background.. I want to have something pop-up and get user input before they log off or shut down. Any way of doing this?

(this is for a check in/out system for work. System works great, but I'd like for it to ask the user right before they log off if they want to be checked out)

Thanks!
 

SinNisTeR

Diamond Member
Jan 3, 2001
3,570
0
0
But the user is the one turning the machine off, not through a command, just the regular start->shutdown/logoff.

Is there a way to modify the default logoff/shutdown procedure?
 

mzkhadir

Diamond Member
Mar 6, 2003
9,509
1
76
Originally posted by: SinNisTeR
But the user is the one turning the machine off, not through a command, just the regular start->shutdown/logoff.

Is there a way to modify the default logoff/shutdown procedure?

you can create a bat file with the shutdown command in it and give time for people to save and shutdown and restart.

such as shutdown -r -t 3600 - Shutdown and restart in 1 hr.
 

skace

Lifer
Jan 23, 2001
14,488
7
81
I've never tried this, but have you tried using a set /p command in your logoff script? Logoff scripts are "meant" to be in the background, but I believe they can be in the foreground also. Try set /p and see if it prompts the user for their input, if not try changing the group policy that hides legacy scripts. Maybe that will help. set /p assumes you are using a batch file, I'm not very handy in VBS yet (sadly).

Type "help set" for proper set /p syntax.