Hur förhindrar du "sekundära" konton från att stänga Windows 8 ner?

Innehållsförteckning:

Video: Hur förhindrar du "sekundära" konton från att stänga Windows 8 ner?

Video: Hur förhindrar du "sekundära" konton från att stänga Windows 8 ner?
Video: How many devices can connect to a router? 2024, Mars
Hur förhindrar du "sekundära" konton från att stänga Windows 8 ner?
Hur förhindrar du "sekundära" konton från att stänga Windows 8 ner?
Anonim
Delning av en familjedator fungerar mest, men vad händer om någon stänger av datorn via sitt konto medan du fortfarande har arbetsdokument öppna i ditt? Finns det ett sätt att förhindra att andra konton stänger av datorn?
Delning av en familjedator fungerar mest, men vad händer om någon stänger av datorn via sitt konto medan du fortfarande har arbetsdokument öppna i ditt? Finns det ett sätt att förhindra att andra konton stänger av datorn?

Dagens Question & Answer-session kommer till oss med tillstånd av SuperUser-en indelning av Stack Exchange, en community-driven gruppering av Q & A-webbplatser.

Frågan

SuperUser-läsaren Robith Nuriel Haq vill veta hur man förhindrar andra användare på sin dator att stänga av den:

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?

Finns det ett sätt för Robith att förhindra att andra stänger av datorn så att hela hans arbete inte går förlorat?

Svaret

SuperUser bidragsgivare and31415 har svaret för oss:

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 buttons and menus for a specific user

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

reg load “HKUUser” “%SystemDrive%UsersNTUSER.DAT”

2. Execute the commands below:

  • reg add “HKUUserSoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer” /v “NoClose” /t REG_DWORD /d 1 /f
  • reg unload “HKUUser”

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:Somefolder”
  • 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 “HKLMSoftwareMicrosoftWindowsCurrentVersionPoliciesSystem” /v “ShutdownWithoutLogon” /t REG_DWORD /d 0 /f

References

  • Command Prompt: frequently asked questions
  • 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

Har du något att lägga till förklaringen? Ljud av i kommentarerna. Vill du läsa mer svar från andra tech-savvy Stack Exchange-användare? Kolla in hela diskussionsgängan här.

Rekommenderad: