How do I stop a PC from getting locked or going to sleep without having admin rights and any software installation?
Solution:
Open the Command Prompt (cmd) as administrator:
- Windows 10: Right-click on the Start button and select "Command Prompt (Admin)".
- Windows 11: Press Windows Key + R, type "CMD", and press Ctrl + Shift + Enter.
Type the following command:
powercfg -setdcvalueindex Scheme_Current 3ee0888d-cafe-4e46-9923-9e67d9d04a1e 0
This command modifies the power settings to prevent the PC from locking or sleeping.
- Restart your PC:
This will apply the new power settings.
Additional Tips:
- Use a mouse jiggler or enable "mouse movement" in the power settings to prevent the PC from going to sleep due to inactivity.
- Disable "fast startup" in the power settings as it can override modified power settings.
- Manually create a registry key to disable sleep: Create a DWORD value named "DisableSleep" in HKEYLOCALMACHINE\SYSTEM\CurrentControlSet\Control\Power, and set its value to 1.
Related Questions and Answers:
- Can I use this method on Windows XP or Windows Vista? No, it only works on Windows 7 and later.
- Will this affect the battery life of my laptop? Yes, it can slightly increase battery consumption.
- Can I use a third-party app to do this? Yes, but this method does not require any software installation.
- Why is my PC still locking or sleeping after using this method? Make sure you restarted your PC after modifying the power settings.
- How can I re-enable sleep after using this method? Change the value of the DWORD key "DisableSleep" in the registry to 0.
Related Hot Sale Products:
- Razer Viper Ultimate Wireless Gaming Mouse
- Logitech G PRO Wireless Gaming Mouse
- HyperX Fury S Pro Gaming Mouse Pad
- Corsair K95 RGB Platinum XT Mechanical Gaming Keyboard
- Samsung Odyssey Neo G7 Gaming Monitor
Pre:What spice contains the most antioxidants
Next:What can be done to prevent a PC from switching to sleep mode without setting this up in the system settings