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:
- Press Windows Key + R, type
mmc, and hit Enter to open an empty Microsoft Management Console. - Go to File -> Add/Remove Snap-in… (or press Ctrl + M).
- Select Group Policy Object Editor from the left column and click Add >.
- In the wizard popup, click Browse… and navigate to the Users tab.
- Select the Administrators group, click OK, and then click Finish. Click OK again to close the snap-in window.
- 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 - 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.
- Open Command Prompt as Administrator and run
gpupdate /forceto 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කමාන්ඩ් එක රන් කරන්න.