abbodi1406 / KMS_VL_ALL_AIO

Smart Activation Script
GNU General Public License v3.0
8.12k stars 1.08k forks source link

Script always exit #65

Closed sutees closed 8 months ago

sutees commented 8 months ago

I'm using the v50 on Windows 10, when I attempt to run the script, it just exits quickly as soon as I start it.

Edition Windows 10 Pro Version 22H2 OS build 19045.3570

Please feel free to let me know if you need more information.

abbodi1406 commented 8 months ago

Are you using Windows Terminal?

press Shift from keyboard + right click on KMS_VL_ALL_AIO.cmd and choose Copy as path run command prompt as administrator, paste the path and execute, see what error may show

sutees commented 8 months ago

@abbodi1406

I'm doing so in a normal Windows command prompt. Yes, normally I start the script with administrator privilege, which normally it can just run, and I can use the script just fine.

Just to follow your advice, I have started a command prompt with administrator privilege and run the script with full path as below (I think that is what you wanted me to try), it looks like it attempts to start a new command prompt and quickly disappears. I tried echoing "errorlevel" after then, getting errorlevel 9020 but not sure what it actually means with the script.

C:\Windows\system32>"C:\Utils\KMS_VL_ALL_AIO.cmd"

C:\Windows\system32>echo %errorlevel% 9020

abbodi1406 commented 8 months ago

It should not start another cmd window if the current cmd is admin the error means unexpected termination

can you try to run any other scripts? or try the traditional version https://pastebin.com/cpdmr6HZ

sutees commented 8 months ago

I have tried the traditional version, I could:

1) Just right click on the "AutoRenewal-Setup.cmd" and execute it with admin privilege, and it could install the local KMS Emulator successfully. However, it seems not able to execute "Activate.cmd" after then.

2) I therefore tried to run "Activate.cmd" manually by command prompt with admin privilege, noticed that it has the same behavior that it seems to get executed quite immediately with errorlevel 9020 too.

C:\Utils\KMS_VL_ALL-50\Activate.cmd

C:\Windows\System32>echo %errorlevel% 9020

sutees commented 8 months ago

I have upgraded Windows 10 to Windows 11, and the issue is gone, I guess the issue is somehow in the Windows 10 configuration, and we are also no longer able to continue on the investigation, hence closing this issue.

@abbodi1406 thank you very much for your support on this issue and building the script, very appreciate