wmic /namespace:\\root\CIMV2\TerminalServices PATH Win32_TerminalServiceSetting WHERE (__CLASS !="") CALL GetGracePeriodDays
Note: This command is querying Windows Management Instrumentation (WMI) to get information about the Remote Desktop Services (Terminal Services) grace period days.
sc queryex TermService
Note: This command is used to query the status of the Terminal Services service (Remote Desktop Services) in Windows with extended information.
taskkill /PID 17372 /F
Note: This command forcibly terminates a Windows process with the Process ID (PID) 17372.
ACCES RDP FORCED EXPIRED DAYS
mstsc /console /v:192.168.0.10 /admin
This command is used to launch the Remote Desktop Connection (RDC) client in Windows with specific parameters.
REARM WINDOWS SERVER 2019 LICENSE
slmgr /dlv
Note: With this code you see detailed license info
slmgr /rearm
Note: Reset the trial period + Restart the server
slmgr /xpr
Note: Use this to see if Windows is activated
net stop wuauserv
net start wuauserv
ACTIVATE OFFICE 2019 CMD
cd /d %ProgramFiles%\Microsoft Office\Office16
or
cd /d %ProgramFiles(x86)%\Microsoft Office\Office16
for /f %x in ('dir /b ..\root\Licenses16\ProPlus2019VL*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%x"
cscript ospp.vbs /actcid: (value) to enter the Confirmation ID.
cscript ospp.vbs /dstatus
Activate Windows 10 Pro
Home: TX9XD-98N7V-6WMQ6-BX7FG-H8Q99
Home N: 3KHY7-WNT83-DGQKR-F7HPR-844BM
Home Single Language: 7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH
Home Country Specific: PVMJN-6DFY6-9CCP6-7BKTT-D3WVR
Professional: W269N-WFGWX-YVC9B-4J6C9-T83GX
Professional N: MH37W-N47XK-V7XM9-C7227-GCQG9
Education: NW6C2-QMPVW-D7KKK-3GKT6-VCFB2
Education N: 2WH4N-8QGBV-H22JP-CT43Q-MDWWJ
Enterprise: NPPR9-FWDCX-D2C8J-H872K-2YT43
Enterprise N: DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4
slmgr /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX
slmgr /skms kms8.msguides.com
slmgr /ato
Activate Windows SERVER 2019 StandardEvaluation
slmgr /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX
slmgr /skms kms8.msguides.com
slmgr /ato
/dli: displays basic license and activation information;
/dlv: displays detailed license and activation information;
/xpr: displays the expiration date of an installed license;
/upk: uninstalls the existing license key;
/cpky: removes license key information from the registry;
Convert Windows Server 2019 StandardEvaluation -> Standard
Windows Server 2016 Essentials: JCKRF-N37P4-C2D82-9YXRT-4M63B
Windows Server 2019 Essentials: WVDHN-86M7X-466P6-VHXV7-YY726
Windows Server 2019 Standard: N69G4-B89J2-4G8F4-WWYCC-J464C
Windows Server 2019 Datacenter: WMDGN-G9PQG-XVVXX-R3X43-63DFG
Windows Server 2022 Standard: VDYBN-27WPP-V4HQT-9VMD4-VMK7H
Windows Server 2022 Azure Edition: NTBV8-9K7Q8-V27C6-M2BTV-KHMXV
Windows Server 2022 Datacenter: WX4NM-KYWYW-QJJR4-XV3QB-6VM33