Public/OS/Test-Windows10ESULicense.ps1

<#
Copyright © 2025 Integris. For internal company use only. All rights reserved.
#>


FUNCTION Test-Windows10ESULicense {

[CmdletBinding()]
    PARAM ()

    $LicenseCheck = cscript.exe C:\Windows\system32\slmgr.vbs /dlv
    Start-Sleep 10
    IF ($LicenseCheck -like "*License Status: Licensed*") {
        RETURN $True
    }
    RETURN $False
}
New-Alias -Name Test-Win10ESULicense -Value Test-Windows10ESULicense