запрашивать пароль при желании перезагрузиться или выключиться

3592
user1534664

Я хочу, чтобы мой компьютер запрашивал пароль при перезагрузке или перезагрузке. Мой друг подумал, что было забавно использовать пульт дистанционного управления на TeamViewer для перезагрузки моего компьютера, и, зная его, он определенно попробует повторить это в следующий раз, когда я пойду с ним на TeamViewer. Я хотел бы помешать ему сделать это. Как?

0
Это подробные сведения о процессах, которые происходят, когда любому программному обеспечению требуется запросить завершение работы ОС; http://homepage.ntlworld.com/jonathan.deboynepollard/FGA/windows-nt-6-shutdown-process.html; Не совсем решение вашей проблемы, но я надеюсь, что это даст некоторое представление о том, как действовать дальше user13267 11 лет назад 0

4 ответа на вопрос

2
Darius

I don't think this is possible as TeamViewer often run under Administrative privileges. And I have used TeamViewer for quite a while, and the TeamViewer bar has its own Shutdown button, which I believe basically send some commands directly to the OS.

The only thing you might be able to do is to set up TeamViewer to "confirm" everything the person connecting do.

To do this you go under Options - Advanced - Advanced Settings for Connections to this computer.

Access Control -> Custom Settings

Under "Control this Computer" might want to change it "After Confirmation" - 

He can't control unless you give confirmation. He can only connect and view your screen.

and

Lock the local keyboard and mouse "Denied" - so he can't lock you out 

and

Control the local TeamViewer "Denied" - so he can't change that setting. 

Hopefully that helps. (I haven't personally tested it, but those are the relevant options that I can think of)

Darius

К сожалению, вы, вероятно, правы, что это невозможно. :\ Спасибо за ваш ответ. user1534664 11 лет назад 0
0
Lee Harrison

You could disable the shutdown/restart options entirely through local GPO:
http://scorpiotek.com/blog/?p=626
Then the options aren't even available. If you really need to shutdown, just issue the "shutdown" command from the command prompt.(though you friend may figure this out as well)

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/shutdown.mspx?mfr=true

If it's a true window prompt your after, I'd suggest looking at a vbscript that fires when you logoff. Though I'm not entirely sure if you can cancel a shutdown/restart from a script.

В teamviewer есть опция, которая находится на вкладке действий и называется «выключение», поэтому, к сожалению, он даже не использует меню панели задач Windows. user1534664 11 лет назад 0
ах, я не знаком с программным обеспечением, поэтому я не знал этого. Lee Harrison 11 лет назад 0
0
stderr

Try:

  • Click on Start → Run… → gpedit.msc (or, alternatively: WinR → gpedit.msc)

  • Computer Configuration → Administrative Templates → System

  • Display Shutdown Event Tracker → Enable

This is not available in all editions, though, so you could also try:

  • Click on Start → Run… → regedit (or, alternatively: WinR → regedit)

  • HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Reliability

  • New → DWORD 32

  • Enter as name: ShutdownReasonUI

  • Enter as value: 1

https://superuser.com/a/433920/219655

Я не был уверен, что это был за трекер событий выключения, поэтому я протестировал его и это окно, которое вы получаете, когда ваш компьютер снова включается после того, как вы выключаете его, спрашивая, почему он был выключен. Мне нужно что-то, что мешает завершению работы компьютера. Благодарю. user1534664 11 лет назад 0
0
user221429

The easiest way would be just unistall team viewer or if you actually use it on a regular basis remove him as user or change your password