mirror of
https://github.com/massgravel/Microsoft-Activation-Scripts.git
synced 2024-11-27 04:34:03 +08:00
Compare commits
No commits in common. "70b754657f5d396fd342d71c65bcef9f5c863520" and "2b786e3037e1f09a10b303755ccd74c4f18dc29f" have entirely different histories.
70b754657f
...
2b786e3037
@ -215,16 +215,13 @@ echo:
|
|||||||
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode"" | find /i "FullLanguage" %nul1% && (
|
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode"" | find /i "FullLanguage" %nul1% && (
|
||||||
echo Failed to run Powershell command but Powershell is working.
|
echo Failed to run Powershell command but Powershell is working.
|
||||||
call :dk_color %Blue% "Check if your antivirus is blocking the script."
|
call :dk_color %Blue% "Check if your antivirus is blocking the script."
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
|
||||||
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%troubleshoot"
|
|
||||||
) || (
|
) || (
|
||||||
echo PowerShell is not working. Aborting...
|
echo PowerShell is not working. Aborting...
|
||||||
echo If you have applied restrictions on Powershell then undo those changes.
|
echo If you have applied restrictions on Powershell then undo those changes.
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%fix_powershell
|
|
||||||
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%fix_powershell"
|
|
||||||
)
|
)
|
||||||
|
echo:
|
||||||
|
set fixes=%fixes% %mas%troubleshoot
|
||||||
|
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%troubleshoot"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -213,16 +213,13 @@ echo:
|
|||||||
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode"" | find /i "FullLanguage" %nul1% && (
|
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode"" | find /i "FullLanguage" %nul1% && (
|
||||||
echo Failed to run Powershell command but Powershell is working.
|
echo Failed to run Powershell command but Powershell is working.
|
||||||
call :dk_color %Blue% "Check if your antivirus is blocking the script."
|
call :dk_color %Blue% "Check if your antivirus is blocking the script."
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
|
||||||
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%troubleshoot"
|
|
||||||
) || (
|
) || (
|
||||||
echo PowerShell is not working. Aborting...
|
echo PowerShell is not working. Aborting...
|
||||||
echo If you have applied restrictions on Powershell then undo those changes.
|
echo If you have applied restrictions on Powershell then undo those changes.
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%fix_powershell
|
|
||||||
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%fix_powershell"
|
|
||||||
)
|
)
|
||||||
|
echo:
|
||||||
|
set fixes=%fixes% %mas%troubleshoot
|
||||||
|
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%troubleshoot"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -207,16 +207,13 @@ echo:
|
|||||||
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode"" | find /i "FullLanguage" %nul1% && (
|
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode"" | find /i "FullLanguage" %nul1% && (
|
||||||
echo Failed to run Powershell command but Powershell is working.
|
echo Failed to run Powershell command but Powershell is working.
|
||||||
call :dk_color %Blue% "Check if your antivirus is blocking the script."
|
call :dk_color %Blue% "Check if your antivirus is blocking the script."
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
|
||||||
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%troubleshoot"
|
|
||||||
) || (
|
) || (
|
||||||
echo PowerShell is not working. Aborting...
|
echo PowerShell is not working. Aborting...
|
||||||
echo If you have applied restrictions on Powershell then undo those changes.
|
echo If you have applied restrictions on Powershell then undo those changes.
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%fix_powershell
|
|
||||||
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%fix_powershell"
|
|
||||||
)
|
)
|
||||||
|
echo:
|
||||||
|
set fixes=%fixes% %mas%troubleshoot
|
||||||
|
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%troubleshoot"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -238,16 +238,13 @@ echo:
|
|||||||
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode"" | find /i "FullLanguage" %nul1% && (
|
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode"" | find /i "FullLanguage" %nul1% && (
|
||||||
echo Failed to run Powershell command but Powershell is working.
|
echo Failed to run Powershell command but Powershell is working.
|
||||||
call :dk_color %Blue% "Check if your antivirus is blocking the script."
|
call :dk_color %Blue% "Check if your antivirus is blocking the script."
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
|
||||||
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%troubleshoot"
|
|
||||||
) || (
|
) || (
|
||||||
echo PowerShell is not working. Aborting...
|
echo PowerShell is not working. Aborting...
|
||||||
echo If you have applied restrictions on Powershell then undo those changes.
|
echo If you have applied restrictions on Powershell then undo those changes.
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%fix_powershell
|
|
||||||
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%fix_powershell"
|
|
||||||
)
|
)
|
||||||
|
echo:
|
||||||
|
set fixes=%fixes% %mas%troubleshoot
|
||||||
|
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%troubleshoot"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -350,11 +347,6 @@ echo:
|
|||||||
echo:
|
echo:
|
||||||
echo:
|
echo:
|
||||||
echo:
|
echo:
|
||||||
if exist "%ProgramFiles%\Activation-Renewal\Activation_task.cmd" (
|
|
||||||
find /i "Ver:2.7" "%ProgramFiles%\Activation-Renewal\Activation_task.cmd" %nul% || (
|
|
||||||
call :dk_color %_Yellow% " Old renewal task found, run activation to update it."
|
|
||||||
)
|
|
||||||
)
|
|
||||||
echo ______________________________________________________________
|
echo ______________________________________________________________
|
||||||
echo:
|
echo:
|
||||||
echo [1] Activate - Windows
|
echo [1] Activate - Windows
|
||||||
@ -1950,7 +1942,6 @@ if [%KMS_IP%]==[!KMS_IP!] for /f "delims=[] tokens=2" %%# in ('pathping -4 -h 1
|
|||||||
if not [%KMS_IP%]==[!KMS_IP!] exit /b
|
if not [%KMS_IP%]==[!KMS_IP!] exit /b
|
||||||
goto :_taskgetserv
|
goto :_taskgetserv
|
||||||
)
|
)
|
||||||
::Ver:2.7
|
|
||||||
:_extracttask:
|
:_extracttask:
|
||||||
|
|
||||||
::========================================================================================================================================
|
::========================================================================================================================================
|
||||||
@ -1970,8 +1961,7 @@ exit /b
|
|||||||
)
|
)
|
||||||
|
|
||||||
if not exist "%_dest%\" md "%_dest%\" %nul%
|
if not exist "%_dest%\" md "%_dest%\" %nul%
|
||||||
for /f %%G in ('%psc% "[Guid]::NewGuid().Guid"') do set "randguid=%%G"
|
set "_temp=%SystemRoot%\Temp\_taskwork_%Random%"
|
||||||
set "_temp=%SystemRoot%\Temp\%Random%%randguid%"
|
|
||||||
|
|
||||||
set nil=
|
set nil=
|
||||||
if exist "%_temp%\.*" rmdir /s /q "%_temp%\" %nul%
|
if exist "%_temp%\.*" rmdir /s /q "%_temp%\" %nul%
|
||||||
@ -1983,7 +1973,7 @@ if not defined _int (s%nil%cht%nil%asks /cre%nil%ate /tn "Activation-Run_Once" /
|
|||||||
if exist "%_temp%\.*" rmdir /s /q "%_temp%\" %nul%
|
if exist "%_temp%\.*" rmdir /s /q "%_temp%\" %nul%
|
||||||
|
|
||||||
call :ks_createInfo.txt
|
call :ks_createInfo.txt
|
||||||
%psc% "$f=[io.file]::ReadAllText('!_batp!') -split \":_extracttask\:.*`r`n\"; [io.file]::WriteAllText('%_dest%\Activation_task.cmd', '@::%randguid%' + [Environment]::NewLine + $f[1].Trim(), [System.Text.Encoding]::ASCII)"
|
%psc% "$f=[io.file]::ReadAllText('!_batp!') -split \":_extracttask\:.*`r`n\"; [io.file]::WriteAllText('%_dest%\Activation_task.cmd', '@REM MASver %masver%' + ' - Dummy%random%' + [Environment]::NewLine + $f[1].Trim(), [System.Text.Encoding]::ASCII)"
|
||||||
|
|
||||||
::========================================================================================================================================
|
::========================================================================================================================================
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user