How do I RESTART when clicking LOGOFF

Frosh

New member
Local time
9:34 PM
Messages
7
My Boss wants to restart when the user clicks the logoff button.

These computer are for students to use. The restart/shutdown button has been disable in the gpedit.msc.

Currently when I add the restart.bat (shutdown -r -f -t 0) into gpedit.msc -> User Configuration -> Windows Settings -> Scripts -> Logoff, there is like a 20 seconds delay.
So the student would click logoff and then it would show the login screen for ~20 seconds before restarting. The ~20 seconds is problematic when another student types in her account credentials and starts logging in, only to have the computer restart in the the middle of the profile loading.

These computer are Windows 7 Enterprise 64 bit on windows domain environment. CPU is QuadCore, with no programs running. I have no control over the domain stuff, only able to bind computers to the domain.

If I run the shutdown -r -f -t 0 there is no delay in restarting.

Nothing sticks out in the event viewer logs.
I would be glad to offer logs or more information.
 

My Computer My Computer

OS
Windows 7 Ultimate x64
Who disabled the restart/shutdown buttons?
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Home made Desktop
OS
Windows 10 Pro. 64/ version 1709 Windows 7 Pro/64
CPU
Intel i7-6800K @ 4.3
Motherboard
ASUS X-99 Deluxe II
Memory
Corsair Platinum 16 gig @2400
Graphics Card(s)
EVGA GTX 1070 OC
Monitor(s) Displays
Asus 27" LED LCD/VE278Q
Screen Resolution
1920-1080 or 1280-720 HDMI
Hard Drives
INTEL SSD 730-240 Gb Sata 3.0/
PSU
EVGA Platium 1200W
Case
Phanteks Luxe Tempered Glass 8 fans/ one radiator
Cooling
XSPC/ Water Cooled CPU
Keyboard
Das 4 Professional
Mouse
Logitech M705/MX Anywhere 2-S
Internet Speed
100 mbits
Antivirus
Microsoft Security Essentials/ Malwarebytes Premium 3.0/ SAS
Browser
I.E. 11 default/Firefox/ ISP Time Warner Cable/Spectrum
Other Info
LG BluRay Burner/
Sound system-KLipsch-THX/
Icy Dock ssd Hot Swap bays.
I did, user can't have the option to shutdown. The computer is locked away. User can't press the on button on the computer.
 

My Computer My Computer

OS
Windows 7 Ultimate x64

My Computer My Computer

Computer Manufacturer/Model Number
Dell XPS 15 L502x
OS
Windows 7 Ultimate x64 SP1
CPU
Core i7-2670QM
Memory
8GB DDR3 PC3-10600
Graphics Card(s)
Intel HD Graphics 3000 + GeForce GT 540M
Screen Resolution
1920x1080
Hard Drives
1TB 5400RPM Seagate
I don't have access to domain stuff if your referring to Domain Controllers. I can change local group policy on computer, but nothing there pertains to me.
 

My Computer My Computer

OS
Windows 7 Ultimate x64

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH
I don't have access to domain stuff if your referring to Domain Controllers. I can change local group policy on computer, but nothing there pertains to me.

Well, if your boss wants to control student access on all the computers, then he needs to utilize the domain GPO. There's no way to do it with local security policy.
 

My Computer My Computer

Computer Manufacturer/Model Number
Dell XPS 15 L502x
OS
Windows 7 Ultimate x64 SP1
CPU
Core i7-2670QM
Memory
8GB DDR3 PC3-10600
Graphics Card(s)
Intel HD Graphics 3000 + GeForce GT 540M
Screen Resolution
1920x1080
Hard Drives
1TB 5400RPM Seagate
Found this, don't know if it covers all instances of Logoff though: Remove Windows 7 Log Off Button - Microsoft Answers

Then I would have no buttons to do anything :(

Thanks for responding.


I don't have access to domain stuff if your referring to Domain Controllers. I can change local group policy on computer, but nothing there pertains to me.

Well, if your boss wants to control student access on all the computers, then he needs to utilize the domain GPO. There's no way to do it with local security policy.

Pardon my lack of knowledge. So domain GPO can restart a computer when a user clicks the Logoff button?

Thanks kegobeer for responding.
 

My Computer My Computer

OS
Windows 7 Ultimate x64
The domain GPO policy changes the default action of the button. You can then lock things down.

But bear in mind that it's pretty easy to get around these types of things. You can't eliminate command prompt commands that can shut down the computer.
 

My Computer My Computer

Computer Manufacturer/Model Number
Dell XPS 15 L502x
OS
Windows 7 Ultimate x64 SP1
CPU
Core i7-2670QM
Memory
8GB DDR3 PC3-10600
Graphics Card(s)
Intel HD Graphics 3000 + GeForce GT 540M
Screen Resolution
1920x1080
Hard Drives
1TB 5400RPM Seagate
Back
Top