pbv7/reset-rds-grace-period — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a simple PowerShell tool for Windows servers that resets the Remote Desktop Services grace period back to the default 120 days, mainly for lab and development terminal servers where licensing is not set up yet.

When I run it normally, it should check and show how much grace time is left, then ask me to confirm before making changes. Add options so I can run it without prompts, and another option to restart the Remote Desktop Services afterward if I want the reset to take effect right away. Make it very clear that restarting those services will disconnect active remote sessions, but not log users off.

Please include helpful messages, basic safety checks, and clear errors if the script is not run as administrator or if it cannot access what it needs. Keep it as one easy to run PowerShell script, with a short README that explains the use cases and the exact commands for interactive mode, forced mode, and restarting the services.

Want more depth? Deep Reverse