Add Allow system required policy to Power Options in Windows  

    Add Allow system required policy to Power Options in Windows

    Add Allow system required policy to Power Options in Windows

    How to Add or Remove 'Allow system required policy' from Power Options in Windows
    Published by Category: Performance & Maintenance
    28 Dec 2021
    Designer Media Ltd

    How to Add or Remove "Allow system required policy" from Power Options in Windows


    The Allow system required policy setting in Power Options allows users to specify yes (default) or no to allow programs to prevent the computer from going to sleep automatically.

    This tutorial will show you how to add or remove the Allow system required policy setting under Sleep in Power Options for all users in Windows 7, Windows 8, and Windows 10.

    You must be signed in as an administrator to be able to add or remove this setting in Power Options.




    Contents

    • Option One: Add or Remove "Allow system required policy" in Power Options using Command Prompt
    • Option Two: Add or Remove "Allow system required policy" in Power Options using REG file



    EXAMPLE: "Allow system required policy" setting in Power Options
    Add Allow system required policy to Power Options in Windows-allow_system_required_policy.png






    OPTION ONE

    Add or Remove "Allow system required policy" in Power Options using Command Prompt


    1 Open an elevated command prompt.

    2 Type the command below you want to use into the elevated command prompt, and press Enter.

    (Add)
    REG ADD HKLM\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\A4B195F5-8225-47D8-8012-9D41369786E2 /v Attributes /t REG_DWORD /d 2 /f

    OR

    (Remove - default)
    powercfg -attributes SUB_SLEEP A4B195F5-8225-47D8-8012-9D41369786E2 +ATTRIB_HIDE

    3 You can now close the elevated command prompt if you like.






    OPTION TWO

    Add or Remove "Allow system required policy" in Power Options using REG file


    The downloaded .reg files below will modify the DWORD value in the registry key below.

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\A4B195F5-8225-47D8-8012-9D41369786E2

    Attributes DWORD

    1 = Remove
    2 = Add


    1 Do step 2 (add) or step 3 (remove) below for what you would like to do.


    2 To Add "Allow system required policy" to Power Options

    A) Click/tap on the Download button below to download the file below, and go to step 4 below.

    Add_Allow_system_required_policy_to_Power_Options.reg

    Download


    3 To Remove "Allow system required policy" from Power Options

    This is the default setting.

    A) Click/tap on the Download button below to download the file below, and go to step 4 below.

    Remove_Allow_system_required_policy_from_Power_Options.reg

    Download


    4 Save the .reg file to your desktop.

    5 Double click/tap on the downloaded .reg file to merge it.

    6 When prompted, click/tap on Run, Yes (UAC), Yes, and OK to approve the merge.

    7 You can now delete the downloaded .reg file if you like.


    That's it,
    Shawn Brink






  1. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #1

    Hello @Brink,

    Here is an additional batch script option . . .

    Code:
    @echo off
    :: ######################################################################################################################
    :: # Title     : Add Or Remove "Allow System Required Policy" From Power Options                                        #
    :: # Created By: Paul Black at TenForums.com/members/paul-black.html                                                    #
    :: # Created In: November 2020                                                                                          #
    :: # Tutorial  : https://www.tenforums.com/tutorials/108447-add-allow-system-required-policy-power-options-windows.html #
    :: ######################################################################################################################
    title Add Or Remove "Allow System Required Policy" - Written by Paul Black.
    mode con: cols=80 lines=25 & color 17
    set "params=%*"
    cd /d "%~dp0" && ( if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs") && fsutil dirty query %systemdrive% 1>nul 2>nul || ( echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "cmd.exe", "/k cd ""%~sdp0"" && %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs" && "%temp%\getadmin.vbs" && exit /b)
    %windir%\system32\reg.exe query "HKU\S-1-5-19" 1>nul 2>nul || ( echo. & echo  ERROR: This Batch file MUST be run in an ELEVATED cmd prompt [ Administrator ] & echo. & echo         Right-click the Batch file and click ^<Run as administrator^>. & echo. & echo ^>Press ANY key to EXIT . . . & pause >nul & goto :Exit )
    
    :Options
    echo. & echo  ==============================================================================
            echo  Add Or Remove "Allow System Required Policy" From Power Options.
            echo  ==============================================================================
    echo. & echo  Options:
    echo. & echo  [0] EXIT this Program.
    echo. & echo  [1] Add    "Allow System Required Policy" From Power Options.
            echo  [2] Remove "Allow System Required Policy" From Power Options [ Default ].
    echo. & echo  ==============================================================================
    echo.
    
    CHOICE /N /C 012 /M ">Enter an Option:"
    if %errorlevel%==3 goto Remove_System_Required_Policy
    if %errorlevel%==2 goto Add_System_Required_Policy
    if %errorlevel%==1 goto Exit
    goto :Options
    
    :Add_System_Required_Policy
    powercfg -attributes SUB_SLEEP A4B195F5-8225-47D8-8012-9D41369786E2 -ATTRIB_HIDE
    
    :Remove_System_Required_Policy
    powercfg -attributes SUB_SLEEP A4B195F5-8225-47D8-8012-9D41369786E2 +ATTRIB_HIDE
    
    echo. & echo  Processing COMPLETE.
    echo. & echo ^>Press ANY key to EXIT . . . & pause >nul & goto :Exit
    :Exit

    Last edited by Paul Black; 24 Nov 2020 at 08:30.
      My Computer


  2. Posts : 68,997
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #2

    Thank you @Paul Black.
      My Computers


  3. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #3

    Brink said:
    Thank you @Paul Black.
      My Computer


 

Tutorial Categories

Add Allow system required policy to Power Options in Windows Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 14:37.
Find Us




Windows 10 Forums