[TOOL] EzWindSLIC: Easily activate Windows 7/Vista/Server 2008 (R2)/Server 2012 (R2)... 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. Krinal

    Krinal MDL Novice

    Oct 6, 2018
    23
    15
    0
    Hi, Why only Windows server Standard edition is supported in 2019 series? Or the list is not updated in first post?

    I mean why other are not added?
     
  2. Exe Csrss

    Exe Csrss MDL Senior Member

    Dec 9, 2020
    341
    266
    10
    At that time, I could only find Server 2019 Standard SLP serial. After a lot of searching I found Datacenter serial as well today, will add support in v3.01.
    BTW @Tito please add the datacenter serials in your thread Server 2019 OEM:SLP keys. :)
     
  3. Tito

    Tito Super Mod / Adviser
    Staff Member

    Nov 30, 2009
    17,873
    16,467
    340
    @Exe Csrss

    Where's the proof that the key you "found" is from an actual OEM:SLP installation, not just a generated one?
     
  4. Exe Csrss

    Exe Csrss MDL Senior Member

    Dec 9, 2020
    341
    266
    10
  5. Tito

    Tito Super Mod / Adviser
    Staff Member

    Nov 30, 2009
    17,873
    16,467
    340
  6. Exe Csrss

    Exe Csrss MDL Senior Member

    Dec 9, 2020
    341
    266
    10
    Ok
     
  7. Exe Csrss

    Exe Csrss MDL Senior Member

    Dec 9, 2020
    341
    266
    10
    EzWindSLIC 3.01
    add support for server 2019 datacenter
    replace compressed2txt with wsf solution
     
  8. wilenty

    wilenty MDL Member

    Jan 15, 2014
    214
    386
    10
    Hello @Exe Csrss,
    because I more like W7 than W10, so, I decided to add my contribution to your project.

    I have tried to use your work on VM with (U)EFI, but there is no CSM/Legacy BIOS, so, I tested it on W8.1.


    Original Script part:
    Code:
    @echo off
    title Original Script part
    set "_eline=call :colortxt ********ERROR******** %red%"
    set "_pak=echo Press any key to exit... & pause %_nul% & goto exit"
    set "_nul=1>nul 2>nul"
    set DateTime=%date% %time%
    rem script part
    :mntesp
    echo:
    for %%# in (Q W E R T Y U I O P A S D F G H J K L Z X C V B N M) do if exist %%#:\EFI\Microsoft\Boot\en-US\*.mui set _espalreadymount=%%#
    if defined _espalreadymount (
        echo EFI System Partition already mounted at %_espalreadymount%:
        set _ltr=%_espalreadymount%:
    )
    if not defined _espalreadymount for %%# in (Q W E R T Y U I O P A S D F G H J K L Z X C V B N M) do (mountvol /? | find /i "%%#:" %_nul% || set "_ltr=%%#:")
    if not defined _espalreadymount (
        mountvol %_ltr% /s %_nul%
        if exist %_ltr%\EFI (
            echo EFI System Partition successfully mounted at %_ltr%.
        ) else (
    rem        %_eline%
            echo Failed to mount EFI System Partition at %_ltr%.
    rem        %_pak%
        )
    )
    rem exit /b
    :: (...)
    :exit
    mountvol %_ltr% /d >nul 2>&1
    rem end of script part
    echo. %DateTime%
    echo. %date% %time%
    echo _ltr=%_ltr%
    pause
    

    Mount to a Letter:
    Code:
    @echo off
    title Mount to a Letter
    set "_eline=call :colortxt ********ERROR******** %red%"
    set "_pak=echo Press any key to exit... & pause %_nul% & goto exit"
    set "_nul=1>nul 2>nul"
    set DateTime=%date% %time%
    rem script part
    :mntesp
    echo:
    ::for %%# in (Q W E R T Y U I O P A S D F G H J K L Z X C V B N M) do if exist %%#:\EFI\Microsoft\Boot\en-US\*.mui set _espalreadymount=%%#
    for /f %%W in (' mountvol /? ^| find ":\" ') do if exist %%W\EFI\Microsoft\Boot\BCD set _espalreadymount=%%W
    if defined _espalreadymount (
        echo EFI System Partition already mounted at %_espalreadymount%:
        set _ltr=%_espalreadymount%
    ) else for %%W in (Z Y X W V U T S R P O N M L K J I H G F E D C B A) do call :MntSetLetter %%W
    ::if not defined _espalreadymount for %%# in (Q W E R T Y U I O P A S D F G H J K L Z X C V B N M) do (mountvol /? | find /i "%%#:" %_nul% || set "_ltr=%%#:")
    goto :MntEspNext
    :MntSetLetter
    if not defined _ltr if not exist %1:\ set _ltr=%1:
    goto :EOF
    :MntEspNext
    if not defined _espalreadymount (
       mountvol %_ltr% /s %_nul%
       if exist %_ltr%\EFI\Microsoft\Boot\BCD (
           set _unmount=%_ltr%
           echo EFI System Partition successfully mounted at %_ltr%.
       ) else (
    rem       %_eline%
           echo Failed to mount EFI System Partition at %_ltr%.
    rem       %_pak%
       )
    )
    rem exit /b
    :: (...)
    :exit
    ::mountvol %_ltr% /d >nul 2>&1
    if defined _unmount (
       echo Unmounting EFI System Partition at %_unmount%.
       mountvol %_unmount% /d >nul 2>&1
    )
    rem end of script part
    echo. %DateTime%
    echo. %date% %time%
    echo _ltr=%_ltr%
    echo _unmount=%_unmount%
    pause
    

    Mount to a Folder:
    Code:
    @echo off
    title Mount to a Folder
    set "_eline=call :colortxt ********ERROR******** %red%"
    set "_pak=echo Press any key to exit... & pause %_nul% & goto exit"
    set "_nul=1>nul 2>nul"
    set DateTime=%date% %time%
    rem script part
    :mntesp
    echo:
    ::for %%# in (Q W E R T Y U I O P A S D F G H J K L Z X C V B N M) do if exist %%#:\EFI\Microsoft\Boot\en-US\*.mui set _espalreadymount=%%#
    for /f %%W in (' mountvol /? ^| find ":\" ') do if exist %%W\EFI\Microsoft\Boot\BCD set _espalreadymount=%%W
    if defined _espalreadymount (
        echo EFI System Partition already mounted at %_espalreadymount%:
        set _ltr=%_espalreadymount%
    ) else goto :MntESPpart
    goto :MntEspNext
    :MntESPpart
    set _ltr=%WinDir%\Temp\EfiSysPart
    if not exist "%_ltr%"    mkdir "%_ltr%"
    mountvol "%_ltr%" /s %_nul%
    if exist "%_ltr%\EFI\Microsoft\Boot\BCD" (
       set _unmount=%_ltr%
       echo EFI System Partition successfully mounted at %_ltr%.
    ) else (
    rem   %_eline%
       echo Failed to mount EFI System Partition at %_ltr%.
    rem   %_pak%
    )
    :MntEspNext
    rem exit /b
    :: (...)
    :exit
    ::mountvol %_ltr% /d >nul 2>&1
    if defined _unmount (
       echo Unmounting EFI System Partition at %_unmount%.
       mountvol "%_unmount%" /d >nul 2>&1
       rmdir /q "%_unmount%"
    )
    rem end of script part
    echo. %DateTime%
    echo. %date% %time%
    echo _ltr=%_ltr%
    echo _unmount=%_unmount%
    pause
    

    And replace:
    Code:
    :exit
    mountvol %_ltr% /d >nul 2>&1
    
    to the more flexible solution in given examples.
    Because in my opinion you don't need to unmount the ESP partition if your script not mounted it.


    Check the examples, and add one of them if you like it. :)

    BTW, because the poll is closed, I will say that not use PowerShell if you don't really need it. Not everyone has hundred of RAM and NVME SSD in RAID array. ;)

    P.S.
    M$ should test their OS on the cheapest computers/laptops from the market, then the OS will be much better optimized.
     
  9. Peto556

    Peto556 MDL Novice

    Friday
    2
    0
    0
    Hi, I was gonna activate Win7 Ultimate but AIO script hangs on Loading .. forever. Same for traditional version. What coulb be the issue here?
     
  10. Exe Csrss

    Exe Csrss MDL Senior Member

    Dec 9, 2020
    341
    266
    10
    Try right clicking and hit run as administrator.
     
  11. Peto556

    Peto556 MDL Novice

    Friday
    2
    0
    0
    Yeah I tried that, didnt help. But I managed to install and activate finally, very good work.

    Thing is I had to press Enter couple times, it didnt switch from the "Loading" stage by itself on my machine for some reason. Other issue was when I was starting it from a desktop location, it was not able to find the correct path to a script again after pressing Enter, because of the special char in my user name. Just a minor glitches though, but took me an hour or so to figure it out. Frustration and bashing the Enter key actually helped this time. :rolleyes: THanks again for this script.