در ویندوز سرورهای ۲۰۱۶ و ۲۰۱۹، پس از نصب نقش Remote Desktop Services (RDS)، یک دوره آزمایشی ۱۲۰ روزه (grace period) فعال میشود که در این مدت، بدون نیاز به نصب مجوزهای دسترسی (RDS CAL)، میتوان از خدمات ریموت دسکتاپ استفاده کرد. پس از پایان این دوره، کاربران دیگر قادر به اتصال به سرور نخواهند بود و باید مجوزهای لازم را تهیه و نصب کرد. با این حال، در محیطهای آزمایشی یا لابراتوارها، میتوان با انجام تغییراتی در رجیستری ویندوز، این دوره را مجدداً تنظیم کرد.
هشدار مهم
این روش تنها برای محیطهای آزمایشی توصیه میشود و استفاده از آن در محیطهای تولیدی (Production) ممکن است با قوانین مجوزدهی مایکروسافت مغایرت داشته باشد. همچنین، تغییرات در رجیستری ویندوز میتواند خطرناک باشد؛ بنابراین، قبل از انجام این مراحل، حتماً از سیستم خود نسخه پشتیبان تهیه کنید.
مراحل تنظیم مجدد دوره ۱۲۰ روزه RDS
-
باز کردن ویرایشگر رجیستری (Registry Editor):
-
در سرور میزبان RDS، برنامه “regedit” را بهعنوان مدیر (Administrator) اجرا کنید.
-
-
مسیریابی به کلید مورد نظر:
-
به مسیر زیر بروید:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\RCM\GracePeriod
-
-
تغییر مجوزهای کلید GracePeriod:
-
روی پوشه “GracePeriod” راستکلیک کرده و گزینه “Permissions” را انتخاب کنید.
-
در پنجره باز شده، روی “Advanced” کلیک کنید.
-
در بخش “Owner”، روی “Change” کلیک کرده و گروه “Administrators” را انتخاب کنید.
-
تیک گزینههای “Replace owner on subcontainers and objects” و “Replace all child object permission entries with inheritable permission entries from this object” را فعال کرده و تغییرات را اعمال کنید.
-
-
حذف مقدار Timebomb:
-
در پوشه “GracePeriod”، مقدار باینریای با نامی مشابه “L$RTMTIMEBOMB” وجود دارد.
-
روی این مقدار راستکلیک کرده و گزینه “Delete” را انتخاب کنید.
-
-
راهاندازی مجدد سرور:
-
پس از حذف مقدار مذکور، ویرایشگر رجیستری را ببندید و سرور را ریستارت کنید تا تغییرات اعمال شوند.
-
بررسی موفقیتآمیز بودن عملیات
برای اطمینان از موفقیتآمیز بودن تنظیم مجدد دوره، میتوانید از ابزار “RD Licensing Diagnoser” در Server Manager استفاده کنید. اگر عملیات بهدرستی انجام شده باشد، کاربران باید بتوانند بدون نیاز به RDS CAL به سرور متصل شوند.
مشاهده مدت زمان باقیمانده از دوره آزمایشی با PowerShell
برای بررسی تعداد روزهای باقیمانده از دوره آزمایشی، میتوانید از دستور زیر در PowerShell استفاده کنید:
نتیجهگیری
با استفاده از این روش، میتوانید دوره آزمایشی ۱۲۰ روزه RDS را در ویندوز سرورهای ۲۰۱۶ و ۲۰۱۹ تنظیم مجدد کنید. تأکید میشود که این روش فقط برای محیطهای آزمایشی مناسب است و در محیطهای تولیدی باید مجوزهای رسمی RDS CAL تهیه و نصب شوند.
Sure! Here’s the English version of the article based on the original and the translated content:
—
How to Reset the 120-Day RDS Grace Period on Windows Server 2016 and 2019
In Windows Server 2016 and 2019, after installing the Remote Desktop Services (RDS) role, a 120-day grace period is activated. During this time, users can access Remote Desktop services without the need for RDS CALs (Client Access Licenses).
After the grace period expires, users will no longer be able to connect, and valid licenses must be installed. However, in testing or lab environments, it’s possible to reset this grace period by modifying the Windows Registry.
—
Steps to Reset the RDS Grace Period
1. Open the Registry Editor:**
– On the RDS host server, run `regedit` as an Administrator.
2. Navigate to the following key:**
“`
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\RCM\GracePeriod
“`
3. Change permissions on the GracePeriod key:**
– Right-click on the `GracePeriod` folder and select **Permissions**.
– Click on **Advanced**.
– Under the **Owner** section, click **Change** and select the **Administrators** group.
– Check the boxes for:
– *Replace owner on subcontainers and objects*
– *Replace all child object permission entries with inheritable permission entries from this object*
– Apply the changes.
4. Delete the timebomb value:**
– Inside the `GracePeriod` key, find a binary value with a name like `L$RTMTIMEBOMB`.
– Right-click it and delete it.
5. Restart the server:**
– Close the Registry Editor and restart the server to apply the changes.
—
Verify If It Worked
After reboot, use the **RD Licensing Diagnoser** tool in Server Manager to confirm if the grace period was successfully reset. If done correctly, users should be able to connect again without RDS CALs.
—
Check Remaining Days with PowerShell
You can use the following PowerShell command to check how many days are left in the grace period:
“`powershell
(invoke-cimmethod -inputobject (get-ciminstance -namespace root/CIMV2/TerminalServices -classname Win32_TerminalServiceSetting) -methodname GetGracePeriodDays).DaysLeft
“`
—
Conclusion
By following the steps above, you can reset the 120-day RDS grace period on Windows Server 2016 and 2019. Remember: **this is only recommended for testing environments**. In production, you should purchase and install proper RDS CALs to comply with Microsoft licensing policies.
—
Let me know if you want it styled for your website or formatted as a downloadable PDF or HTML file.


