Skip to content

Instantly share code, notes, and snippets.

View erel24's full-sized avatar
🏠
Working from home

Erel erel24

🏠
Working from home
View GitHub Profile
@erel24
erel24 / reset-terminal-services.ps1
Created November 15, 2022 08:25 — forked from heywoodlh/reset-terminal-services.ps1
Script for renewing RDP License
## This Script is intended to be used for Querying remaining time and resetting Terminal Server (RDS) Grace Licensing Period to Default 120 Days.
## Developed by Prakash Kumar ([email protected]) May 28th 2016
## www.adminthing.blogspot.com
## Disclaimer: Please test this script in your test environment before executing on any production server.
## Author will not be responsible for any misuse/damage caused by using it.
Clear-Host
$ErrorActionPreference = "SilentlyContinue"
## Display current Status of remaining days from Grace period.