[TOOL] EzWindSLIC: Easily activate Windows 7/Vista/Server 2008-2019 on UEFI-GPT

Discussion in 'MDL Projects and Applications' started by Exe Csrss, Apr 9, 2021.

?

Should I use powershell in this script to add more features? Vista will no longer be supported.

Poll closed May 7, 2021.
  1. Yes

    5 vote(s)
    55.6%
  2. No

    4 vote(s)
    44.4%
  1. mdl052020

    mdl052020 MDL Member

    May 31, 2020
    1,047
    1,140
    60
    Yes will be very good if @exe csrss will look into his script for silent execution switches without any user interaction plus no reboot.
     
  2. Exe Csrss

    Exe Csrss MDL Senior Member

    Dec 9, 2020
    393
    348
    10
    Ok I will try. :)
    I have a suggestion for you activate.cmd as well. You can use this code to see if system is EFI:
    Code:
    bcdedit /enum {current} | find /i "winload.efi" >nul 2>&1 && set efi=1
    
     
  3. mdl052020

    mdl052020 MDL Member

    May 31, 2020
    1,047
    1,140
    60
    Last time when i used it i found two boot entries into system if we cross check via reboot then menu for boot from usb then machine said there are two boot entries for same os drive. but i think in real case it must only be one so bcdedit delete real boot entry will also be considered & system will only show windslic entry on boot for os drive :)
     
  4. George King

    George King MDL Addicted

    Aug 5, 2009
    654
    521
    30
    Nice, I was thinking about it, but your script does this check already, so I decided, there is no need to do it twice :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Exe Csrss

    Exe Csrss MDL Senior Member

    Dec 9, 2020
    393
    348
    10
    I have another suggestion. You can build your project so that it works on vista, 8, 8.1, 10, server, etc. as well. You can use code like this:
    Code:
    :: Detect OS version
    for /f "tokens=4,5 delims=[]. " %%G in ('ver') do set osver=%%G.%%H
    :: Detect OS type
    for /f "tokens=2* skip=2" %%G in ('reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "InstallationType" 2>nul') do set ostype=%%H
    :: NT 6.0 doesn't have InstallationType registry value
    if not defined ostype (
    echo %osedition% | find "Server" %_nul% && set ostype=Server
    if not defined ostype set ostype=Client
    )
    REM add more editions as per requirement
    for %%# in (
    6.0:Client:Ultimate:OEMSLP
    6.0:Client:Enterprise:KMS
    6.0:Server:ServerEnterprise:OEMSLP
    6.1:Client:Starter:OEMSLP
    6.1:Client:Enterprise:KMS
    6.1:Client:UltimateN:IR7
    6.2:Client:Professional:KMS
    10.0:Client:Professional:HWID
    ) do (
    for /f "tokens=1-4 delims=:" %%G in ("%%#") do if /i %osver% EQU %%G if /i %ostype% EQU %%H if /i %EditionName% EQU %%I set "ActivationExploit=%%J"
    )
    
     
  6. George King

    George King MDL Addicted

    Aug 5, 2009
    654
    521
    30
    Nice idea, I have build it now for 7 only. I will update it in future for others OSes too.
    Just let me know when you finish realease with switches :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. Exe Csrss

    Exe Csrss MDL Senior Member

    Dec 9, 2020
    393
    348
    10
    I will start work tomorrow. :)
     
  8. Sajjo

    Sajjo MDL Expert

    Feb 6, 2018
    1,652
    2,254
    60
    @exe csrss
    Got some time to do a little testing, i guess i m referring to (partial anyway) post #4
    17-04-2021 16.53.41.ls.jpg

    17-04-2021 16.54.30.ls.jpg

    After reboot

    17-04-2021 16.55.42.ls.jpg
    It's a X230, GPT, i have a valid SLIC 2.1 - i also have a valid Win 8 Pro key in MSDM table.
    Windows is freshly installed for this exercise - no updates, no nothing. Straight from official install image.
    I have tried numerous combinations and also tested v2.0, 2.0.1, 2.1 but this is an enigma
    If i try the same with Windows Loader (2.2.2) the activation is still good after a reboot (since i have a valid SLIC)
     
  9. Windows_Addict

    Windows_Addict MDL Addicted

    Jul 19, 2018
    909
    2,009
    30
  10. Exe Csrss

    Exe Csrss MDL Senior Member

    Dec 9, 2020
    393
    348
    10
    This tool cannot detect SLIC in firmware, yet.
     
  11. Exe Csrss

    Exe Csrss MDL Senior Member

    Dec 9, 2020
    393
    348
    10
    @Tito moved this to the MDL Projects and Applications forum :D
    Edit: Stickied as well!
     
  12. cbsvitzer

    cbsvitzer MDL Member

    Feb 4, 2010
    120
    72
    10
    #33 cbsvitzer, Apr 18, 2021
    Last edited: Apr 18, 2021
    What about Windows Server 2012 R2?
     
  13. Exe Csrss

    Exe Csrss MDL Senior Member

    Dec 9, 2020
    393
    348
    10
    I will think about it.
     
  14. mdl052020

    mdl052020 MDL Member

    May 31, 2020
    1,047
    1,140
    60
    Yes it must be stickied cuz its a good tool by you for all win7 lovers on moden machines with gpt disk layout on UEFI firmware :)
     
  15. Tito

    Tito Super Mod / Adviser
    Staff Member

    Nov 30, 2009
    17,888
    16,542
    340
  16. Tito

    Tito Super Mod / Adviser
    Staff Member

    Nov 30, 2009
    17,888
    16,542
    340
    @exe csrss

    Yes, that's a start, but you'll also need to validate the SLIC table (a bit tricky job), and then determine the SLIC version (this part is easy, as you just need to read the value of a specific offset).
     
  17. Exe Csrss

    Exe Csrss MDL Senior Member

    Dec 9, 2020
    393
    348
    10
    I think I will add SLIC validation and version checking in a later version :).
    For now, I will just check if SLIC table exists and ask if users want to continue.
     
  18. Krinal

    Krinal MDL Novice

    Oct 6, 2018
    30
    38
    0
    Hi @exe csrss Do you have any idea, if windows server 2019 OEM activation works with emulated SLIC?

    If it works, it's support can be added to the script.