eliweitzman / EnterpriseTechTool

A one-stop-shop powershell-based application for automating and abstracting enterprise service tasks!
BSD 3-Clause "New" or "Revised" License
9 stars 1 forks source link

VBScript Deprecation - slmgr #90

Open eliweitzman opened 5 months ago

eliweitzman commented 5 months ago

With the recent notice of VBScript ejng deprecated (https://techcommunity.microsoft.com/t5/windows-it-pro-blog/vbscript-deprecation-timelines-and-next-steps/ba-p/4148301), we might need to re-evaluate some ETT tools currently relying on VBScript, including the license checker tool (slmgr)

TheDeadGPU commented 2 months ago

Get Windows Activation Key PS Command: (Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey

TheDeadGPU commented 2 months ago

Get Windows Activation Type PS Command: Get-CimInstance -ClassName SoftwareLicensingProduct | ? { $_.PartialProductKey -ne $null } | Select Name, Description, PartialProductKey, LicenseStatus