================================================= CHECK RDP REMAINING DAYS ================================================= wmic /namespace:\\root\CIMV2\TerminalServices PATH Win32_TerminalServiceSetting WHERE (__CLASS !="") CALL GetGracePeriodDays sc queryex TermService taskkill /PID 17372 /F ================================================= ACCES RDP FORCED EXPIRED DAYS ================================================= mstsc /console /v:192.168.0.10 /admin ================================================= REARM WINDOWS SERVER 2019 LICENSE ================================================= slmgr /dlv (With this code you see detailed license info) slmgr /rearm (reset the trial period) �?? Restart the server slmgr /xpr ( use this to see if Windows is activated ) net stop wuauserv net start wuauserv ================================================= ACTIVATE OFFICE 2019 CMD ================================================= cd /d %ProgramFiles%\Microsoft Office\Office16 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 /setprt:1688 cscript ospp.vbs /unpkey:6MWKP >nul cscript ospp.vbs /inpkey:NMMKJ-6RK4F-KMJVX-8D9MJ-6MWKP cscript ospp.vbs /sethst:e8.us.to cscript ospp.vbs /sethst:107.175.77.7 cscript ospp.vbs /act cscript ospp.vbs /dinstid cscript ospp.vbs /actcid: 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 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 DISM /Online /Get-CurrentEdition DISM /Online /Get-TargetEditions DISM /Online /Set-Edition:ServerStandard /ProductKey:N69G4-B89J2-4G8F4-WWYCC-J464C /AcceptEULA ( convert standardEVAL to - standard ) 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; Method 2 cscript //nologo %windir%\system32\slmgr.vbs /ipk N69G4-B89J2-4G8F4-WWYCC-J464C cscript //nologo %windir%\system32\slmgr.vbs /skms kms.msgang.com cscript //nologo %windir%\system32\slmgr.vbs /ato