?
Solved

Stop Windows shutdown

Posted on 2012-04-04
6
Medium Priority
?
356 Views
Last Modified: 2012-04-04
I want to be able to prevent users from shutting down windows.  My preferred method is to 'hijack' shutdown.exe so that it runs a script that alerts a manager that someone has tried to shutdown the computer. (I have that script written, and compiled as an exe).  Then I'd like to have a re-located 'shutdown.exe' be accessible from a more concealed location. Like Start|Shut computer down|really|are you sure|shutdown

My problem is, that even with shutdown.exe moved from the system32 folder, start|shutdown still causes the computer to shut down.

There's obviously a part of this that I do not understand.
0
Comment
Question by:hgj1357
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
6 Comments
 
LVL 17

Expert Comment

by:Anuroopsundd
ID: 37806598
1st .. you can move the shutdown and rename the file so that user does not know what is the file to shutdown..

http://www.howtogeek.com/howto/7553/remove-shutdown-and-restart-buttons-in-windows-7/
0
 
LVL 9

Expert Comment

by:Geodash
ID: 37806858
Why don't you just set a group policy to not let the users shut down the PC?

http://technet.microsoft.com/en-us/library/cc940398.aspx
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 2

Author Comment

by:hgj1357
ID: 37806879
These solutions completely prevent the users from shutting the computer down. I want to make it harder, but not impossible.

Can I remove SHUTDOWN from the start menu, but still allow shutdown.exe -s to be run?
0
 
LVL 9

Accepted Solution

by:
Geodash earned 2000 total points
ID: 37806907
Yes, you can do that - check out this discussion

http://www.computerfreetips.com/windows-xp/windows-shutdown.html
0
 
LVL 2

Author Closing Comment

by:hgj1357
ID: 37808236
You got it.

I can still run shutdown.exe to shut windows down, but I can control it now.

Thanks
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you build your web application in Visual Studio you'll get at least a few binaries, or .DLL, files in your bin folder. However, there is more compiling to be done. Normally this would happen when an ASP.NET resource within the web site is request…
Are you unable to synchronize your OST (Offline Storage Table) file with Microsoft Exchange Server? Is your OST file exceeding 2 GB size limit? In Microsoft Outlook 2002 and earlier versions, there is a 2 GB size limit for the OST file. If the file …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses
Course of the Month12 days, 9 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question