<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Teoman Ege Selcuk</title>
    <description>The latest articles on DEV Community by Teoman Ege Selcuk (@teoman_egeselcuk_d962da6).</description>
    <link>https://dev.to/teoman_egeselcuk_d962da6</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3427794%2F27ca7842-b5a7-45b4-8ae6-6be5cafeb3de.jpg</url>
      <title>DEV Community: Teoman Ege Selcuk</title>
      <link>https://dev.to/teoman_egeselcuk_d962da6</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/teoman_egeselcuk_d962da6"/>
    <language>en</language>
    <item>
      <title>PowerShell on Windows 11 Home: How to cap Display/Sleep/Hibernate at 5 minutes (300 s) regardless of user changes?</title>
      <dc:creator>Teoman Ege Selcuk</dc:creator>
      <pubDate>Mon, 11 Aug 2025 17:39:07 +0000</pubDate>
      <link>https://dev.to/teoman_egeselcuk_d962da6/title-powershell-on-windows-11-home-how-to-cap-displaysleephibernate-at-5-minutes-300-s-7ag</link>
      <guid>https://dev.to/teoman_egeselcuk_d962da6/title-powershell-on-windows-11-home-how-to-cap-displaysleephibernate-at-5-minutes-300-s-7ag</guid>
      <description>&lt;p&gt;I can set idle timers with powercfg (e.g., 2–3 minutes for Sleep/Hibernate) on Windows 11 Home and they apply fine.&lt;/p&gt;

&lt;p&gt;I need to enforce a maximum of 5 minutes so users (incl. local admins) can pick shorter timeouts but not exceed 300 seconds for:&lt;/p&gt;

&lt;p&gt;VIDEOIDLE (Turn off display after)&lt;/p&gt;

&lt;p&gt;STANDBYIDLE (Sleep after)&lt;/p&gt;

&lt;p&gt;HIBERNATEIDLE (Hibernate after)&lt;/p&gt;

&lt;p&gt;Environment/limits: Win11 Home, AC/DC, no GPO/AppLocker. Browser keep-awake is already handled separately with /requestsoverride.&lt;/p&gt;

&lt;p&gt;Tried:&lt;/p&gt;

&lt;p&gt;Just writing values → can be raised later.&lt;/p&gt;

&lt;p&gt;A crude clamp that parses powercfg /q → unreliable with plan changes/locales.&lt;/p&gt;

&lt;p&gt;Looking for: A PowerShell solution (preferably a SYSTEM scheduled task) that clamps to 300 s on the active plan and survives plan switches and GUI/powercfg edits, ideally using GUIDs/APIs rather than parsing localized output. Minimal example appreciated.&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>microsoft</category>
      <category>programming</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
