Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124


Maintaining Remote Desktop Services (RDS) servers is essential for ensuring optimal performance and user experience. To address this need, I have developed a PowerShell scripts that automates the maintenance of an RDS Collection. This script performs crucial tasks such as logging server names, managing user connections, and resetting servers. By regularly executing these actions, the script helps prevent performance degradation and keeps the servers running smoothly and efficiently.
This PowerShell project automates the maintenance of a Remote Desktop Services (RDS) Collection, including both the RD Connection Broker and all associated RDS session hosts. The script is designed to be executed during scheduled maintenance windows and includes full logging to help with troubleshooting and auditing.
✅ Modular, automated, and user-aware
This script reduces manual work while ensuring a safe and clean reboot cycle.
Logs for all script steps are recorded in a text file to maintain a trace and facilitate troubleshooting. The log file is located at C:\Report\RDSLog_DATE_Time.txt

https://github.com/aymenjaz/PowerShell/tree/main/RDS%20Collection%20Maintenance
Thanks