Restart/Shutdown windows using password

Hello,

I've a kid that likes to play with keyboard and power/restart buttons in the case, so, is there a way that I can make windows ask for a password when I try to shut down or restart?

OS: Windows 8.1

Best regards,
LVL 7
Mohamed MagdyCTOAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Avdhu SinghCommented:
You'll notice in the examples, both commands end up with a value of "0", this is the index value that defines the action, and you must change it to reflect what you want the power button to do. If any error in the iTunes Error 56 this type;

Here are the available values you can use with their respective action:

0 -- Do nothing.
1 -- Sleep.
2 -- Hibernate.
3 -- Shut down.
4 -- Turn off the display.

If your computer doesn't have support for hibernation, remember not to use the index value of 2.
I think this is helpful to you.
0
AlanConsultantCommented:
Hi,

You can password protect your account, and just lock it when you walk away from your machine.

This should be a basic thing regardless, and it also stops the 'cat on keyboard' issues too ;-)

Alan.
0
Andrew LeniartFreelance Journalist & IT ConsultantCommented:
Your main problem is going to be the Power On and Power Off button on your computer case. Go into BIOS settings and see if the mainboard you're using provides an option to disable the Power Switch and Restart buttons. I'd be surprised if you could, but worth a look.

A quick and dirty way to fix it would be to open the case and pull the wires from both the Power and Restart buttons, effectively making them useless. The only way you could force shutdown then (in the case of a frozen operating system) would be to pull the power cord from the back of the PC  :)
1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

Andrew LeniartFreelance Journalist & IT ConsultantCommented:
With regards to the operating system, why not just disable the keyboard and mouse when away from the PC?  I mean just physically pull them out of their USB ports.
0
Mohamed MagdyCTOAuthor Commented:
@Andrew, Actually it happens when I'm using the PC, he comes out of nowhere and pushes the button :))

Thanks all for your help.
0
Mohamed MagdyCTOAuthor Commented:
I appreciate your comments, thank you :)
0
Andrew LeniartFreelance Journalist & IT ConsultantCommented:
Actually it happens when I'm using the PC, he comes out of nowhere and pushes the button :))

Haha! The joys of parenthood :-)
1
McKnifeCommented:
You can disable the power button action (which is: shutdown by default) in power options - that means disabling the software shutdown. That way, he will need to press for at least 4 seconds to make it shutdown (which is a hardware shutdown).
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 8

From novice to tech pro — start learning today.