如何防止“辅助”帐户关闭Windows8?

共享一台家庭电脑在大多数情况下都很好,但是如果有人通过他们的帐户关闭了电脑,而你的工作文档还在打开,会发生什么呢?有没有办法阻止其他帐户关闭计算机?...

如何防止“辅助”帐户关闭Windows8?

共享一台家庭电脑在大多数情况下都很好,但是如果有人通过他们的帐户关闭了电脑,而你的工作文档还在打开,会发生什么呢?有没有办法阻止其他帐户关闭计算机?

今天的问答环节是由SuperUser提供的,SuperUser是Stack Exchange的一个分支,是一个由社区驱动的问答网站分组。

问题

超级用户读者RobithNurielHaq想知道如何防止计算机上的其他用户关闭:

I am using Windows 8.1 and have set up a child account for my son. When he wants to use the computer, I switch to his child account without signing out of mine (because I have a lot of open documents that I still work on and do not want to close them yet).

One day, when he finished using the computer, he shut it down immediately. When the computer shut down, I lost all of my open documents. It was a disaster. Is there a way to disable his account’s power button on the Charms Bar, or at least to prevent a shut down if other accounts are still logged on?

Robith有没有办法阻止其他人关闭电脑,这样他所有的工作就不会丢失?

答案

超级用户贡献者和31415为我们提供了答案:

Solution

There are different ways to shut down the system, so you have to take that into account in order to avoid the issue entirely.

Preliminary steps

1. Make sure the user accounts you want to restrict are logged off.

2. Log on with an administrator account, and open an elevated command prompt.

Disable all shut down butt*** and menus for a specific user

1. Type or paste the following command in the command prompt by replacing <User> with the actual folder, then press Enter:

  • reg load “HKU\User” “%SystemDrive%\Users\<User>\NTUSER.DAT”

2. Execute the commands below:

  • reg add “HKU\User\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer” /v “NoClose” /t REG_DWORD /d 1 /f
  • reg unload “HKU\User”

3. Repeat steps 1-2 for any other user you want to limit.

Revoke shut down privileges assigned to standard users

1. Download the Windows Server 2003 Resource Kit Tools.

2. Extract the downloaded rktools.exe file using 7-Zip.

3. Open the folder containing the extracted files, and extract the rktools.msi using 7-Zip. Among all the files there is one called ntrights.exe.

4. Navigate to the folder containing ntrights.exe by running the commands below (after replacing the folder path inside quotes):

  • cd /d “X:\Some\folder”
  • ntrights.exe -u Users -r SeShutdownPrivilege
  • ntrights.exe -u Users -r SeRemoteShutdownPrivilege

Remove the shut down button on the logon screen

Execute this command:

  • reg add “HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System” /v “ShutdownWithoutLogon” /t REG_DWORD /d 0 /f

References

  • Command Prompt: frequently asked questi***
  • reg – Command-Line Reference
  • NTrights – User Privileges | SS64.com
  • Remove and prevent access to the Shut Down, Restart, Sleep, and Hibernate commands
  • Shut down the system – User Rights Assignment
  • Shutdown: Allow system to be shut down without having to log on

有什么要补充的解释吗?在评论中发出声音。想从其他精通技术的Stack Exchange用户那里了解更多答案吗?在这里查看完整的讨论主题。

  • 发表于 2021-04-11 11:19
  • 阅读 ( 193 )
  • 分类:互联网

你可能感兴趣的文章

6个最烦人的windows特性及其修复方法

...本功能,因为它为您的系统提供安全更新。谢天谢地,在windows8和windows10中它变得更加平滑了。现在你可以选择一个方便的时间重新启动,而不是像Windows7那样不停地要求你重新启动。根据您的Windows版本,您可能会遇到不同的问...

  • 发布于 2021-03-16 14:34
  • 阅读 ( 227 )

最讨厌的windows版本(以及为什么它们如此糟糕)

... 2012年发布的Windows8是最差的Windows操作系统,一些人至今记忆犹新。让我们回顾一下为什么windows8受到如此多的憎恨。 ...

  • 发布于 2021-03-16 17:17
  • 阅读 ( 217 )

如何在mac上控制+alt+delete

...用程序。但是在Mac上按这些键什么也做不了,那么在Mac上如何按Ctrl+Alt+Delete呢? ...

  • 发布于 2021-03-22 06:03
  • 阅读 ( 212 )

如何在任天堂交换机上分享游戏

...多个游戏机上使用一个游戏的数字副本的过程,类似于你如何共享一个游戏的物理副本。这对于拥有多个游戏机的家庭,或者不想为同一个游戏重复付费的朋友群来说尤其有用。 所有在交换机上购买的数字产品都链接到任天堂...

  • 发布于 2021-04-02 02:23
  • 阅读 ( 165 )

如何在windows 10上禁用通知

...不会不断更新新内容。 如何禁用锁屏通知 相关:如何在Windows8或10上自定义锁屏 Windows10还允许应用程序在锁屏上以状态消息的形式显示通知。如果不想在锁屏上看到状态消息,可以将其删除。 要控制锁屏上显示的内容,请转至...

  • 发布于 2021-04-06 16:26
  • 阅读 ( 207 )

在Win7、8或10上禁用用户帐户控制(uac)的简易方法

...么烦人。我们向您展示了如何禁用它,并且您仍然可以在Windows8和Windows10中禁用它。下面是方法。 相关:为什么不应该在Windows中禁用用户帐户控制(UAC) 不过,先警告一下。实际上,我们建议您不要禁用UAC。你最终会得到一台...

  • 发布于 2021-04-07 05:48
  • 阅读 ( 135 )

如何防止windows用户更改桌面背景

... microsoft帐户用户:禁用同步主题设置 如果您使用的是windows8或windows10,并且所涉及的用户绑定到一个Microsoft帐户,那么在继续此过程的其余部分之前,您需要执行禁用主题设置同步的附加步骤。如果您在PC上使用本地用户帐户...

  • 发布于 2021-04-08 16:54
  • 阅读 ( 239 )

windows 10中需要microsoft帐户的所有功能

...。但您仍然可以选择使用Windows7样式的本地帐户登录。 在Windows8中,许多包含的“商店应用”(非正式地称为“Metro应用”)需要一个Microsoft帐户才能运行。如果不先提供一个Microsoft帐户,你甚至不能将邮件应用程序与你的Gmail帐...

  • 发布于 2021-04-08 19:24
  • 阅读 ( 207 )

如何在windows 8和10中注销

...,但如果你是Windows新手,或者只是从Windows7升级,那么在Windows8和Windows10中,注销帐户的简单选项就有点隐藏了。即使是我们这些极客有时也会感到困惑,尤其是当微软决定在新的地方隐藏共同的功能时。您仍然可以从“开始”...

  • 发布于 2021-04-08 19:27
  • 阅读 ( 138 )

如何将Windows8 pc变成chromebook

你更喜欢谷歌Chrome而不是微软的Windows8应用程序吗?好吧,你很幸运,即使你有一台Windows8电脑。你可以把整个“现代”环境换成ChromeOS桌面,完全隐藏Windows8界面。 你也可以把Chrome桌面当作Windows8上的另一个应用,在其它Windows8...

  • 发布于 2021-04-08 19:47
  • 阅读 ( 240 )
doa2578
doa2578

0 篇文章

相关推荐