Jump to content
WindowsAddict

Microsoft Activation Scripts - (Fork, Open Source & clean from AV's detection)

Recommended Posts

Sponpa
:checkPrivileges 
NET FILE 1>NUL 2>&1
if '%errorlevel%' == '0' ( goto gotPrivileges
) else ( start /min powershell "saps -filepath '%0' -verb runas" >nul 2>&1)
exit /b

:gotPrivileges
stuff


Powershell alternative.

Share this post


Link to post
Share on other sites
ace_N_kelly

Can we keep the perfect "MAS_0.6_CRC32_656492C8.cmd" instead of all these new separate files  ??

Share this post


Link to post
Share on other sites
WindowsAddict
6 minutes ago, ace_N_kelly said:

Can we keep the perfect "MAS_0.6_CRC32_656492C8.cmd" instead of all these new separate files  ??

About "MAS_0.6_CRC32_656492C8.cmd" ,

I was using some usefuls codes which enabled the script to merge all the files in one, but i did some tests with av's like norton and bitdefender and result is heartbreaking to me, some parts of the script are blocked because of those codes.

Although it's clean from windows defender,  and most other av's.

 

In new MAS_0.7 i removed all those problematic codes and had to separate all the files because of it. Its sad for me.  

btw current scripts are probably the cleanest, i can't think of anything to make it more cleaner. 

In the end there's a good news, i tested with around 6 most used av's including norton and all parts of the scripts are fully clean. 

 

P.S.  My main (only) purpose in maintaining this fork is to create activators which are clean from av's. 

Share this post


Link to post
Share on other sites
ace_N_kelly

Thanks for the reply WindowsAddict 😃

Share this post


Link to post
Share on other sites
nsaneprince

Renewal task it's possible with the "no remnants" version of online kms? 

Share this post


Link to post
Share on other sites
WindowsAddict
2 hours ago, nsaneprince said:

Renewal task it's possible with the "no remnants" version of online kms? 

 Yes its possible, but it doesn't make much sense, because,

'No remnants' version is intended for those who cherish the warm fuzzy feeling in having the system clean from activators remnants. 

In case of online KMS activation, only registered KMS server name in registry is the remnant, cleaning it doesn't help the user in any 'Real' way but user lose the Global Activation feature (use ReadMe to know about it).

 

Since Renewal task create some files and scheduled task in the system for lifetime, in this case 'No remnants' version in task doesn't make much sense IMO. See it this way, if user is happy to store some files related to KMS then why not also register the KMS server name so user can benefit from the full potential of online KMS activation features. let me know if you see it differently.

 

Share this post


Link to post
Share on other sites
nsaneprince
4 hours ago, WindowsAddict said:

 let me know if you see it differently.

I agree with everything you said, good job :D

Share this post


Link to post
Share on other sites
WindowsAddict

Corrected the Error in Credits List.

 

I mistakenly mentioned the name @Rambin for Mod slc.dll but actually correct name is @leitek8

Apologies.  :(

Spoiler

I got confused by the changelogs https://gitlab.com/angelkyo/w10-digitallicense/tags/v2.7.9 of angelkyo's tool and with this https://tinyurl.com/y928qd8p post, and i thought Rambin and leitek8 were the different name of the same person.

 

 

Edited by WindowsAddict

Share this post


Link to post
Share on other sites
leitek8

@Sponpa

Does it work?

 

Retail (DL)

Spoiler
#define _WIN32_WINNT _WIN32_WINNT_WIN10
#include <windows.h>
#define malloc(n) LocalAlloc(LMEM_ZEROINIT, n)
typedef DWORD SLDATATYPE;
typedef GUID SLID;
typedef DWORD SLIDTYPE;
typedef struct {SLID SkuId; DWORD eStatus; DWORD dwGraceTime; DWORD dwTotalGraceDays; HRESULT hrReason; UINT64 qwValidityExpiration;} SL_LICENSING_STATUS;
typedef void *HSLC;
static SLID consumed_skuids[256];
HRESULT WINAPI SLOpen(HSLC *out) {*out = (void*)1; return S_OK;}
BOOL APIENTRY WINAPI dll_main(HINSTANCE hModule, DWORD code, LPVOID ress) {return TRUE;}
HRESULT WINAPI SLClose(void *a1) {return S_OK;}

HRESULT WINAPI SLGetSLIDList(HSLC hSLC, SLIDTYPE eQueryIdType, SLID *pQueryId, SLIDTYPE eReturnIdType, UINT *pnReturnIds, SLID **ppReturnIds)
{
	*ppReturnIds = malloc(sizeof(SLID));
	memcpy((void*)*ppReturnIds, (void*)consumed_skuids, sizeof(SLID));
	*pnReturnIds = 1;
	return S_OK;
}

HRESULT WINAPI SLGetPKeyInformation(HSLC hSLC, SLID *pPKeyId, PCWSTR pwszValueName, SLDATATYPE *peDataType, UINT *pcbValue, PBYTE *ppbValue)
{
	if ((lstrcmpW (pwszValueName, L"Channel")) == 0) {
		*peDataType = REG_SZ;
		*ppbValue = LocalAlloc(0, 7);
		memcpy(*ppbValue, "Retail", 7);
		*pcbValue = 7;
		return S_OK;
	}
	return 0xC004F012;
}

HRESULT WINAPI SLGetLicensingStatusInformation(HSLC hSLC, SLID *pAppID, SLID *pProductSkuId, PWSTR pwszRightName, UINT *pnStatusCount, SL_LICENSING_STATUS **ppLicensingStatus)
{
	SL_LICENSING_STATUS *entry = malloc(sizeof(SL_LICENSING_STATUS));
	memcpy((void*)&entry[0].SkuId, (void*)&consumed_skuids[0], sizeof(SLID));
	entry[0].eStatus = 1;
	*pnStatusCount = 1;
	*ppLicensingStatus = entry;
	return S_OK;
}

HRESULT WINAPI SLGetWindowsInformationDWORD(PCWSTR pwszValueName, DWORD* pdwValue)
{
	if ((lstrcmpW (pwszValueName, L"Kernel-ProductInfo")) == 0) GetProductInfo(10, 0, 0, 0, pdwValue);
	if ((lstrcmpW (pwszValueName, L"Security-SPP-GenuineLocalStatus")) == 0) *pdwValue = 1;
	return S_OK;
}

 

Spoiler
LIBRARY slc.dll
EXPORTS
SLGetProductSkuInformation = SLGetPKeyInformation
SLGetSLIDList
SLGetWindowsInformationDWORD
SLGetLicensingStatusInformation
SLOpen
SLClose
SLGetPKeyInformation

 

Spoiler
OPT=-Os -s -Wall
LDFLAGS=-nostartfiles -lntdll -nostdlib -luser32 -lcryptsp -lADVAPI32 -lshlwapi -lkernel32 -lole32 -Wl,--exclude-all-symbols -Wl,--enable-stdcall-fixup
CFLAGS=-fno-ident -fno-stack-check -fno-stack-protector -mno-stack-arg-probe -fno-asynchronous-unwind-tables -fno-exceptions -fno-align-functions -fno-align-labels -fno-align-jumps -funsigned-char -mtune=core2
all: slc32.dll slc.dll
slc32.dll: slshim.c
	gcc -m32 -Wl,-e_dll_main -municode $(OPT) $< slshim.def -shared -o [email protected] $(CFLAGS) $(LDFLAGS)
slc.dll: slshim.c
	gcc -Wl,-edll_main -municode $(OPT) $< slshim.def -shared -o [email protected] $(CFLAGS) $(LDFLAGS)

clean:
	rm -f *.dll

 

 

VL

Spoiler
#define _WIN32_WINNT _WIN32_WINNT_WIN10
#include <windows.h>
#include <time.h>
#define malloc(n) LocalAlloc(LMEM_ZEROINIT, n)
typedef DWORD SLDATATYPE;
typedef GUID SLID;
typedef DWORD SLIDTYPE;
typedef struct {SLID SkuId; DWORD eStatus; DWORD dwGraceTime; DWORD dwTotalGraceDays; HRESULT hrReason; UINT64 qwValidityExpiration;} SL_LICENSING_STATUS;
typedef void *HSLC;
static SLID consumed_skuids[256];
HRESULT WINAPI SLOpen(HSLC *out) {*out = (void*)1; return S_OK;}
BOOL APIENTRY WINAPI dll_main(HINSTANCE hModule, DWORD code, LPVOID ress) {return TRUE;}
HRESULT WINAPI SLGetWindowsInformationDWORD(PCWSTR pwszValueName, DWORD* pdwValue) {*pdwValue = 1; return S_OK;}
HRESULT WINAPI SLClose(void *a1) {return S_OK;} 

HRESULT WINAPI SLGetSLIDList(HSLC hSLC, SLIDTYPE eQueryIdType, SLID *pQueryId, SLIDTYPE eReturnIdType, UINT *pnReturnIds, SLID **ppReturnIds)
{
	*ppReturnIds = malloc(sizeof(SLID));
	memcpy((void*)*ppReturnIds, (void*)consumed_skuids, sizeof(SLID));
	*pnReturnIds = 1;
	return S_OK;
}

HRESULT WINAPI SLGetPKeyInformation(HSLC hSLC, SLID *pPKeyId, PCWSTR pwszValueName, SLDATATYPE *peDataType, UINT *pcbValue, PBYTE *ppbValue)
{
	if ((lstrcmpW (pwszValueName, L"Channel")) == 0) {
		*peDataType = REG_SZ;
		*ppbValue = LocalAlloc(0, 24);
		memcpy(*ppbValue, L"Volume:GVLK", 24);
		*pcbValue = 24;
		return S_OK;
	}
	return 0xC004F012;
}

HRESULT WINAPI SLGetLicensingStatusInformation(HSLC hSLC, SLID *pAppID, SLID *pProductSkuId, PWSTR pwszRightName, UINT *pnStatusCount, DWORD **ppLicensingStatus)
{
	DWORD *entry = malloc(sizeof(SL_LICENSING_STATUS));
	memcpy(entry, (void*)&consumed_skuids, sizeof(SLID));
	entry[4]  = 1;
	entry[5] = (2147483600 - time(NULL)) / 60;
	*pnStatusCount = 1;
	*ppLicensingStatus = entry;
	return S_OK;
}

 

Spoiler
LIBRARY slc.dll
EXPORTS
SLClose
SLGetLicensingStatusInformation
SLGetPKeyInformation
SLGetProductSkuInformation = SLGetPKeyInformation
SLGetSLIDList
SLGetWindowsInformationDWORD
SLOpen 

 

Spoiler
OPT=-Os -s -Wall
LDFLAGS=-nostartfiles -lntdll -luser32 -lcryptsp -lADVAPI32 -lshlwapi -lkernel32 -lole32 -Wl,--exclude-all-symbols -Wl,--enable-stdcall-fixup
CFLAGS=-fno-ident -fno-stack-check -fno-stack-protector -mno-stack-arg-probe -fno-asynchronous-unwind-tables -fno-exceptions -fno-align-functions -fno-align-labels -fno-align-jumps -funsigned-char -mtune=core2
all: slc32.dll slc.dll
slc32.dll: slshim.c
	gcc -m32 -Wl,-e_dll_main -municode $(OPT) $< slshim.def -shared -o [email protected] $(CFLAGS) $(LDFLAGS)
slc.dll: slshim.c
	gcc -Wl,-edll_main -municode $(OPT) $< slshim.def -shared -o [email protected] $(CFLAGS) $(LDFLAGS)

clean:
	rm -f *.dll

 

 

 

slc.7z

Edited by leitek8

Share this post


Link to post
Share on other sites
WindowsAddict

How to compile slc.dll file?


Download slc.7z Source Code file from the above @leitek8 post's.
Download this compiler,
https://sourceforge.net/projects/mingw-w64/files/x86_64-8.1.0-release-win32-sjlj-rt_v6-rev0.7z
Put source code folders in compiler folder in following way,
mingw64\slcR
mingw64\slcVL

Run compile.cmd
[slc.dll = 64bit, slc32.dll (rename to slc.dll) 32bit]
[slcR = For Digital License , slcVL = For KMS38]

Done. 

 

Thanks to @leitek8 for the instructions.

Edited by WindowsAddict

Share this post


Link to post
Share on other sites
happyuser2k19

What is the download link for the newest script? Can someone guide me to it?

Share this post


Link to post
Share on other sites
WindowsAddict
8 hours ago, happyuser2k19 said:

What is the download link for the newest script? Can someone guide me to it?

In first post of this thread, find a line named 

 # File Details and Download links

 

There you will find something like this,

 

Site: xxxxxxxxx
Sharecode: xxxxxxxxx

 

Its a splitted download URL, to download, assemble the URL manually and then use it. 

Share this post


Link to post
Share on other sites
walawa75

@WindowsAddict

 

Hello to everybody,

 

First I would like to say thank you for your great work. You are amazing. 🙏

 

Second, I definitively love the MAS_0.6 version which is really "friendly user". 

 

I wanna know if this has the correct hash without any change since you ? 

 

Thanks in advance

 

 

site             : https://www.upload.ee

sharecode: /files/9421532/MAS.0.6.rar.html

 

Share this post


Link to post
Share on other sites
WindowsAddict

@walawa75

Thank you. :)

--

Yes, the hash is correct in the link you mentioned.

 

File: MAS_0.6_CRC32_656492C8.cmd
CRC-32: 656492c8
SHA-1: be7b7467fcbda06a844f880668a0e84ca9387c23

SHA-256: d329d03e5679d8b90f306d06087979f480e053bae775958189d9ef05eefb55cd

Share this post


Link to post
Share on other sites
revizz1

Hello everyone!

Please kindly give me some answers, I'm a bit confused about the Windows 7 x64 retail or volume relationship and KMS.

 

Can Windows 7 Pro retail or volume be enabled with KMS in MBR?

Can Windows 7 Enterprise (vl) be enabled with KMS in MBR?

Does KMs on Windows 7 Pro and Enterprise (vl) only work on GPT?

 

W7 Pro in MBR, retail edition.

Spoiler

nDRJDm.jpg

 

I am wondering why the script does not define retail or volume for KMS in Windows 7 nor the type of partition table, I have read a bit about disks but I confess that I did not understand very well, I know there is the Pro version for verajo and volume, but the KMS only reports error in MBR for the system for Office not, just like to understand, I also know that the DAZ Loader does not work in UEFI / GPT.

 

Sorry for any mistake, I use translator ...

Thanks for any reply!

Share this post


Link to post
Share on other sites
WindowsAddict

@revizz1

Although we had this discussion on MDL before your post was approved to appear here in this thread, but still just to complete the info here, i'm pasting the info here.

 

KMS works in both MBR and GPT.
In Windows 7 KMS can activate, (Enterprise/N/E, Professional/N/E, Embedded Standard/POSReady/ThinPC)
but can not activate, Non-Volume Windows 7 Editions (Starter, HomeBasic, HomePremium, Ultimate) 
It doesn't matter if KMS activable Windows 7 installed edition is Retail or Volume, KMS activator will insert Volume key if required and that will turn Retail to Volume.

 

About the Error, as abbodi1406 pointed out,

Quote

KMS on Windows 7 does have limitation related to SLIC 2.1 and Windows marker
https://support.microsoft.com/en-us/help/942962
https://docs.microsoft.com/en-us/pr...chnet.10)#activation-of-windows-oem-computers

@revizz1
unfortunately, your machine seems to have that limitation

 

Quote from the MS page,

https://docs.microsoft.com/en-us/pr...chnet.10)#activation-of-windows-oem-computers

Quote

Computers obtained through OEM channels that have an ACPI_SLIC table in the system basic input/output system (BIOS) are required to have a valid Windows marker in the same ACPI_SLIC table. The appearance of the Windows marker is important for Volume Licensing customers who are planning to use Windows 7 Volume License media to re-image or upgrade an OEM system through the re-imaging rights they have in their Volume Licensing agreement. Computers that have an ACPI_SLIC table without a valid Windows marker generate an error when a volume edition of Windows 7 is installed.
https://support.microsoft.com/en-us/help/942962/

These systems cannot be activated with KMS, but they can be activated using a MAK or a retail key.

 

Share this post


Link to post
Share on other sites
Dereck4

Hi @WindowsAddict

 

I have tried to use activation via KMS online and always give me that I am not connected to the internet.

 

Why?

Share this post


Link to post
Share on other sites
DR_ADHAM
5 hours ago, WindowsAddict said:

 

The same as you said but in a different phrase:

Spoiler

The software licensing service reported that the computer could not be activate with a Volume license key. Volume licensed systems require upgrading from a qualified operating system. Please contact your system administrator or use a different type of key.

 

This behavior occurs when the following conditions are true:

  • You are using the Key Management Service (KMS) to perform activation.
  • The computer uses an ACPI_SLIC table in the computer BIOS program.

This problem occurs if the KMS server does not find a valid Windows marker in the ACPI_SLIC table in the computer's BIOS program. This problem occurs for one of the following reasons.

 

Cause 1

You purchased a computer that has a qualifying Windows operating system installed. However, the Windows marker in the ACPI_SLIC table is corrupted.

Cause 2

You purchased a computer that does not have a qualifying Windows operating system installed. In this case, the Windows marker is not present in the ACPI_SLIC table. 

The Microsoft Campus agreement includes Windows Upgrade licenses. This means the computer must have a qualifying operating system.  If you know the computer you are attempting to activate did have a qualifying operating system you may use the Microsoft MAK key for your version of Windows as an alternate activation method.

 

Share this post


Link to post
Share on other sites
revizz1
Posted (edited)
5 hours ago, WindowsAddict said:

@ revizz1

Embora tivemos esta discussão sobre MDL antes de seu post foi aprovado para aparecer aqui neste segmento, mas ainda apenas para completar a informação aqui, eu estou colando a informação aqui.

 

KMS funciona no MBR e GPT.
No Windows 7 KMS pode ativar, (Enterprise / N / E, Professional / N / E, Embedded Standard / POSReady / ThinPC)
, mas não pode ativar, não é de volume do Windows 7 Edições (entrada, HomeBasic, HomePremium, Ultimate) 
Ele doesn' t importa se KMS activados Windows 7 edição instalada é Retail ou Volume, KMS ativador irá inserir tecla de volume, se necessário e que vai virar Retail para Volume.

 

Sobre o erro, como abbodi1406 apontou,

 

Citar a partir da página de MS,

https://docs.microsoft.com/en-us/pr...chnet.10)#activation-of-windows-oem-computers

 

Exactly, the forum does not release several things .. but okay, so I spent in the MDL, I was needing it at that moment, thanks for helping!

And the question is all about, it's a laptop from 2008/09.

Edited by revizz1

Share this post


Link to post
Share on other sites
DR_ADHAM
28 minutes ago, revizz1 said:

 

Exactly, the forum does not release several things .. but okay, so I spent in the MDL, I was needing it at that moment, thanks for helping!

And the question is all about, it's a laptop from 2008/09.

 

Why don't you try to activate your win 7 pro with a legitimate key ?

Many keys are available for this edition (Retail, OEM and MAK keys) and will provide permanent activation.

 

For example, this's an online MAK key that can activate Windows 7 Enterprise;EnterpriseN;EnterpriseE;Professional;ProfessionalN;ProfessionalE
 

Spoiler

PKeyConfig     : Windows 7
Key            :  -8HBJ8 (MD5: 1a205f0f48656c332edc9b0f4a2cc339)
Key Status     : Valid
Product ID     : XXXXX-033-9940922-86738
Extended PID   : XXXXX-00172-033-994092-03-3073-9200.0000-0772019
SKU ID         : 9abf5984-9c16-46f2-ad1e-7fe15931a8dd
Description    : Windows 7 All Volume Editions Volume:MAK
Edition ID     : Enterprise;EnterpriseN;EnterpriseE;Professional;ProfessionalN;ProfessionalE
Sub Type       : X15-39049
License Type   : Volume:MAK
Channel        : Volume
Crypto ID      : 172 (ac)
Activ. Count   : 12
Block Key Base : Not found

 

Share this post


Link to post
Share on other sites
WindowsAddict
5 hours ago, Dereck4 said:

Hi @WindowsAddict

 

I have tried to use activation via KMS online and always give me that I am not connected to the internet.

 

Why?

Are you using version 0.6 or latest 0.7 ?

In latest script I've added additional checks, it should work.

But if it doesn't work then copy the text from the following link, paste it in the notepad and save it as anything.cmd , run that file , post the output here.

https://pastebin.com/raw/QRaAu0KB

Share this post


Link to post
Share on other sites
lil-fella

hi....
i know ive asked this before...about
Online KMS Activation - Windows /Server /Office script

im wanting only office to be left in the script
it seems if it finds any trace of windows versions even if windows is activated already
it will activate the windows with kms
it can be a problem if windows is already activated
via KMS38 , Digital License or properly activated

is there any way to just have a office kms online activator
i know you gave a small bit of script to change last time but its not working
still finds windows and activates with kms

so just want a plain  Online KMS Activation - Office only script

 

many thanks in advance

Share this post


Link to post
Share on other sites
WindowsAddict
Posted (edited)

Hi @lil-fella 

The fix i told you in the past was only suppose to work if Non GVLK version of windows is installed,

You probably applied the fix to skip windows kms38 activation that's why it didn't work.

--

The way KMS script handle things are following,

- If any (including office) product is permanently activated then skip its activation.

- If windows 10 is KMS38 activated then, separately set the Windows KMS IP to Localhost (127.0.0.1) (because 8.1 and 10 can't activate if kms ip is local host) but set the working kms ip to the office.

 

In both cases, KMS auto discovery (global activation) feature (in 8.1 and 10) would work.

 

Now you are saying that,

- Only activate office.

 

It can be done but there are some few limitations in doing that, user loses the KMS auto discovery (global activation) feature.

In these cases script needs to be rewritten and it may require separate script, and with renewal and all things, its going to just confuse the users more.

and whats the benefit? so that it can't replace windows permanent/kms38 activation with kms? but the current script is already doing that.

 

Now about current flaws in the script, 

In KMS script i've never seen that it replaced the windows permanent activation with kms (i run it at least 5 times a day) , but yes i suppose there is a possibility that activation check cmd may fail, i talked to abbodi1406 about this and he responded positively on adding more checks to be sure that script gets the correct result.

 

anyway in current script, windows activation shouldn't be skipped, if you decide to do that, then if,

-Windows iso is a non consumer iso (gvlk installed) then windows will activate,

-if kms38 is applied then it'll turn into 180 days kms activation.

 

thats why to reduce the confusion i didn't make any switches to skip windows activation.

 

I'm sorry if its not what you wanted, 

anyway if you face any issues when you run the script as it is (without skipping windows activation), please let me know. Thanks. 

 

 

Edited by WindowsAddict

Share this post


Link to post
Share on other sites
Rajeshl

Hi The hwid generator has a new method to activate w10 without editing the registry content of windows, please adopt and make that changes in hwid digital activation script.

Share this post


Link to post
Share on other sites
leitek8
Posted (edited)
6 hours ago, Rajeshl said:

Hi The hwid generator has a new method to activate w10 without editing the registry content of windows, please adopt and make that changes in hwid digital activation script. 

😂🤣

😎😈

hwid.cmd (run as admin):

pushd "%~dp0"
gatherosstate.exe
clipup -v -o -altto "%cd%"
cscript slmgr.vbs -ato
pause

gatherosstate.exe: ADK (or iso)

slc.dll:

 

Edited by leitek8

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...