moving shit around
This commit is contained in:
129
old/TNGAct.bat
Normal file
129
old/TNGAct.bat
Normal file
@@ -0,0 +1,129 @@
|
||||
@echo off
|
||||
setlocal
|
||||
REM TNG Activate
|
||||
|
||||
REM Initial checks
|
||||
echo Checking if you're connected to the Technolog internal network...
|
||||
REM ping 10.0.1.1
|
||||
ping 10.0.1.2
|
||||
if %errorlevel% neq 0 goto oops1
|
||||
ping technologsvr.technolog.net
|
||||
|
||||
echo Checking for elevation
|
||||
net config server
|
||||
if %errorlevel% neq 0 goto oops2
|
||||
|
||||
cd %systemroot%\system32
|
||||
goto ospicker
|
||||
|
||||
:ospicker
|
||||
REM Finds OS version
|
||||
for /f "tokens=4-5 delims=. " %%i in ('ver') do set VERSION=%%i.%%j
|
||||
if "%version%" == "10.0" goto win10
|
||||
if "%version%" == "6.3" goto win81
|
||||
if "%version%" == "6.2" echo Windows 8 (regular) isn't supported currently.
|
||||
if "%version%" == "6.1" goto win7
|
||||
if "%version%" == "6.0" goto win6
|
||||
goto oops3
|
||||
|
||||
:win6
|
||||
echo winvista sucks but was detected
|
||||
rem pro key
|
||||
cscript slmgr.vbs -ipk YFKBB-PQJJV-G996G-VWGXY-2V3X8
|
||||
REM pause
|
||||
goto activate
|
||||
|
||||
:win7
|
||||
echo win7 dtected
|
||||
|
||||
set osver=Win7
|
||||
REM Pro key
|
||||
cscript slmgr.vbs -ipk FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4
|
||||
|
||||
REM Enterprise key
|
||||
cscript slmgr.vbs -ipk 33PXH-7Y6KF-2VJC9-XBBR8-HVTHH
|
||||
|
||||
goto activate
|
||||
REM End 7
|
||||
:win81
|
||||
echo win81 detected
|
||||
|
||||
set osver=Win81
|
||||
REM Pro key
|
||||
cscript slmgr.vbs -ipk GCRJD-8NW9H-F2CDX-CCM8D-9D6T9
|
||||
|
||||
REM Enterprise Key
|
||||
cscript slmgr.vbs -ipk NPPR9-FWDCX-D2C8J-H872K-2YT43
|
||||
|
||||
goto activate
|
||||
REM End 81
|
||||
:win10
|
||||
echo win10 detected
|
||||
|
||||
set osver=Win10
|
||||
REM Pro key
|
||||
cscript slmgr.vbs -ipk W269N-WFGWX-YVC9B-4J6C9-T83GX
|
||||
|
||||
REM Enterprise Key
|
||||
cscript slmgr.vbs -ipk NPPR9-FWDCX-D2C8J-H872K-2YT43
|
||||
|
||||
goto activate
|
||||
REM End 10
|
||||
|
||||
|
||||
:activate
|
||||
REM activation portion
|
||||
REM timeout 5
|
||||
|
||||
cscript slmgr.vbs -skms 10.0.1.2
|
||||
|
||||
REM timeout 5
|
||||
|
||||
cscript slmgr.vbs -ato
|
||||
if %errorlevel% neq 0 goto oops4
|
||||
|
||||
REM timeout 15
|
||||
echo TNG System Activated, %computername% - %osver% %date% %time% with %username% >> "\\technologsvr\batchlogs$\winactlog"
|
||||
|
||||
endlocal
|
||||
exit
|
||||
|
||||
REM Functions
|
||||
|
||||
:oops1
|
||||
REM Network Fail
|
||||
|
||||
cls
|
||||
color c
|
||||
echo You don't seem to be conneted to the TNG Network.
|
||||
echo Please connect to it to continue.
|
||||
timeout 5
|
||||
exit
|
||||
|
||||
:oops2
|
||||
REM Elevation Fail
|
||||
|
||||
color c
|
||||
echo You don't seem to be elevated, you twat. XD
|
||||
echo Elevation is required. Right click and run as admin, or contact your sysadmin.
|
||||
timeout 5
|
||||
exit
|
||||
|
||||
:oops3
|
||||
REM OS Unsupported
|
||||
|
||||
cls
|
||||
color c
|
||||
echo Your OS isn't recognized or supported.
|
||||
echo am confuse.
|
||||
timeout 5
|
||||
exit
|
||||
|
||||
:oops4
|
||||
REM Activation Fail
|
||||
|
||||
echo An error has occurred- please refer to the above for more information.
|
||||
echo Send to your local sysadmin if necesssary.
|
||||
pause
|
||||
exit
|
||||
|
Reference in New Issue
Block a user