Category Archives: Remote Desktop

How to Exclude Administrator from RDP Session Timeout via LGPO

How to Exclude Administrator Account from RDP Session Timeout via Local Group Policy

If you have implemented a global RDP session timeout rule on a standalone server but want to ensure that the Administrator account remains unaffected (to prevent long-running tasks or database backups from getting interrupted), you can achieve this using Multiple Local Group Policy Objects (MLGPO).

Step-by-Step Guide:

  1. Press Windows Key + R, type mmc, and hit Enter to open an empty Microsoft Management Console.
  2. Go to File -> Add/Remove Snap-in… (or press Ctrl + M).
  3. Select Group Policy Object Editor from the left column and click Add >.
  4. In the wizard popup, click Browse… and navigate to the Users tab.
  5. Select the Administrators group, click OK, and then click Finish. Click OK again to close the snap-in window.
  6. Now, expand the newly created Local Computer\Administrators Policy on the left side and navigate to:
    User Configuration -> Administrative Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Session Host -> Session Time Limits
  7. Double-click on “Set time limit for active but idle Remote Desktop Services sessions” (and/or Set time limit for disconnected sessions), set them to Disabled, and click Apply.
  8. Open Command Prompt as Administrator and run gpupdate /force to apply changes instantly.

Note: Non-administrative users will still be restricted by the default local policy timeouts, while Administrators will now have unlimited session times.

📖 Read more to read in Sinhala (සිංහලෙන් කියවන්න ක්ලික් කරන්න)

ඩොමේන් (Domain) එකක් නැති සර්වර් එකක, සාමාන්‍ය යූසර්ලාට RDP Timeout එක දාලා තියෙද්දී, Administrator ට විතරක් ඒක අයින් කරන්නේ (Bypass කරන්නේ) මෙහෙමයි:

සිංහල පියවරවල්:

  • Windows Key + R ඔබලා mmc ලෙස ටයිප් කර Enter කරන්න.
  • උඩ Menu එකෙන් File -> Add/Remove Snap-in… වෙත යන්න.
  • ලිස්ට් එකෙන් Group Policy Object Editor තෝරා Add > බටන් එක ඔබන්න.
  • එන Box එකෙන් Browse… ගොස්, එහි ඇති Users ටැබ් එකට මාරු වී, Administrators යන්න තෝරා OK කර Finish කරන්න.
  • දැන් වම් පැත්තේ හැදුණු Local Computer\Administrators Policy එක දිගහැර මෙම පාත් එකට යන්න:
    User Configuration -> Administrative Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Session Host -> Session Time Limits
  • එහි ඇති “Set time limit for active but idle Remote Desktop Services sessions” (සහ අවශ්‍ය නම් disconnected sessions) යන්න Double-click කර Disabled කරන්න.
  • අවසන් වරට CMD එකක් Run as Administrator ලෙස ඇරලා gpupdate /force කමාන්ඩ් එක රන් කරන්න.