Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- ::INITIALIZATION BEGIN!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- color 0F
- Title Chase's EZPZ Script
- setlocal EnableDelayedExpansion
- cls
- echo Initializing...
- ::make sure C:\Tech_Squad exists and is the CD
- if not exist C:\Tech_Squad mkdir C:\Tech_Squad
- if not exist c:\Tech_Squad\logs mkdir C:\Tech_Squad\logs
- cd C:\Tech_Squad
- echo Current Directory %cd%
- if exist C:\Tech_Squad\logs\smbalt1 del C:\Tech_Squad\logs\smbalt1
- set alt_BatchAdmin=0
- ::GET WINDOWS OS INFORMATION BEGIN
- echo.
- echo ---- Windows Information ---
- ::32 or 64 bit?
- reg Query "HKLM\Hardware\Description\System\CentralProcessor\0" | find /i "x86" > NUL && set OS=32BIT || set OS=64BIT
- echo OS is %OS%
- for /f "tokens=4-5 delims=. " %%i in ('ver') do set VERSION=%%i.%%j
- if "%version%" == "10.0" (
- echo Windows 10 detected
- echo.
- goto BatchGetsAdmin
- )
- if "%version%" == "6.3" (
- echo Windows 8.1 detected
- echo.
- goto BatchGetsAdmin
- )
- if "%version%" == "6.2" (
- echo Windows 8 detected
- echo.
- goto BatchGetsAdmin
- )
- if "%version%" == "6.1" (
- echo Windows 7 detected
- echo.
- goto BatchGetsAdmin
- )
- if "%version%" == "6.0" (
- echo Windows Vista detected
- echo.
- goto BatchGetsAdmin
- )
- echo Windows XP or unrecognized windows version! Using alternative BatchGotAdmin Method!
- echo.
- set alt_BatchAdmin=1
- ::If on windows XP the normal method for grabbing admin perms won't work
- ::Configure network and use alternative method.
- goto Network_Config
- ::GET WINDOWS OS INFORMATION END
- ::GET ADMIN PERMS NORMAL METHOD BEGIN
- :BatchGetsAdmin
- echo --- Administrative Permissions ---
- REM --> Check for permissions
- IF '%PROCESSOR_ARCHITECTURE%' EQU 'amd64' (
- >nul 2>&1 "%SYSTEMROOT%\SysWOW64\icacls.exe" "%SYSTEMROOT%\SysWOW64\config"
- ) ELSE (
- >nul 2>&1 "%SYSTEMROOT%\system32\icacls.exe" "%SYSTEMROOT%\system32\config"
- )
- REM --> If error flag set, we do not have admin.
- if '%errorlevel%' NEQ '0' (
- echo Requesting administrative privileges...
- goto UACPrompt
- ) else ( goto gotAdmin )
- :UACPrompt
- echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
- set params = %*:"=""
- echo UAC.ShellExecute "cmd.exe", "/c ""%~s0"" %params%", "", "runas", 1 >> "%temp%\getadmin.vbs"
- "%temp%\getadmin.vbs"
- del "%temp%\getadmin.vbs"
- exit /B
- :gotAdmin
- pushd "%CD%"
- CD /D "%~dp0"
- echo Success: Administrative permissions confirmed.
- echo.
- goto Network_Config
- ::GET ADMIN PERMS NORMAL METHOD END
- :Network_Config
- echo --- Network Configuration ---
- ::CONFIGURE NETWORK BEGIN
- set /a smb_alt=0
- set smb_alt_string=null
- set techsquad_netstring=10.0.2.1
- set home_netstring=192.168.200.189
- set nemoportal_netstring=nemoportal.com
- set ftp_alt_ip=""
- set ftp_alt_user=""
- set ftp_alt_pass=""
- set /a net_fail=0
- ::to skip for wan testing uncomment line below
- ::goto Nemoportal_Net_Test
- ::Where are we?
- echo.
- :TS_Net_Test
- ping -n 1 %techsquad_netstring% | findstr /r /c:"[0-9] *ms" >nul
- if %errorlevel% == 0 (
- echo Tech Squad Network Detected
- echo.
- set ftp_string=ftp://10.0.2.1
- set smb_string=\\10.0.2.1
- goto SMB_A_Test
- ) else (
- ::echo Work network test fail.
- goto Home_Net_Test
- )
- :Home_Net_Test
- ping -n 1 "%home_netstring%" | findstr /r /c:"[0-9] *ms" >nul
- if %errorlevel% == 0 (
- echo Ping %home_netstring% Success. Home Network Detected
- echo.
- set ftp_string=ftp://techsquad.directory:d945pvs@192.168.200.189
- set smb_string=\\%home_netstring%\TechSquadSMB
- goto SMB_A_Test
- ) else (
- ::echo Home network test fail.
- goto Nemoportal_Net_Test
- )
- :Nemoportal_Net_Test
- ping -n 1 %nemoportal_netstring% | findstr /r /c:"[0-9] *ms" >nul
- if %errorlevel% == 0 (
- echo %nemoportal_netstring% replied. Using WAN FTP.
- echo.
- set ftp_string=ftp://techsquad.directory:d945pvs@%nemoportal_netstring%
- set smb_string=null
- goto SMB_A_Test
- ) else (
- echo all network connection tests failed
- set /a net_fail=1
- echo.
- ping 127.0.0.1 >nul
- goto exitfunction
- )
- ::by now we've figured out where we are
- ::Can we use samba? should we?
- :SMB_A_Test
- if "%smb_string%"=="\\%home_netstring%\TechSquadSMB" (
- if not exist \\%home_netstring%\TechSquadSMB\volume1\fl2.0.bat (
- set /a smb_alt=1
- echo . >> C:\Tech_Squad\logs\smbalt1
- set ftp_alt_ip=192.168.200.189
- set ftp_alt_user=techsquad.directory
- set ftp_alt_pass=d945pvs
- set smb_alt_string=ftp://10.0.2.1
- ) else (
- set /a smb_alt=0
- )
- )
- if "%smb_string%"=="%techsquad_netstring%" (
- if not exist \\%techsquad_netstring%\volume1\fl2.0.bat (
- set /a smb_alt=1
- echo . >> C:\Tech_Squad\logs\smbalt1
- set ftp_alt_ip=10.0.2.1
- set ftp_alt_user=anonymous
- set ftp_alt_pass=anonymous
- set smb_alt_string=ftp://techsquad.directory:d945pvs@192.168.200.189
- ) else (
- set /a smb_alt=0
- )
- )
- if "%smb_string%"=="null" (
- set /a smb_alt=2
- echo . >> C:\Tech_Squad\logs\smbalt1
- set smb_alt_string=ftp://techsquad.directory:d945pvs@nemoportal.com
- set ftp_alt_ip=nemoportal.com
- set ftp_alt_user=techsquad.directory
- set ftp_alt_pass=d945pvs
- )
- ::We've checked for samba connection and set strings
- ::echo SMB: %smb_string%
- ::echo FTP: %ftp_string%
- ::CONFIGURE NETWORK END
- ::Do we still need to get admin permissions? 0=No else=Yes
- if "%alt_BatchAdmin%" NEQ 0 (
- goto Skip_Norm_Admin
- ) else (
- goto alt_BatchGotAdmin
- )
- ::GET ADMIN PERMS ALTERNATIVE METHOD BEGIN
- :alt_BatchGotAdmin
- echo --- Administrative Permissions ---
- echo Detecting permissions...
- net session
- if %errorLevel% == 0 (
- echo Success: Administrative permissions confirmed.
- goto BatchGotsAdmin
- ) else (
- echo Failure: Current permissions inadequate.
- if "%smb_alt%" NEQ "0" (
- if not exist c:\windows\system32\wget.exe (
- echo Downloading and installing wget from
- echo.
- del C:\Tech_Squad\update.wget.ftp 1>nul 2>nul
- echo.open %ftp_alt_ip%>> C:\Tech_Squad\update.wget.ftp
- echo.%ftp_alt_user%>> C:\Tech_Squad\update.wget.ftp
- echo.%ftp_alt_pass%>> C:\Tech_Squad\update.wget.ftp
- echo.lcd C:\windows\system32>> C:\Tech_Squad\update.wget.ftp
- echo.binary>> C:\Tech_Squad\update.wget.ftp
- echo.get wget.exe>> C:\Tech_Squad\update.wget.ftp
- echo.disconnect>> C:\Tech_Squad\update.wget.ftp
- echo.quit>> C:\Tech_Squad\update.wget.ftp
- ftp -s:C:\Tech_Squad\update.wget.ftp
- del C:\Tech_Squad\update.wget.ftp >nul
- echo wget download attempt finished.
- )
- if exist c:\windows\system32\wget.exe (
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 1 -m %smb_alt_string%/volume1/fl2.0.bat
- Title Chase's EZPZ Script
- )
- ) else (
- copy %smb_string%\volume1\fl2.0.bat C:\Tech_Squad\fl2.0.bat
- )
- if exist C:\Tech_Squad\fl2.0.bat (
- runas /user:administrator /savecred c:\tech_squad\fl2.0.bat
- ) else (
- echo something went wrong idk what...
- pause
- exit
- )
- pause
- exit
- )
- goto BatchGotsAdmin
- ::GET ADMIN PERMS ALTERNATIVE METHOD END
- :BatchGotsAdmin
- :Skip_Norm_Admin
- goto load_tips
- ::I know that this right here seems messy, but I'm just going to leave myself a space here incase there's anything I ever want to do here.
- ::PATHS BEGIN
- :wget_paths
- set Teamviewer11_Path=%ftp_string%/volume1/Tech_Squad_Flash/Installs/Teamviewer11.exe
- set Adobe_Reader_Path=%ftp_string%/volume1/Tech_Squad_Flash/Installs/-Fresh_Load-/AcroRdrDC1500720033_en_US.exe
- set w764_Path=%ftp_string%/volume1/Tech_Squad_Flash/Installs/-Fresh_Load-/W7_64_Updates/
- set Classic_Shell_Path=%ftp_string%/volume1/Tech_Squad_Flash/Installs/-Fresh_Load-/ClassicShellSetup_4_3_0.exe
- set CU_Folder_Path=%ftp_string%/volume1/Tech_Squad_Flash/Tech_Squad/
- set Avast_Folder_Path=%ftp_string%/volume1/Tech_Squad_Flash/Installs/Avast/
- set Fresh_Load_Folder_Path=%ftp_string%/volume1/Tech_Squad_Flash/Installs/-Fresh_Load-/
- set Chrome_Path=%ftp_string%/volume1/Tech_Squad_Flash/Installs/-Fresh_Load-/ChromeStandaloneSetup64.exe
- set Avast_Path=%ftp_string%/volume1/Tech_Squad_Flash/Installs/Avast/avast_free_antivirus_setup_online.exe
- set Open_Office_Path=%ftp_string%/volume1/Tech_Squad_Flash/Installs/-Fresh_Load-/OpenOffice_4.1.0/
- set Office_Starter_Path=%ftp_string%/volume1/Tech_Squad_Flash/Installs/-Fresh_Load-/Office2010Starter.exe
- set FileZillaPortable_Path=%ftp_string%/volume1/Tech_Squad_Flash/Tech_Squad/FileZillaPortable
- set TSRA_Path=%ftp_string%/volume1/Tech_Squad_Flash/Tech_Squad/TeamViewerQS_en.exe
- set ATF_Path=%ftp_string%/volume1/Tech_Squad_Flash/Tech_Squad/ATF-Cleaner.exe
- set ABC_Path=%ftp_string%/volume1/Tech_Squad_Flash/Tech_Squad/Other_Tools/avast-browser-cleanup.exe
- set CC_Path=%ftp_string%/volume1/Tech_Squad_Flash/Tech_Squad/CCleaner/
- set RU_Path=%ftp_string%/volume1/Tech_Squad_Flash/Tech_Squad/Revo_Uninstaller/
- set MBAR_Path=%ftp_string%/volume1/Tech_Squad_Flash/Tech_Squad/Other_Tools/mbar/
- set HJT_Path=%ftp_string%/volume1/Tech_Squad_Flash/Tech_Squad/HijackThis.exe
- set AVR_Path=%ftp_string%/volume1/Tech_Squad_Flash/Tech_Squad/AV_Removal_Tools/
- set ADW_Path=%ftp_string%/volume1/Tech_Squad_Flash/Tech_Squad/adwcleaner_7.0.8.0.exe
- set TDS_Path=%ftp_string%/volume1/Tech_Squad_Flash/Tech_Squad/TDSSKiller.exe
- set WLE_Path=%ftp_string%/volume1/Tech_Squad_Flash/Installs/Windows_Live_Essentials.exe
- set MSO_2003_Pro_Path=%ftp_string%/volume1/MSO_Intuit_Installs/Microsoft/Office_2003_Pro
- set HM_PA_86_Path=%ftp_string%/volume1/Tech_Squad_Flash/Tech_Squad/HitmanPropa_x86.exe
- set HM_86_Path=%ftp_string%/volume1/Tech_Squad_Flash/Tech_Squad/HitmanPro35_x86.exe
- set HM_PA_64_Path=%ftp_string%/volume1/Tech_Squad_Flash/Tech_Squad/HitmanPropa_x64.exe
- set HM_64_Path=%ftp_string%/volume1/Tech_Squad_Flash/Tech_Squad/HitmanPro35_x64.exe
- set ITU_64_Path=%ftp_string%/volume1/Tech_Squad_Flash/Installs/iTunes64Setup.exe
- set ITU_32_Path=%ftp_string%/volume1/Tech_Squad_Flash/Installs/iTunesSetup.exe
- set AIO_Path=%ftp_string%/volume1/Tech_Squad_Flash/Tech_Squad/Tweaking_AIO/Windows_Repair/
- set P95_Path=%ftp_string%/volume1/Tech_Squad_Flash/Other_Tools/Prime95/p95v2810.win64/
- set RSN_Path=%ftp_string%/volume1/Tech_Squad_Flash/Other_Tools/R_Studio_5.1_Portable_Network_Build
- set Libre_Path=%ftp_string%/volume1/MSO_Intuit_Installs/LibreOffice_6.0.3_Win_x64.msi
- set W7G_Path=%ftp_string%/volume1/Tech_Squad_Flash/Installs/Win7GamesForWin8-10.exe
- set W7LE_Path=%ftp_string%/volume1/Tech_Squad_Flash/Other_Tools/W7LE/
- set MSO_2010_PP_Path=%ftp_string%/volume1/MSO_Intuit_Installs/Microsoft/MSO_2010_Professional_Plus_64bit
- set mso2010_EZ_Path=%ftp_string%/volume1/Tech_Squad_Flash/Other_Tools/Office.2010.Toolkit.and.EZ-Activator.2.2.3/Office.2010.Toolkit.and.EZ-Activator.2.2.3/
- set dotNet_40_Path=%ftp_string%/volume1/VCRedist_And_dotNet/dotNet_4.0_web_installer.exe
- set MSO_2007_Enterprise_Path=%ftp_string%/volume1/MSO_Intuit_Installs/Microsoft/MSO_2007_Enterprise
- set FF_Path=%ftp_string%/volume1/Tech_Squad_Flash/Installs/Firefox_Installer_052118.exe
- set MSO_PP_2013_Path=%ftp_string%/volume1/MSO_Intuit_Installs/Microsoft/MSO_Professional_Plus_2013
- set MSO_PP_2013_86_Path=%ftp_string%/volume1/MSO_Intuit_Installs/Microsoft/MSO_Professional_Plus_2013_x86
- set MSO_RT_Path=%ftp_string%/volume1/MSO_Intuit_Installs/o15-ctrremove.diagcab
- set mso2013_EZ_Path=%ftp_string%/volume1/Tech_Squad_Flash/Other_Tools/Windows_Office_Toolkit_2.6.2_Final/
- set produkey_64_Path=%ftp_string%/volume1/Tech_Squad_Flash/Other_Tools/produkey-x64
- set mso2010_HS_64_Path=%ftp_string%/volume1/MSO_Intuit_Installs/Microsoft/Office_HomeStudent_2010_x64_English.exe
- set FLZL_Path=%ftp_string%/volume1/Tech_Squad_Flash/Installs/FileZilla_3.9.0.1_win32-setup_XP_LEGACY.exe
- set MSO_2007_PP_Path=%ftp_string%/volume1/MSO_Intuit_Installs/Microsoft/Office_2007_Professional_Plus
- set MSO_2007_Basic_Path=%ftp_string%/volume1/MSO_Intuit_Installs/Microsoft/MSO_2007_Basic
- set VNC_Server_Portable_Path=%ftp_string%/volume1/Tech_Squad_Flash/Portable_Apps/TightVNCServerPortable
- set CF_Path=%ftp_string%/volume1/Tech_Squad_Flash/Tech_Squad/ComboFix.exe
- ::local paths
- set Adobe_Local_Path=C:\Tech_Squad\-Fresh_Load-\AcroRdrDC1500720033_en_US.exe
- set Classic_Shell_Local_Path=C:\Tech_Squad\-Fresh_Load-\ClassicShellSetup_4_3_0.exe
- set Chrome_Local_Path=C:\Tech_Squad\-Fresh_Load-\ChromeStandaloneSetup64.exe
- set Avast_Local_Path=C:\Tech_Squad\Avast\avast_free_antivirus_setup_online.exe
- set Teamviewer11_Local_Path=C:\Tech_Squad\Teamviewer11.exe
- set Open_Office_Local_Path=C:\Tech_Squad\-Fresh_Load-\OpenOffice_4.1.0\setup.exe
- set Office_Starter_Local_Path=C:\Tech_Squad\-Fresh_Load-\Office2010Starter.exe
- set FileZillaPortable_Local_Path=C:\Tech_Squad\FileZillaPortable\FileZillaPortable.exe
- set TSRA_Local_Path=C:\Tech_Squad\TeamViewerQS_en.exe
- set ATF_Local_Path=C:\Tech_Squad\ATF-Cleaner.exe
- set ABC_Local_Path=C:\Tech_Squad\other_tools\avast-browser-cleanup.exe
- set CC_32_Local_Path=C:\Tech_Squad\ccleaner\ccleaner.exe
- set CC_64_Local_Path=C:\Tech_Squad\ccleaner\ccleaner64.exe
- set RU_Local_Path=C:\Tech_Squad\revo_uninstaller\revouninstaller\revouninstaller.exe
- set MBAR_Local_Path=C:\Tech_Squad\other_tools\mbar\mbar.exe
- set HJT_Local_Path=C:\Tech_Squad\hijackthis.exe
- set AVR_Local_Path=C:\Tech_Squad\AV_Removal_Tools
- set ADW_Local_Path=C:\Tech_Squad\adwcleaner_7.0.8.0.exe
- set TDS_Local_Path=C:\Tech_Squad\tdsskiller.exe
- set WLE_Local_Path=C:\Tech_Squad\Windows_Live_Essentials.exe
- set HM_PA_86_Local_Path=C:\Tech_Squad\HitmanPropa_x86.exe
- set HM_86_Local_Path=C:\Tech_Squad\HitmanPro35_x86.exe
- set HM_PA_64_Local_Path=C:\Tech_Squad\HitmanPropa_x64.exe
- set HM_64_Local_Path=C:\Tech_Squad\HitmanPro35_x64.exe
- set ITU_64_Local_Path=C:\Tech_Squad\iTunes64Setup.exe
- set ITU_32_Local_Path=C:\Tech_Squad\iTunesSetup.exe
- set AIO_Local_Path=C:\Tech_Squad\Tweaking_AIO\Windows_Repair\Repair_Windows.exe
- set P95_Local_Path=C:\Tech_Squad\Prime95\p95v2810.win64\prime95.exe
- set RSN_Local_Path=C:\Tech_Squad\R_Studio_5.1_Portable_Network_Build\rsd_en_5.exe
- set RSN_Lic_Local_Path=C:\Tech_Squad\R_Studio_5.1_Portable_Network_Build\Licenses.txt
- set Libre_Local_Path=C:\Tech_Squad\LibreOffice_6.0.3_Win_x64.msi
- set W7G_Local_Path=C:\Tech_Squad\Win7GamesForWin8-10.exe
- set W7LE_Local_Path=C:\Tech_Squad\W7LE
- set W7LE_Exe=w7lxe.exe
- set mso2010_EZ_Local_Path=C:\Tech_Squad\Office.2010.Toolkit.and.EZ-Activator.2.2.3
- set mso2010_EZ_Exe=2010.exe
- set dotNet_40_Local_Path=C:\Tech_Squad\dotNet_4.0_web_installer.exe
- set FF_Local_Path=C:\Tech_Squad\Firefox_Installer_052118.exe
- set mso2013_EZ_Local_Path=C:\Tech_Squad\Windows_Office_Toolkit_2.6.2_Final\Microsoft_Toolkit.exe
- set produkey_64_Local_Path=C:\Tech_Squad\produkey-x64\ProduKey.exe
- set FLZL_Local_Path=C:\Tech_Squad\FileZilla_3.9.0.1_win32-setup_XP_LEGACY.exe
- set VNC_Server_Portable_Local_Path=C:\Tech_Squad\TightVNCServerPortable\TightVNCServerPortable.exe
- set MSO_2007_Enterprise_Local_Path=C:\Tech_Squad\MSO_2007_Enterprise\setup.exe
- set MSO_PP_2013_Local_Path=C:\Tech_Squad\MSO_Professional_Plus_2013\setup.exe
- set MSO_2010_PP_Local_Path=C:\Tech_Squad\MSO_2010_Professional_Plus_64bit\setup.exe
- set MSO_2003_Pro_Local_Path=C:\Tech_Squad\Office_2003_Pro\SETUP.exe
- set MSO_RT_Local_Path=C:\Tech_Squad\o15-ctrremove.diagcab
- set MSO_PP_2013_86_Local_Path=C:\Tech_Squad\MSO_Professional_Plus_2013_x86\setup.exe
- set mso2010_HS_64_Local_Path=C:\Tech_Squad\Office_HomeStudent_2010_x64_English.exe
- set MSO_2007_PP_Local_Path=C:\Tech_Squad\Office_2007_Professional_Plus\SETUP.EXE
- set MSO_2007_Basic_Local_Path=C:\Tech_Squad\MSO_2007_Basic\setup.exe
- set CF_Local_Path=C:\Tech_Squad\ComboFix.exe
- ::PSLIST names related to local paths
- ::Although, I've not really been using PSLIST, what I wanted to use it for is more annoying than helpful.
- ::So the list below is FAR from complete, but im leaving it just incase I ever find or need a reason to use it.
- set Adobe_PSLIST_Name=AcroRdrDC1500720033_en_US
- set Clasic_Shell_PSLIST_Name=ClassicShellSetup_4_3_0
- set Chrome_PSLIST_Name=ChromeStandaloneSetup64
- set Avast_PSLIST_Name=avast_free_antivirus_setup_online
- set Teamviewer_PSLIST_Name=Teamviewer
- set Open_Office_PSLIST_Name=setup
- set Office_Starter_PSLIST_Name=Office2010Starter
- ::Log path
- set log_path=C:\Tech_Squad\logs
- echo Paths loaded.
- echo.
- ::PATHS END
- ::WGET AND PSLIST CHECK BEGIN
- echo --- WGET and PSLIST ---
- if "%smb_alt%" NEQ "0" (
- echo Using SMB alternative method to get and install wget and pslist...
- echo.
- if not exist c:\windows\system32\wget.exe (
- echo Downloading and installing wget.
- echo.
- del C:\Tech_Squad\update.wget.ftp 1>nul 2>nul
- echo.open %ftp_alt_ip%>> C:\Tech_Squad\update.wget.ftp
- echo.%ftp_alt_user%>> C:\Tech_Squad\update.wget.ftp
- echo.%ftp_alt_pass%>> C:\Tech_Squad\update.wget.ftp
- echo.lcd C:\windows\system32>> C:\Tech_Squad\update.wget.ftp
- echo.binary>> C:\Tech_Squad\update.wget.ftp
- echo.cd volume1>> C:\Tech_Squad\update.wget.ftp
- echo.get wget.exe>> C:\Tech_Squad\update.wget.ftp
- echo.disconnect>> C:\Tech_Squad\update.wget.ftp
- echo.quit>> C:\Tech_Squad\update.wget.ftp
- ftp -s:C:\Tech_Squad\update.wget.ftp
- del C:\Tech_Squad\update.wget.ftp >nul
- echo wget download attempt finished.
- echo.
- )
- if not exist c:\windows\system32\wget.exe (
- echo Something went wrong. c:\windows\system32\wget.exe is missing still
- echo get wget and pslist manually and install to c:\windows\system32
- echo This typically happens behind NAT devices where you get a
- echo 500 Illegal PORT command.
- echo 425 Use PORT or PASV first.
- echo on your ftp commands. Windows FTP doesn't support pasv, so don't bother.
- echo.
- echo Come back when you have wget/pslist
- pause
- exit
- )
- ::start /min /wait wget --passive-ftp -np -nH --cut-dirs 1 -m %smb_alt_string%/volume1/pslist.exe -P c:\windows\system32\pslist.exe
- ::Honestly using pslist was a good idea but it's annoying.... maybe one day ill find a use for it...
- if not exist c:\windows\system32\pslist.exe (
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 1 -m %smb_alt_string%/volume1/pslist.exe
- Title Chase's EZPZ Script
- cd C:\Tech_Squad
- copy pslist.exe c:\windows\system32\pslist.exe
- )
- if not exist c:\windows\system32\pslist.exe (
- echo Something went wrong. c:\windows\system32\pslist.exe is missing still
- pause
- exit
- )
- if exist c:\windows\system32\wget.exe (
- if exist c:\windows\system32\pslist.exe (
- echo Success probably! It looks like wget and pslist both exist.
- ::ping 127.0.0.1 >nul
- goto C3
- )
- )
- echo Failure probably! so whatever... you wanna do with that.... idk what happened.
- pause
- exit
- )
- :C13
- if exist c:\windows\system32\pslist.exe (
- echo pslist.exe found!
- goto C2
- )
- copy %smb_string%\volume1\pslist.exe c:\windows\system32\pslist.exe 1>nul 2>nul
- if not exist C:\Windows\system32\pslist.exe (
- echo problem with local SMB. Unable to install pslist
- ping 127.0.0.1 >nul
- echo rolling over to nemoportal... maybe find a better alternative later.
- ping 127.0.0.1 >nul
- goto Nemoportal_Net_Test
- )
- echo Installed pslist.exe
- goto C13
- :C2
- if exist c:\windows\system32\wget.exe (
- echo wget.exe found!
- goto C3
- )
- copy %smb_string%\volume1\wget.exe c:\windows\system32\wget.exe 1>nul 2>nul
- echo installed wget.exe
- goto C2
- ::WGET AND PSLIST CHECK END
- ::DOUBLE SET DIRECTORY BEGIN
- :C3
- if not exist C:\Tech_Squad mkdir C:\Tech_Squad
- if "%cd%" EQU "C:\Tech_Squad" goto C1
- cd C:\Tech_Squad
- if "%cd%" NEQ "C:\Tech_Squad" goto copy_set_dir
- goto C1
- :copy_set_dir
- copy %cd%fl2.0.bat C:\Tech_Squad\fl2.0.bat
- if exist C:\Tech_Squad\fl2.0.bat (
- start C:\Tech_Squad\fl2.0.bat
- exit
- ) else (
- echo Unable to copy script to C:\Tech_Squad or set CD to C:\Tech_Squad
- echo Please copy fl2.0.bat to C:\Tech_Squad manually
- echo This can happen if running the script from a network drive or other non-local source.
- pause
- exit
- )
- ::if "%cd%" EQU "C:\Tech_Squad" goto C1
- ::echo something went wrong.
- ::pause
- ::exit
- ::DOUBLE SET DIRECTORY END
- ::GET TECH SQUAD REMOTE ASSISTANCE APP AND DESKTOP ICON BEGIN
- :C1
- if not exist "C:\Tech Squad" goto skip_old_dir
- echo Cleaning up old Tech Squad Directory
- del /q "C:\Tech Squad\*"
- FOR /D %%p IN ("C:\Tech Squad\*.*") DO rmdir "%%p" /s /q
- rmdir "C:\Tech Squad"
- ::Add new TSRA Icon
- del "%UserProfile%\Desktop\Tech Squad Remote Assistance.lnk" 1>nul 2>nul
- if not exist C:\Tech_Squad\TeamViewerQS_en.exe (
- echo.
- echo Downloading Tech Squad Remote Assistance Application...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %TSRA_Path%
- Title Chase's EZPZ Script
- echo Done!
- echo.
- )
- ::echo.
- ::mklink "%UserProfile%\Desktop\Tech Squad Remote Assistance" %TSRA_Local_Path%
- ::echo.
- ::copy "C:\Tech_Squad\TeamViewerQS_en.exe" "%UserProfile%\Desktop\Tech Squad Remote Assistance.exe" 1>nul 2>nul
- ::I still feel like the icon creation doesn't really work. I used to use the above before, now I use what is below... idk..
- set SCRIPT="%TEMP%\%RANDOM%-%RANDOM%-%RANDOM%-%RANDOM%.vbs"
- echo Set oWS = WScript.CreateObject("WScript.Shell") >> %SCRIPT%
- echo sLinkFile = "%USERPROFILE%\Desktop\Tech Squad Remote Assistance.lnk" >> %SCRIPT%
- echo Set oLink = oWS.CreateShortcut(sLinkFile) >> %SCRIPT%
- echo oLink.TargetPath = "C:\Tech_Squad\TeamViewerQS_en.exe" >> %SCRIPT%
- echo oLink.Save >> %SCRIPT%
- cscript /nologo %SCRIPT%
- del %SCRIPT%
- echo. %date% - %time%: Created TSRA Icon on the desktop >> C:\Tech_Squad\logs\fl2.0.log
- :skip_old_dir
- ::GET TECH SQUAD REMOTE ASSISTANCE APP AND DESKTOP ICON END
- echo.
- echo --- Initialization Complete ---
- ping 127.0.0.1 >nul
- ping 127.0.0.1 >nul
- ping 127.0.0.1 >nul
- goto Main_Menu
- ::INITIALIZATION END!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- :Main_Menu
- cls
- ::set /a tip=%RANDOM%%%%numtips%+1
- ::if %tip% GTR %numtips% set tip=1
- ::set d_tip=tip_%tip%
- ::call set "display_tip=%%%d_tip%%%"
- ::echo Tip: %display_tip%
- ::echo.
- ::echo -------------------------------------------------------------
- ::echo.
- ipconfig | findstr /r /c:"IPv4"
- echo Default password to VNCPortable is 1234
- echo.
- echo --- Menus ---
- echo CU = Cleanup Items Menu
- echo FL = Fresh Load Items Menu
- echo MSO = Microsoft Office Menu
- echo BWR = Bloatware Removal Script Menu
- echo PATK = PA Toolkits Menu
- echo DNVC = dotNet and Visual C Redist Installers Menu
- echo.
- echo --- Misc Items not in menu ---
- echo.
- echo DUAC = Disable UAC
- echo VNCS = TightVNCServerPortable
- echo FLZ(L) = FileZilla/Filezilla Legacy Install for Windows XP
- echo TV(U) = Teamviewer Installation/Teamviewer Uninstallation
- echo TSRA = Tech Squad Remote Assistance
- echo AVA = Avast Installtion
- echo EDRS = Edge Disable Restore Session registry edit
- echo OD = One Drive Uninstalltion
- echo DI = Desktop Icon Menu
- echo DEF = Disable Windows Defender
- echo AIO = Tweaking AIO Windows Repair
- echo CF = ComboFix
- echo P95 = Prime 95
- echo PK64 = ProduKey x64
- echo RSN(U) = R-Studio Network 5.1 Install/Uninstall
- echo GWX = Windows 10 Installation Files Download
- echo DEL = Delete a directory completely
- echo FL2L = Save fl2.0.bat log file to customer logs directory
- echo.
- echo X = Exit
- echo.
- echo.
- set /p main_menu=Make a selection:
- set upper=
- for /f "skip=2 delims=" %%I in ('tree "\%main_menu%"') do if not defined upper set "upper=%%~I"
- set "upper=%upper:~3%"
- set main_menu=%upper%
- if "%main_menu%"=="CU" goto CU_Items_Y
- if "%main_menu%"=="FL" goto Fresh_Load_Menu
- if "%main_menu%"=="FLZ" goto FileZillaPortable
- if "%main_menu%"=="FLZL" goto FileZilla_Legacy
- if "%main_menu%"=="TSRA" goto TSRA_Desktop
- if "%main_menu%"=="TV" goto Start_Teamviewer_Install
- if "%main_menu%"=="AVA" goto Avast_Install
- if "%main_menu%"=="EDRS" goto Edge_Disable_Restore_Reg_Run
- if "%main_menu%"=="OD" goto One_Drive_Uninstall
- if "%main_menu%"=="DI" goto Desktop_Icons
- if "%main_menu%"=="TVU" goto Teamviewer_Uninstall
- if "%main_menu%"=="MSO" goto MSO_Menu
- if "%main_menu%"=="AIO" goto Tweaking_AIO_Windows_Repair
- if "%main_menu%"=="CF" goto ComboFix
- if "%main_menu%"=="P95" goto Prime_95
- if "%main_menu%"=="GWX" goto Windows_10_Download
- if "%main_menu%"=="RSN" goto R_Studio_Network
- if "%main_menu%"=="RSNU" goto R_Studio_Network_Uninstall
- if "%main_menu%"=="BWR" goto Bloatware_Removal_Menu
- if "%main_menu%"=="DEL" goto Delete_Function
- if "%main_menu%"=="PATK" goto PA_Toolkit_Menu
- if "%main_menu%"=="DNVC" goto DNVC_Menu
- if "%main_menu%"=="PK64" goto Produkey_64
- if "%main_menu%"=="DEF" goto Windows_Defender_Disable
- if "%main_menu%"=="FL2L" goto FL2_Log
- if "%main_menu%"=="VNCS" goto VNC_Server
- if "%main_menu%"=="DUAC" goto DUAC
- if "%main_menu%"=="X" goto exitfunction
- echo input not recognized, try again -- %main_menu%
- pause
- goto Main_Menu
- ::Begin Misc Items
- :DUAC
- START /WAIT C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f
- echo Rebooting...
- ping 127.0.0.1 > nul
- shutdown /r /f /t 0
- goto main_menu
- :ComboFix
- if not exist %CF_Local_Path% (
- echo.
- echo Downloading ComboFix...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %CF_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- start %CF_Local_Path%
- echo. %date% - %time%: Started ComboFix >> C:\Tech_Squad\logs\fl2.0.log
- goto main_menu
- :VNC_Server
- if not exist %VNC_Server_Portable_Local_Path% (
- echo.
- echo Downloading VNC Portable Server...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %VNC_Server_Portable_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- start %VNC_Server_Portable_Local_Path%
- echo. %date% - %time%: Started VNC Portable Server >> C:\Tech_Squad\logs\fl2.0.log
- goto main_menu
- :FL2_Log
- echo.
- if exist %log_path%\customer_name.log (
- set /p customer_name=<%log_path%\customer_name.log
- ) else (
- set /p customer_name=Customer Name:
- )
- if exist %log_path%\date_L.log (
- set /p date_L=<%log_path%\date_L.log
- ) else (
- set /p date_L=Date:
- )
- copy C:\Tech_Squad\logs\fl2.0.log \\10.0.2.1\volume1\Customer_Logs\%customer_name%_%date_L%.log 1>nul 2>nul
- echo Done!
- echo Saved as \\10.0.2.1\volume1\Customer_Logs\%customer_name%_%date_L%.log
- ping 127.0.0.1 >nul
- goto Main_Menu
- :FileZilla_Legacy
- if not exist %FLZL_Local_Path% (
- echo.
- echo Downloading FileZilla 3.9.0.1 Legacy for windows XP...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %FLZL_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- start %FLZL_Local_Path%
- echo. %date% - %time%: Installed FileZilla Legacy for Windows XP and ran it >> C:\Tech_Squad\logs\fl2.0.log
- goto Main_Menu
- :Windows_Defender_Disable
- taskkill /F /IM MpCmdRun.exe 2>nul
- echo Adding Registry Key: "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableAntiSpyware /t REG_DWORD /d 1 /f
- Reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableAntiSpyware /t REG_DWORD /d 1 /f >nul
- schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Cache Maintenance" /Disable >nul 2>&1
- echo Disabled - Windows Defender Cache Maintenance
- schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Cleanup" /Disable >nul 2>&1
- echo Disabled - Windows Defender Cleanup
- schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Scheduled Scan" /Disable >nul 2>&1l
- echo Disabled - Windows Defender Scheduled Scan
- schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Verification" /Disable >nul 2>&1
- echo Disabled - Windows Defender Verification
- echo.
- echo You should reboot now for changes to take affect.
- if exist C:\Tech_Squad\Startup\Defender_Disable.bat (
- echo Startup script seems to be already installed, skipping defender startup question/install
- ping 127.0.0.1 >nul
- goto skip_def_start
- ) else (
- goto C_Defender_Q
- )
- :C_Defender_Q
- echo Note: Installing this script will require that UAC is turned OFF!
- set /p def_start=Would you like to install the startup script to disable windows defender? [Y] [N]:
- set upper=
- for /f "skip=2 delims=" %%I in ('tree "\%def_start%"') do if not defined upper set "upper=%%~I"
- set "upper=%upper:~3%"
- set def_start=%upper%
- if "%def_start%"=="Y" goto inst_def_start
- if "%def_start%"=="N" goto skip_def_start
- echo Input not recognized, press any key to try again
- pause >nul
- goto C_Defender_Q
- :inst_def_start
- echo Adding registry key to disable UAC on reboot... Press any key to continue
- pause >nul
- echo. %date% - %time%: Added registry key to disable UAC on reboot >> C:\Tech_Squad\logs\fl2.0.log
- start /MIN C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f
- if not exist C:\Tech_Squad\Startup mkdir C:\Tech_Squad\Startup
- copy \\10.0.2.1\volume1\Startup_Scripts\Defender_Disable.bat C:\Tech_Squad\Startup\Defender_Disable.bat
- if not exist "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\Tech_Squad.bat" echo.@echo off>>"%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\Tech_Squad.bat"
- echo.START /MIN C:\Tech_Squad\Startup\Defender_Disable.bat>>"%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\Tech_Squad.bat"
- :skip_def_start
- echo. %date% - %time%: Attempted to disabled Windows Defender >> C:\Tech_Squad\logs\fl2.0.log
- goto Main_Menu
- :Produkey_64
- if not exist %produkey_64_Local_Path% (
- echo.
- echo Downloading Produkey x64...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %produkey_64_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- start %produkey_64_Local_Path%
- echo. %date% - %time%: Ran Produkey x64 >> C:\Tech_Squad\logs\fl2.0.log
- goto Main_Menu
- :Delete_Function
- set /p delpath=Path to delete:
- mkdir C:\Tech_Squad\Temp\
- del /q "%delpath%\*"
- FOR /D %%p IN ("%delpath%\*.*") DO rmdir "%%p" /s /q
- rmdir %delpath%
- move %delpath% C:\Tech_Squad\Temp\Delete_Me
- del /q "C:\Tech_Squad\Temp\Delete_Me\*"
- FOR /D %%p IN ("C:\Tech_Squad\Temp\Delete_Me\*.*") DO rmdir "%%p" /s /q
- rmdir C:\Tech_Squad\Temp\Delete_Me
- echo done!
- echo. %date% - %time%: Deleted %delpath% >> C:\Tech_Squad\logs\fl2.0.log
- pause
- goto Main_Menu
- :R_Studio_Network_Uninstall
- if exist "C:\Program Files (x86)\R-Studio" (
- "C:\Program Files (x86)\R-Studio\Uninstall.exe"
- )
- if exist "C:\Program Files\R-Studio" (
- "C:\Program Files\R-Studio\Uninstall.exe"
- )
- goto Main_Menu
- :R_Studio_Network
- if not exist %RSN_Local_Path% (
- echo.
- echo Downloading R-Studio 5.1 Network Build...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %RSN_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- start %RSN_Local_Path%
- start %RSN_Lic_Local_Path%
- echo. %date% - %time%: Started R-Studio 5.1 Network build installtion >> C:\Tech_Squad\logs\fl2.0.log
- goto Main_Menu
- :Prime_95
- if not exist %P95_Local_Path% (
- echo.
- echo Downloading Prime 95...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %P95_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- start %P95_Local_Path%
- echo. %date% - %time%: Started Prime 95 >> C:\Tech_Squad\logs\fl2.0.log
- goto Main_Menu
- :Tweaking_AIO_Windows_Repair
- if not exist %AIO_Local_Path% (
- echo.
- echo Downloading Tweaking AIO Windows Repair...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %AIO_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- start %AIO_Local_Path%
- echo. %date% - %time%: Started AIO Windows Repair tool >> C:\Tech_Squad\logs\fl2.0.log
- goto main_menu
- :Teamviewer_Uninstall
- if exist "C:\Program Files (x86)\TeamViewer\uninstall.exe" (
- taskkill /F /IM Teamviewer.exe 2>nul
- "C:\Program Files (x86)\TeamViewer\uninstall.exe" 1>nul 2>nul
- )
- if exist "C:\Program Files (x86)\TeamViewer\Version9\uninstall.exe" (
- taskkill /F /IM Teamviewer.exe 2>nul
- "C:\Program Files (x86)\TeamViewer\Version9\uninstall.exe"
- )
- echo. %date% - %time%: Removed Teamviewer >> C:\Tech_Squad\logs\fl2.0.log
- goto Main_Menu
- :Windows_10_Download
- del C:\Tech_Squad\w10dl.bat 1>nul 2>nul
- if "%smb_alt_string%"=="null" (
- copy %smb_string%\volume1\w10dl.bat C:\Tech_Squad\w10dl.bat
- ) else (
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 1 -m %smb_alt_string%/volume1/w10dl.bat
- Title Chase's EZPZ Script
- )
- start C:\Tech_Squad\w10dl.bat
- echo. %date% - %time%: Started download/installation of windows 10 >> C:\Tech_Squad\logs\fl2.0.log
- goto Main_Menu
- :Desktop_Icons
- desk.cpl ,,5
- goto Main_Menu
- :One_Drive_Uninstall
- echo.
- echo Attempting to run OneDrive uninstallation
- taskkill /F /IM OneDrive.exe 2>nul
- ping 127.0.0.1 >nul
- if %OS%==32BIT goto 32bitOneDrive
- if %OS%==64BIT goto 64bitOneDrive
- echo %date% -- %time%: error in OS detection skipping One Drive uninstall
- :32bitOneDrive
- %SystemRoot%\System32\OneDriveSetup.exe /uninstall
- goto One_Drive_Uninstall_End
- :64bitOneDrive
- %SystemRoot%\SysWOW64\OneDriveSetup.exe /uninstall
- goto One_Drive_Uninstall_End
- :One_Drive_Uninstall_End
- echo. %date% - %time%: Removed OneDrive >> C:\Tech_Squad\logs\fl2.0.log
- goto Main_Menu
- :Edge_Disable_Restore_Reg_Run
- reg add "HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\MicrosoftEdge\Recovery" /v AutoRecover /t REG_DWORD /d 2 /f >nul
- echo done!
- echo. %date% - %time%: Added registry key to disable Microsoft Edge forced session restore feature >> C:\Tech_Squad\logs\fl2.0.log
- goto Main_Menu
- :Avast_Install
- if not exist %Avast_Local_Path% (
- echo.
- echo Downloading Avast...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %Avast_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- start %Avast_Local_Path%
- ::No need to wait for avast installation
- ::echo Waiting for avast installation to finish...
- ::PSLIST %Avast_PSLIST_Name% >nul 2>&1
- ::IF ERRORLEVEL 1 (
- :: GOTO C16
- ::) ELSE (
- :: ping 127.0.0.1 >nul
- :: GOTO C17
- ::)
- ::So I'm commenting it out.
- echo. %date% - %time%: Started installation for Avast >> C:\Tech_Squad\logs\fl2.0.log
- goto Main_Menu
- :TSRA_Desktop
- if exist "%UserProfile%\Desktop\Tech Squad Remote Assistance.lnk" del "%UserProfile%\Desktop\Tech Squad Remote Assistance.lnk" 1>nul 2>nul
- goto TSRA_Desktop_2
- ::if not exist "%UserProfile%\Desktop\Tech Squad Remote Assistance.lnk" goto TSRA_Desktop_2
- ::echo TSRA Icon already exists on user desktop, skipping.
- ::pause
- ::goto Main_Menu
- :TSRA_Desktop_2
- if exist "%UserProfile%\Desktop\Tech Squad Matt.lnk" (
- del "%UserProfile%\Desktop\Tech Squad Matt.lnk" 1>nul 2>nul
- )
- if exist "%UserProfile%\Desktop\Tech Squad - Matt.lnk" (
- del "%UserProfile%\Desktop\Tech Squad - Matt.lnk" 1>nul 2>nul
- )
- if not exist C:\Tech_Squad\TeamViewerQS_en.exe (
- echo.
- echo Downloading Tech Squad Remote Assistance Application...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %TSRA_Path%
- Title Chase's EZPZ Script
- echo Done!
- echo.
- )
- ::echo.
- ::mklink "%UserProfile%\Desktop\Tech Squad Remote Assistance" %TSRA_Local_Path%
- ::echo.
- ::copy "C:\Tech_Squad\TeamViewerQS_en.exe" "%UserProfile%\Desktop\Tech Squad Remote Assistance.exe" 1>nul 2>nul
- set SCRIPT="%TEMP%\%RANDOM%-%RANDOM%-%RANDOM%-%RANDOM%.vbs"
- echo Set oWS = WScript.CreateObject("WScript.Shell") >> %SCRIPT%
- echo sLinkFile = "%USERPROFILE%\Desktop\Tech Squad Remote Assistance.lnk" >> %SCRIPT%
- echo Set oLink = oWS.CreateShortcut(sLinkFile) >> %SCRIPT%
- echo oLink.TargetPath = "C:\Tech_Squad\TeamViewerQS_en.exe" >> %SCRIPT%
- echo oLink.Save >> %SCRIPT%
- cscript /nologo %SCRIPT%
- del %SCRIPT%
- echo. %date% - %time%: Added Tech Squad Remote Assistance icon to the desktop >> C:\Tech_Squad\logs\fl2.0.log
- goto Main_Menu
- :Start_Teamviewer_Install
- if not exist %Teamviewer11_Local_Path% (
- echo.
- echo Downloading Teamviewer11.exe
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %Teamviewer11_Path%
- Title Chase's EZPZ Script
- echo Done!
- echo.
- )
- start %Teamviewer11_Local_Path%
- echo. %date% - %time%: Started teamviewer 11 installation >> C:\Tech_Squad\logs\fl2.0.log
- goto Main_Menu
- :FileZillaPortable
- if not exist %FileZillaPortable_Local_Path% (
- echo.
- echo Downloading FileZillaPortable Folder...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %FileZillaPortable_Path%
- Title Chase's EZPZ Script
- echo Done!
- echo.
- )
- start %FileZillaPortable_Local_Path%
- echo FileZillaPortable Started
- echo. %date% - %time%: Started FileZilla Portable >> C:\Tech_Squad\logs\fl2.0.log
- goto Main_Menu
- ::End Misc Items
- ::Begin dotNet and VCRedist installers
- :DNVC_Menu
- cls
- set /a tip=%RANDOM%%%%numtips%+1
- if %tip% GTR %numtips% set tip=1
- set d_tip=tip_%tip%
- call set "display_tip=%%%d_tip%%%"
- echo Tip: %display_tip%
- echo.
- echo -------------------------------------------------------------
- echo.
- echo DN40 = dotNet 4.0 Web Installer
- echo N = None, back to main menu.
- echo.
- echo.
- set /p dnvc_sel=Make a selection:
- set upper=
- for /f "skip=2 delims=" %%I in ('tree "\%dnvc_sel%"') do if not defined upper set "upper=%%~I"
- set "upper=%upper:~3%"
- set dnvc_sel=%upper%
- if "%dnvc_sel%"=="DN40" goto DN40
- if "%dnvc_sel%"=="N" goto Main_Menu
- echo Input not recognized, try again
- goto DNVC_Menu
- :DN40
- if not exist %dotNet_40_Local_Path% (
- echo.
- echo Downloading dotNet Framework 4.0 web installer...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 2 -m %dotNet_40_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- start %dotNet_40_Local_Path%
- echo. %date% - %time%: Started installation for .Net 4.0 >> C:\Tech_Squad\logs\fl2.0.log
- goto DNVC_Menu
- ::End dotNet and VCRedist installers
- ::Begin PA Toolkits
- :PA_Toolkit_Menu
- cls
- set /a tip=%RANDOM%%%%numtips%+1
- if %tip% GTR %numtips% set tip=1
- set d_tip=tip_%tip%
- call set "display_tip=%%%d_tip%%%"
- echo Tip: %display_tip%
- echo.
- echo -------------------------------------------------------------
- echo.
- echo CW7(U) = Windows 7 Loader Extreme Edition / Remove W7LE Files
- echo 2010(U) = Office 2010 Toolkit and EZ Activator / Remove 2010 Toolkit Files
- echo 2013(U) = Office 2013 Toolkit / Remove 2013 Toolkit Files
- echo.
- echo N = None, back to main menu.
- echo.
- echo.
- set /p pa_sel=Make a selection:
- set upper=
- for /f "skip=2 delims=" %%I in ('tree "\%pa_sel%"') do if not defined upper set "upper=%%~I"
- set "upper=%upper:~3%"
- set pa_sel=%upper%
- if "%pa_sel%"=="CW7" goto W7LE
- if "%pa_sel%"=="CW7U" goto W7LEU
- if "%pa_sel%"=="2010" goto 2010_EZ
- if "%pa_sel%"=="2010U" goto 2010_EZ_U
- if "%pa_sel%"=="2013" goto 2013_EZ
- if "%pa_sel%"=="2013U" goto 2013_EZ_U
- if "%pa_sel%"=="N" goto Main_Menu
- echo Input not recognized, try again
- goto PA_Toolkit_Menu
- :2013_EZ_U
- taskkill /f /im "WinDivert Loader.exe"
- if exist %mso2013_EZ_Local_Path:~0,-21% RMDIR /S /Q %mso2013_EZ_Local_Path:~0,-21%
- pause
- goto PA_Toolkit_Menu
- :2013_EZ
- if not exist %mso2013_EZ_Local_Path% (
- echo.
- echo Downloading Microsoft Office 2013 Toolkit...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %mso2013_EZ_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- start %mso2013_EZ_Local_Path%
- goto PA_Toolkit_Menu
- :2010_EZ
- if not exist %mso2010_EZ_Local_Path% (
- echo.
- echo Downloading Microsoft Office 2010 Toolkit and EZ Activator 2.2.3...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 4 -m %mso2010_EZ_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- start %mso2010_EZ_Local_Path%\%mso2010_EZ_Exe%
- goto PA_Toolkit_Menu
- :2010_EZ_U
- mkdir C:\Tech_Squad\Temp\
- del /q "%mso2010_EZ_Local_Path%\*"
- FOR /D %%p IN ("%mso2010_EZ_Local_Path%\*.*") DO rmdir "%%p" /s /q
- rmdir %mso2010_EZ_Local_Path%
- move %mso2010_EZ_Local_Path% C:\Tech_Squad\Temp\Delete_Me
- del /q "C:\Tech_Squad\Temp\Delete_Me\*"
- FOR /D %%p IN ("C:\Tech_Squad\Temp\Delete_Me\*.*") DO rmdir "%%p" /s /q
- rmdir C:\Tech_Squad\Temp\Delete_Me
- echo done!
- goto PA_Toolkit_Menu
- :W7LE
- if not exist %W7LE_Local_Path% (
- echo Downloading Windows 7 Loader Extreme Edition...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %W7LE_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- start %W7LE_Local_Path%\%W7LE_Exe%
- goto PA_Toolkit_Menu
- :W7LEU
- mkdir C:\Tech_Squad\Temp\
- del /q "%W7LE_Local_Path%\*"
- FOR /D %%p IN ("%W7LE_Local_Path%\*.*") DO rmdir "%%p" /s /q
- rmdir %W7LE_Local_Path%
- move %W7LE_Local_Path% C:\Tech_Squad\Temp\Delete_Me
- del /q "C:\Tech_Squad\Temp\Delete_Me\*"
- FOR /D %%p IN ("C:\Tech_Squad\Temp\Delete_Me\*.*") DO rmdir "%%p" /s /q
- rmdir C:\Tech_Squad\Temp\Delete_Me
- echo done!
- goto PA_Toolkit_Menu
- ::End PA Toolkits
- ::Begin MSO Menu Items
- :MSO_Menu
- cls
- set /a tip=%RANDOM%%%%numtips%+1
- if %tip% GTR %numtips% set tip=1
- set d_tip=tip_%tip%
- call set "display_tip=%%%d_tip%%%"
- echo Tip: %display_tip%
- echo.
- echo -------------------------------------------------------------
- echo.
- echo 2K3P = Office 2003 Professional
- echo 2K7B = Office 2007 Basic
- echo 2K7E = Office 2007 Enterprise
- echo 2K7PP = Office 2007 Professional Plus
- echo 2010PP = Office 2010 Professional Plus 64 bit
- echo 2010HS = Office 2010 Home and Student 64 bit
- echo 2013PP = Office 2013 Professional Plus 64 bit
- echo 13PP86 = Office 2013 Professional Plus 32 bit
- echo.
- echo Clear = Wipe all office installation folders
- echo MSORT = Microsoft Office Removal Tool
- echo.
- echo N = None, back to main menu.
- echo.
- echo.
- set /p mso_sel=Make a selection:
- set upper=
- for /f "skip=2 delims=" %%I in ('tree "\%mso_sel%"') do if not defined upper set "upper=%%~I"
- set "upper=%upper:~3%"
- set mso_sel=%upper%
- if "%mso_sel%"=="2K3P" goto MSO_2003_Pro
- if "%mso_sel%"=="N" goto Main_Menu
- if "%mso_sel%"=="2010PP" goto 2010PP64
- if "%mso_sel%"=="2K7E" goto 2K7E
- if "%mso_sel%"=="2013PP" goto 2013PP64
- if "%mso_sel%"=="CLEAR" goto clear_mso
- if "%mso_sel%"=="MSORT" goto MSORT
- if "%mso_sel%"=="13PP86" goto 2013PP86
- if "%mso_sel%"=="2010HS" goto 2010HS64
- if "%mso_sel%"=="2K7PP" goto 2K7PP
- if "%mso_sel%"=="2K7B" goto MSO_2007_Basic
- echo Input not recognized, try again
- goto MSO_Menu
- :2K7PP
- if not exist %MSO_2007_PP_Local_Path% (
- echo.
- echo Downloading Microsoft Office 2007 Professional Plus...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %MSO_2007_PP_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- start %MSO_2007_PP_Local_Path%
- echo. %date% - %time%: Started Microsoft Office 2007 Professional Plus installation >> C:\Tech_Squad\logs\fl2.0.log
- goto MSO_Menu
- :2010HS64
- if not exist %mso2010_HS_64_Local_Path% (
- echo.
- echo Downloading Microsoft Office 2010 Home and Student 64 bit...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %mso2010_HS_64_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- start %mso2010_HS_64_Local_Path%
- echo. %date% - %time%: Started Microsoft Office 2010 Home and Student 64 bit installation >> C:\Tech_Squad\logs\fl2.0.log
- goto MSO_Menu
- :MSORT
- if not exist %MSO_RT_Local_Path% (
- echo.
- echo Downloading Microsoft Office Removal Tool...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 2 -m %MSO_RT_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- start %MSO_RT_Local_Path%
- echo. %date% - %time%: Started Microsoft Office Removal Tool >> C:\Tech_Squad\logs\fl2.0.log
- goto MSO_Menu
- :clear_mso
- if exist %mso2010_HS_64_Local_Path% RMDIR /S /Q %mso2010_HS_64_Local_Path:~0,-9%
- if exist %MSO_2007_Enterprise_Local_Path% RMDIR /S /Q %MSO_2007_Enterprise_Local_Path:~0,-9%
- if exist %MSO_PP_2013_Local_Path% RMDIR /S /Q %MSO_PP_2013_Local_Path:~0,-9%
- if exist %MSO_2010_PP_Local_Path% RMDIR /S /Q %MSO_2010_PP_Local_Path:~0,-9%
- if exist %MSO_2003_Pro_Local_Path% RMDIR /S /Q %MSO_2003_Pro_Local_Path:~0,-9%
- ::add 2007 basic, i dun wanna
- echo. %date% - %time%: Removed all Microsoft Office installation Files >> C:\Tech_Squad\logs\fl2.0.log
- goto MSO_Menu
- :2K7E
- if not exist %MSO_2007_Enterprise_Local_Path% (
- echo.
- echo Downloading Office 2007 Enterprise...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %MSO_2007_Enterprise_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- start %MSO_2007_Enterprise_Local_Path%
- echo. %date% - %time%: Started Microsoft Office 2007 installation >> C:\Tech_Squad\logs\fl2.0.log
- goto MSO_Menu
- :2013PP64
- if not exist %MSO_PP_2013_Local_Path% (
- echo.
- echo Downloading Office 2013 Professional Plus 64 bit...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %MSO_PP_2013_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- start %MSO_PP_2013_Local_Path%
- echo. %date% - %time%: Started Microsoft Office 2013 Professional Plus 64 bit installation >> C:\Tech_Squad\logs\fl2.0.log
- goto MSO_Menu
- :2013PP86
- if not exist %MSO_PP_2013_86_Local_Path% (
- echo.
- echo Downloading Office 2013 Professional Plus 32 bit...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %MSO_PP_2013_86_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- start %MSO_PP_2013_86_Local_Path%
- echo. %date% - %time%: Started Microsoft Office 2013 Professional Plus 32 bit installation >> C:\Tech_Squad\logs\fl2.0.log
- goto MSO_Menu
- :2010PP64
- if not exist %MSO_2010_PP_Local_Path% (
- echo.
- echo Downloading Office 2010 Professional Plus 64 bit...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %MSO_2010_PP_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- start %MSO_2010_PP_Local_Path%
- echo. %date% - %time%: Started Microsoft Office 2010 Professional Plus 64 bit installation >> C:\Tech_Squad\logs\fl2.0.log
- goto MSO_Menu
- :MSO_2003_Pro
- if not exist %MSO_2003_Pro_Local_Path% (
- echo.
- echo Downloading Office 2003 Professional...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %MSO_2003_Pro_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- start %MSO_2003_Pro_Local_Path%
- echo. %date% - %time%: Started Microsoft Office 2003 Professional installation >> C:\Tech_Squad\logs\fl2.0.log
- goto MSO_Menu
- :MSO_2007_Basic
- if not exist %MSO_2007_Basic_Local_Path% (
- echo.
- echo Downloading Office 2007 Basic...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %MSO_2007_Basic_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- start %MSO_2007_Basic_Local_Path%
- echo. %date% - %time%: Started Microsoft Office 2007 Basic installation >> C:\Tech_Squad\logs\fl2.0.log
- goto MSO_Menu
- ::End MSO Menu Items
- ::Begin Bloatware_Removal_Menu Items
- :Bloatware_Removal_Menu
- cls
- set /a tip=%RANDOM%%%%numtips%+1
- if %tip% GTR %numtips% set tip=1
- set d_tip=tip_%tip%
- call set "display_tip=%%%d_tip%%%"
- echo Tip: %display_tip%
- echo.
- echo -------------------------------------------------------------
- echo.
- echo HP = HP Bloatware Removal Script
- echo DELL = Dell Bloatware Removal Script
- echo ASUS = Asus Bloatware Removal Script
- echo GBR = General Bloatware Removal Script
- echo TBA = Toshiba Bloatware Removal Script
- echo ALL = Run all -not a good idea to run them all at once. run them individually for now-
- echo N = None, back to main menu
- echo.
- echo.
- set /p bwr_sel=Make a selection:
- set upper=
- for /f "skip=2 delims=" %%I in ('tree "\%bwr_sel%"') do if not defined upper set "upper=%%~I"
- set "upper=%upper:~3%"
- set bwr_sel=%upper%
- if "%bwr_sel%"=="HP" goto HP_Bloatware_Removal
- if "%bwr_sel%"=="GBR" goto General_Bloatware_Removal
- if "%bwr_sel%"=="DELL" goto DELL_Bloatware_Removal
- if "%bwr_sel%"=="ASUS" goto ASUS_Bloatware_Removal
- if "%bwr_sel%"=="TBA" goto Toshiba_Bloatware_Removal
- if "%bwr_sel%"=="ALL" goto ALL_Bloatware_Removal
- if "%bwr_sel%"=="N" (
- cls
- goto Main_Menu
- )
- echo input not recognized, try again
- ping 127.0.0.1 >nul
- goto Bloatware_Removal_Menu
- :Toshiba_Bloatware_Removal
- if "%smb_alt_string%" NEQ "null" goto Toshiba_Bloatware_Removal_S
- start %smb_string%\volume1\Toshiba_BWR.bat
- goto Bloatware_Removal_Menu
- :Toshiba_Bloatware_Removal_S
- if exist C:\Tech_Squad\Toshiba_BWR.bat del C:\Tech_Squad\Toshiba_BWR.bat 1>nul 2>nul
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 1 -m %smb_alt_string%/volume1/Toshiba_BWR.bat
- Title Chase's EZPZ Script
- start C:\Tech_Squad\Toshiba_BWR.bat
- goto Bloatware_Removal_Menu
- :ASUS_Bloatware_Removal
- if "%smb_alt_string%" NEQ "null" goto ASUS_Bloatware_Removal_S
- start %smb_string%\volume1\Asus_BWR.bat
- goto Bloatware_Removal_Menu
- :ASUS_Bloatware_Removal_S
- if exist C:\Tech_Squad\Asus_BWR.bat del C:\Tech_Squad\Asus_BWR.bat 1>nul 2>nul
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 1 -m %smb_alt_string%/volume1/Asus_BWR.bat
- Title Chase's EZPZ Script
- start C:\Tech_Squad\Asus_BWR.bat
- goto Bloatware_Removal_Menu
- :HP_Bloatware_Removal
- if "%smb_alt_string%" NEQ "null" goto HP_Bloatware_Removal_S
- start %smb_string%\volume1\HP_Bloatware_Removal.bat
- goto Bloatware_Removal_Menu
- :HP_Bloatware_Removal_S
- if exist C:\Tech_Squad\HP_Bloatware_Removal.bat del C:\Tech_Squad\HP_Bloatware_Removal.bat 1>nul 2>nul
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 1 -m %smb_alt_string%/volume1/HP_Bloatware_Removal.bat
- Title Chase's EZPZ Script
- start C:\Tech_Squad\HP_Bloatware_Removal.bat
- goto Bloatware_Removal_Menu
- :General_Bloatware_Removal
- if "%smb_alt_string%" NEQ "null" goto General_Bloatware_Removal_S
- start %smb_string%\volume1\General_Bloatware_Removal.bat
- goto Bloatware_Removal_Menu
- :General_Bloatware_Removal_S
- if exist C:\Tech_Squad\General_Bloatware_Removal.bat del C:\Tech_Squad\General_Bloatware_Removal.bat 1>nul 2>nul
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 1 -m %smb_alt_string%/volume1/General_Bloatware_Removal.bat
- Title Chase's EZPZ Script
- start C:\Tech_Squad\General_Bloatware_Removal.bat
- goto Bloatware_Removal_Menu
- :DELL_Bloatware_Removal
- if "%smb_alt_string%" NEQ "null" goto DELL_Bloatware_Removal_S
- start %smb_string%\volume1\Dell_Bloatware_Removal.bat
- goto Bloatware_Removal_Menu
- :DELL_Bloatware_Removal_S
- if exist C:\Tech_Squad\Dell_Bloatware_Removal.bat del C:\Tech_Squad\Dell_Bloatware_Removal.bat 1>nul 2>nul
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 1 -m %smb_alt_string%/volume1/Dell_Bloatware_Removal.bat
- Title Chase's EZPZ Script
- start C:\Tech_Squad\Dell_Bloatware_Removal.bat
- goto Bloatware_Removal_Menu
- :ALL_Bloatware_Removal
- ::REPLACE FOR FULL FTP -- Just this whole thing is wrong lol
- if "%smb_alt_string%" NEQ "null" (
- echo Using samba alternative FTP rollback, this function is not available
- echo run them individually
- ping 127.0.0.1 >nul
- goto Bloatware_Removal_Menu
- )
- start /WAIT /MIN %smb_string%\volume1\Asus_BWR.bat
- start /WAIT /MIN %smb_string%\volume1\Dell_Bloatware_Removal.bat
- start /WAIT /MIN %smb_string%\volume1\General_Bloatware_Removal.bat
- start /WAIT /MIN %smb_string%\volume1\HP_Bloatware_Removal.bat
- start /WAIT /MIN %smb_string%\volume1\Toshiba_BWR.bat
- goto Bloatware_Removal_Menu
- ::End Bloatware_Removal_Menu Items
- ::Begin Cleanup Items
- :CU_Items_Y
- ::can do something before but im just gunna leave this section here, used to open log but its annoying to have the log open every time you go back to this menu
- :CU_Items_Menu
- cls
- set /a tip=%RANDOM%%%%numtips%+1
- if %tip% GTR %numtips% set tip=1
- set d_tip=tip_%tip%
- call set "display_tip=%%%d_tip%%%"
- echo Tip: %display_tip%
- echo.
- echo -------------------------------------------------------------
- echo.
- echo HM = Hitman
- echo ABC = Avast Browser Cleanup
- echo ADW = AdwCleaner
- echo CC = CCleaner
- echo RU = Revo Uninstaller
- echo MBR = MalwareBytes Anti-Rootkit
- echo HJT = HiJackThis
- echo TDS = TDSSKiller
- echo ATF = ATF Cleaner
- echo AVR = Anti-Virus Removal Menu
- echo TASK = Task Scheduler
- echo LOG = Open Log Creation Script
- echo RES = ReSync with network drive.
- echo N = None, back to main menu
- echo.
- echo.
- set /p cutasks=Make a selection:
- set upper=
- for /f "skip=2 delims=" %%I in ('tree "\%cutasks%"') do if not defined upper set "upper=%%~I"
- set "upper=%upper:~3%"
- set cutasks=%upper%
- if "%cutasks%"=="HM" goto CU_Hitman
- if "%cutasks%"=="ABC" goto CU_ABC
- if "%cutasks%"=="CC" goto CU_CCleaner
- if "%cutasks%"=="RU" goto CU_Revo
- if "%cutasks%"=="MBR" goto CU_MalwareBytesAntiRootKit
- if "%cutasks%"=="HJT" goto CU_HiJackThis
- if "%cutasks%"=="AVR" goto CU_AntiVirusRemoval
- if "%cutasks%"=="ADW" goto CU_AdwCleaner
- if "%cutasks%"=="TDS" goto CU_TDS
- if "%cutasks%"=="TASK" goto CU_Tasks
- if "%cutasks%"=="ATF" goto CU_ATFCleaner
- if "%cutasks%"=="RES" goto CU_Resync
- if "%cutasks%"=="LOG" goto CU_Log
- if "%cutasks%"=="N" (
- cls
- goto Main_Menu
- )
- echo input not recognized, try again
- ping 127.0.0.1 >nul
- goto CU_Items_Menu
- :CU_Log
- if "%smb_alt_string%" NEQ "null" (
- ::echo Using samba alternative FTP rollback, this function is not available
- ::echo Use a pen and paper or something
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 1 -m %ftp_string%/volume1/fl_log.bat
- Title Chase's EZPZ Script
- start C:\Tech_Squad\fl_log.bat
- ping 127.0.0.1 >nul
- goto CU_Items_Menu
- )
- start %smb_string%\volume1\fl_log.bat
- goto CU_Items_Menu
- :CU_Resync
- echo.
- echo Resyncing Cleanup Items...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %CU_Folder_Path%
- pause
- Title Chase's EZPZ Script
- echo Done!
- echo.
- goto CU_Items_Menu
- :CU_ATFCleaner
- if not exist %ATF_Local_Path% (
- echo.
- echo Downloading ATF Cleaner...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %ATF_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- start %ATF_Local_Path%
- echo. %date% - %time%: Started ATF Cleaner (ATF) >> C:\Tech_Squad\logs\fl2.0.log
- goto CU_Items_Menu
- :CU_Tasks
- start taskschd.msc
- echo. %date% - %time%: Started Windows Task Scheduler (TASKS) >> C:\Tech_Squad\logs\fl2.0.log
- goto CU_Items_Menu
- :CU_Hitman
- echo.
- if exist "%PROGRAMFILES(X86)%" goto 64bit_HM
- set /p PAQ32HM=PA? [Y] [N]:
- if "%PAQ32HM%"=="Y" goto HitmanPropa_x86.exe
- if "%PAQ32HM%"=="N" goto HitmanPro35_x86.exe
- if "%PAQ32HM%"=="y" goto HitmanPropa_x86.exe
- if "%PAQ32HM%"=="n" goto HitmanPro35_x86.exe
- echo input not recognized, try again.
- goto CU_Hitman
- :64bit_HM
- set /p PAQ64HM=PA? [Y] [N]:
- if "%PAQ64HM%"=="Y" goto HitmanPropa_x64.exe
- if "%PAQ64HM%"=="N" goto HitmanPro35_x64.exe
- if "%PAQ64HM%"=="y" goto HitmanPropa_x64.exe
- if "%PAQ64HM%"=="n" goto HitmanPro35_x64.exe
- echo input not recognized, try again.
- goto CU_Hitman
- :HitmanPropa_x86.exe
- if not exist %HM_PA_86_Local_Path% (
- echo.
- echo Downloading HitmanPropa_x86.exe
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %HM_PA_86_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- start %HM_PA_86_Local_Path%
- echo. %date% - %time%: Started HitmanPro PA x86 (HM) >> C:\Tech_Squad\logs\fl2.0.log
- goto CU_Items_Menu
- :HitmanPro35_x86.exe
- if not exist %HM_86_Local_Path% (
- echo.
- echo Downloading HitmanPro35_x86.exe
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %HM_86_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- start %HM_86_Local_Path%
- echo. %date% - %time%: Started HitmanPro x86 (HM) >> C:\Tech_Squad\logs\fl2.0.log
- goto CU_Items_Menu
- ::---
- :HitmanPropa_x64.exe
- if not exist %HM_PA_64_Local_Path% (
- echo.
- echo Downloading HitmanPropa_x64.exe
- start /min /wait start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %HM_PA_64_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- start %HM_PA_64_Local_Path%
- echo. %date% - %time%: Started HitmanPro PA x64 (HM) >> C:\Tech_Squad\logs\fl2.0.log
- goto CU_Items_Menu
- :HitmanPro35_x64.exe
- if not exist %HM_64_Local_Path% (
- echo.
- echo Downloading HitmanPro35_x64.exe
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %HM_64_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- start %HM_64_Local_Path%
- echo. %date% - %time%: Started Hitman Pro x64 (HM) >> C:\Tech_Squad\logs\fl2.0.log
- goto CU_Items_Menu
- :CU_ABC
- if not exist %ABC_Local_Path% (
- echo.
- echo Downloading Avast Browser Cleanup...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %ABC_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- start %ABC_Local_Path%
- echo. %date% - %time%: Started Avast Browser Cleanup (ABC) >> C:\Tech_Squad\logs\fl2.0.log
- goto CU_Items_Menu
- :CU_CCleaner
- if not exist %CC_32_Local_Path% (
- echo.
- echo Downloading CCleaner...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %CC_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- if exist "%PROGRAMFILES(X86)%" goto 64bit_CC
- start %CC_32_Local_Path%
- echo. %date% - %time%: Started CCleaner x86 (CC) >> C:\Tech_Squad\logs\fl2.0.log
- goto CU_Items_Menu
- :64bit_CC
- start %CC_64_Local_Path%
- echo. %date% - %time%: Started CCleaner x64 (CC) >> C:\Tech_Squad\logs\fl2.0.log
- goto CU_Items_Menu
- :CU_Revo
- if not exist %RU_Local_Path% (
- echo.
- echo Downloading Revo Uninstaller...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %RU_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- start %RU_Local_Path%
- echo. %date% - %time%: Started Revo Uninstaller (CP) >> C:\Tech_Squad\logs\fl2.0.log
- goto CU_Items_Menu
- :CU_MalwareBytesAntiRootKit
- if not exist %MBAR_Local_Path% (
- echo.
- echo Downloading MalwareBytes Anti Rootkit...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %MBAR_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- start %MBAR_Local_Path%
- echo. %date% - %time%: Started MalwareBytes Anti-Rootkit (MBAR) >> C:\Tech_Squad\logs\fl2.0.log
- goto CU_Items_Menu
- :CU_HiJackThis
- if not exist %HJT_Local_Path% (
- echo.
- echo Downloading HiJackThis...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %HJT_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- start %HJT_Local_Path%
- echo. %date% - %time%: Started HiJackThis (HJT) >> C:\Tech_Squad\logs\fl2.0.log
- goto CU_Items_Menu
- :CU_AntiVirusRemoval
- if not exist %AVR_Local_Path% (
- echo.
- echo Resyncing Anti Virus Removal Tools...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %AVR_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- cls
- set /a tip=%RANDOM%%%%numtips%+1
- if %tip% GTR %numtips% set tip=1
- set d_tip=tip_%tip%
- call set "display_tip=%%%d_tip%%%"
- echo Tip: %display_tip%
- echo.
- echo -------------------------------------------------------------
- echo.
- echo AVG = AVG Removal
- echo MC = Mcafee Removal
- echo NRT = Norton Removal Tool
- echo CW = Cleanwipe Norton Removal Tool
- echo N = None, return to Cleanup Menu
- echo.
- set /p AVR_Sel=Make a selection:
- set upper=
- for /f "skip=2 delims=" %%I in ('tree "\%AVR_Sel%"') do if not defined upper set "upper=%%~I"
- set "upper=%upper:~3%"
- set AVR_Sel=%upper%
- if "%AVR_Sel%"=="AVG" goto CU_AVR_AVG
- if "%AVR_Sel%"=="MC" goto CU_AVR_Mcafee
- if "%AVR_Sel%"=="NRT" goto CU_AVR_Norton
- if "%AVR_Sel%"=="CW" goto CU_AVR_Norton_Cleanwipe
- if "%AVR_Sel%"=="N" goto CU_Items_Menu
- echo input not recognized, try again
- goto CU_AntiVirusRemoval
- :CU_AVR_AVG
- if exist "%PROGRAMFILES(X86)%" goto 64bit_AVG_Removal
- start %AVR_Local_Path%\AVG\avg_remover_stf_x86_2014_4116.exe
- echo. %date% - %time%: Started AVG removal tool x86 >> C:\Tech_Squad\logs\fl2.0.log
- goto CU_AntiVirusRemoval
- :64bit_AVG_Removal
- start %AVR_Local_Path%\AVG\avg_remover_stf_x64_2014_4116.exe
- echo. %date% - %time%: Started AVG removal tool x64 >> C:\Tech_Squad\logs\fl2.0.log
- goto CU_AntiVirusRemoval
- :CU_AVR_Mcafee
- start %AVR_Local_Path%\Mcafee_Product_Removal_MCPR.exe
- echo. %date% - %time%: Started Mcafee Removal Tool >> C:\Tech_Squad\logs\fl2.0.log
- goto CU_AntiVirusRemoval
- :CU_AVR_Norton
- ::start %AVR_Local_Path%\Norton_Removal_Tool.exe
- if not exist %AVR_Local_Path%\NRnR.exe (
- echo.
- echo Resyncing Anti Virus Removal Tools...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %AVR_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- start %AVR_Local_Path%\NRnR.exe
- echo. %date% - %time%: Started Avast Software Removal Tool >> C:\Tech_Squad\logs\fl2.0.log
- goto CU_AntiVirusRemoval
- :CU_AVR_Norton_Cleanwipe
- start %AVR_Local_Path%\CleanWipe\CleanWipe.exe
- echo. %date% - %time%: Started Cleanwipe Norton Removal Tool >> C:\Tech_Squad\logs\fl2.0.log
- goto CU_AntiVirusRemoval
- :CU_AdwCleaner
- if not exist %ADW_Local_Path% (
- echo.
- echo Downloading AdwCleaner...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %ADW_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- start %ADW_Local_Path%
- echo. %date% - %time%: Started ADWCleaner (ADW) >> C:\Tech_Squad\logs\fl2.0.log
- goto CU_Items_Menu
- :CU_TDS
- if not exist %TDS_Local_Path% (
- echo.
- echo Downloading TDS Anti Rootkit...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %TDS_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- start %TDS_Local_Path%
- echo. %date% - %time%: Started TDS anti-rootkit (TDS) >> C:\Tech_Squad\logs\fl2.0.log
- goto CU_Items_Menu
- ::End Cleanup Items
- ::Begin Fresh Load
- :Fresh_Load_Menu
- cls
- set /a tip=%RANDOM%%%%numtips%+1
- if %tip% GTR %numtips% set tip=1
- set d_tip=tip_%tip%
- call set "display_tip=%%%d_tip%%%"
- echo Tip: %display_tip%
- echo.
- echo -------------------------------------------------------------
- echo.
- echo 764 = 64 bit Windows 7 Updates
- echo 732 = 32 bit Windows 7 Updates
- echo A = Adobe Reader
- echo CL = Classic Shell
- echo CH = Chrome
- echo FF = FireFox
- echo OO = Open Office
- echo OS = Office Starter
- echo ITU = Itunes
- echo WLE = Windows Live Essentials (WLM)
- echo LIB = Libre Office Install
- echo DEF = Default App Associations for windows 10 (not really working the idea is there)
- echo W7G = Windows 7 games for 8 or 10 install
- echo RES = Resync all fresh load items to local computer
- echo N = None, back to main menu
- echo.
- echo.
- set /p wild=Make a selection:
- set upper=
- for /f "skip=2 delims=" %%I in ('tree "\%wild%"') do if not defined upper set "upper=%%~I"
- set "upper=%upper:~3%"
- set wild=%upper%
- if "%wild%"=="A" goto C_Adobe
- if "%wild%"=="764" goto C_764
- if "%wild%"=="732" goto C_732
- if "%wild%"=="CL" goto C_Classic
- if "%wild%"=="CH" goto C_Chrome
- if "%wild%"=="OO" goto C_OpenOffice
- if "%wild%"=="OS" goto C_OfficeStarter
- if "%wild%"=="WLE" goto C_Windows_Live_Essentials
- if "%wild%"=="ITU" goto C_Itunes
- if "%wild%"=="LIB" goto Libre_Office_Install
- if "%wild%"=="DEF" goto Default_Apps
- if "%wild%"=="W7G" goto Windows_7_Games
- if "%wild%"=="FF" goto FF_Install
- if "%wild%"=="N" (
- cls
- goto Main_Menu
- )
- if "%wild%"=="RES" goto Fresh_Load_Resync
- echo Input not recognized, try again.
- ping 127.0.0.1 >nul
- goto Fresh_Load_Menu
- :FF_Install
- if not exist %FF_Local_Path% (
- echo.
- echo Downloading FireFox...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 4 -m %FF_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- start %FF_Local_Path%
- echo. %date% - %time%: Started FireFox Installation >> C:\Tech_Squad\logs\fl2.0.log
- goto Fresh_Load_Menu
- :Windows_7_Games
- if not exist %W7G_Local_Path% (
- echo.
- echo Downloading Windows 7 Games...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %W7G_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- start %W7G_Local_Path%
- echo. %date% - %time%: Started Windows 7 games for 8/10 installation >> C:\Tech_Squad\logs\fl2.0.log
- goto Fresh_Load_Menu
- :Default_Apps
- wget -np -nH --cut-dirs 1 -m ftp://setacl:setacl@nemoportal.com/w10photoviewer.reg -P ./
- Title Chase's EZPZ Script
- REGEDIT.EXE /S "%~dp0\w10photoviewer.reg"
- wget -np -nH --cut-dirs 1 -m ftp://setacl:setacl@nemoportal.com/MyDefaultAppAssociations.xml -P ./
- Title Chase's EZPZ Script
- dism /online /Import-DefaultAppAssociations:"C:\Tech_squad\MyDefaultAppAssociations.xml"
- echo done!
- pause
- goto Main_Menu
- :Libre_Office_Install
- if not exist %Libre_Local_Path% (
- echo.
- echo Downloading Libre Office...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 2 -m %Libre_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- start %Libre_Local_Path%
- echo. %date% - %time%: Started Libre Office installation >> C:\Tech_Squad\logs\fl2.0.log
- goto Fresh_Load_Menu
- :C_Itunes
- if %OS%==32BIT goto C_Itunes32
- if %OS%==64BIT goto C_Itunes64
- :C_Itunes32
- if not exist %ITU_32_Local_Path% (
- echo.
- echo Downloading Itunes...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 4 -m %ITU_32_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- start %ITU_32_Local_Path%
- echo. %date% - %time%: Started iTunes 32bit installation >> C:\Tech_Squad\logs\fl2.0.log
- goto Fresh_Load_Menu
- :C_Itunes64
- if not exist %ITU_64_Local_Path% (
- echo.
- echo Downloading Itunes...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 4 -m %ITU_64_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- start %ITU_64_Local_Path%
- echo. %date% - %time%: Started iTunes 64 bit installation >> C:\Tech_Squad\logs\fl2.0.log
- goto Fresh_Load_Menu
- :C_Windows_Live_Essentials
- if not exist %WLE_Local_Path% (
- echo.
- echo Downloading Windows Live Essentials...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 4 -m %WLE_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- start %WLE_Local_Path%
- echo. %date% - %time%: Started Windows Live Essentials installation >> C:\Tech_Squad\logs\fl2.0.log
- goto Fresh_Load_Menu
- :Fresh_Load_Resync
- echo.
- echo Downloading Avast Folder...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %Avast_Folder_Path%
- Title Chase's EZPZ Script
- echo Done!
- echo.
- echo.
- echo Downloading Fresh Load Folder...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %Fresh_Load_Folder_Path%
- Title Chase's EZPZ Script
- echo Done!
- echo.
- goto Fresh_Load_Menu
- :C_Adobe
- if not exist %Adobe_Local_Path% (
- echo.
- echo Downloading Adobe Reader...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %Adobe_Reader_Path%
- echo done!
- echo.
- )
- start %Adobe_Local_Path%
- echo. %date% - %time%: Started Adobe Reader DC installation >> C:\Tech_Squad\logs\fl2.0.log
- echo Done!
- ::echo waiting for Adobe Reader installation to finish
- :::C20
- ping 127.0.0.1 >nul
- ::PSLIST %Adobe_PSLIST_Name% >nul 2>&1
- ::IF ERRORLEVEL 1 (
- :: GOTO Fresh_Load_Menu
- ::) ELSE (
- :: ::Still running
- :: ping 127.0.0.1 >nul
- :: GOTO C20
- ::)
- GOTO Fresh_Load_Menu
- :C_764
- ::The file names for these updates should not ever change so im not creating path variables for them
- if not exist C:\Tech_Squad\-Fresh_Load-\W7_64_Updates\1st-Windows6.1-KB3020369-x64.msu (
- echo.
- echo Downloading ALL windows 7 64 bit updates
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %w764_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- start C:\Tech_Squad\-Fresh_Load-\W7_64_Updates\1st-Windows6.1-KB3020369-x64.msu
- echo. %date% - %time%: Started Windows 7 64bit Update 1 of 9 >> C:\Tech_Squad\logs\fl2.0.log
- echo Running Windows 7 64 bit Update 1/9
- :C28
- ping 127.0.0.1 >nul
- PSLIST wusa >nul 2>&1
- IF ERRORLEVEL 1 (
- GOTO C25
- ) ELSE (
- ::Still running
- ping 127.0.0.1 >nul
- GOTO C28
- )
- :C25
- start C:\Tech_Squad\-Fresh_Load-\W7_64_Updates\2nd-windows6.1-kb3125574-v4-x64.msu
- echo. %date% - %time%: Started Windows 7 64bit Update 2 of 9 >> C:\Tech_Squad\logs\fl2.0.log
- echo Running Windows 7 64 bit Update 2/9
- :C26
- ping 127.0.0.1 >nul
- PSLIST wusa >nul 2>&1
- IF ERRORLEVEL 1 (
- GOTO C29
- ) ELSE (
- ::Still running
- ping 127.0.0.1 >nul
- GOTO C26
- )
- :C29
- start C:\Tech_Squad\-Fresh_Load-\W7_64_Updates\3rd-Windows6.1-KB3138612-x64.msu
- echo. %date% - %time%: Started Windows 7 64bit Update 3 of 9 >> C:\Tech_Squad\logs\fl2.0.log
- echo Running Windows 7 64 bit Update 3/9
- :C30
- ping 127.0.0.1 >nul
- PSLIST wusa >nul 2>&1
- IF ERRORLEVEL 1 (
- GOTO C31
- ) ELSE (
- ::Still running
- ping 127.0.0.1 >nul
- GOTO C30
- )
- :C31
- start C:\Tech_Squad\-Fresh_Load-\W7_64_Updates\4th-windows6.1-kb3145739-x64.msu
- echo. %date% - %time%: Started Windows 7 64bit Update 4 of 9 >> C:\Tech_Squad\logs\fl2.0.log
- echo Running Windows 7 64 bit Update 4/9
- :C33
- ping 127.0.0.1 >nul
- PSLIST wusa >nul 2>&1
- IF ERRORLEVEL 1 (
- GOTO C32
- ) ELSE (
- ::Still running
- ping 127.0.0.1 >nul
- GOTO C33
- )
- :C32
- start C:\Tech_Squad\-Fresh_Load-\W7_64_Updates\5th-Windows6.1-KB3172605-x64.msu
- echo. %date% - %time%: Started Windows 7 64bit Update 5 of 9 >> C:\Tech_Squad\logs\fl2.0.log
- echo Running Windows 7 64 bit Update 5/9
- :C34
- ping 127.0.0.1 >nul
- PSLIST wusa >nul 2>&1
- IF ERRORLEVEL 1 (
- GOTO C35
- ) ELSE (
- ::Still running
- ping 127.0.0.1 >nul
- GOTO C34
- )
- :C35
- start C:\Tech_Squad\-Fresh_Load-\W7_64_Updates\6th-windows6.1-kb3179573-x64.msu
- echo. %date% - %time%: Started Windows 7 64bit Update 6 of 9 >> C:\Tech_Squad\logs\fl2.0.log
- echo Running Windows 7 64 bit Update 6/9
- :C37
- ping 127.0.0.1 >nul
- PSLIST wusa >nul 2>&1
- IF ERRORLEVEL 1 (
- GOTO C36
- ) ELSE (
- ::Still running
- ping 127.0.0.1 >nul
- GOTO C37
- )
- :C36
- start C:\Tech_Squad\-Fresh_Load-\W7_64_Updates\7th-windows6.1-kb3185278-x64.msu
- echo. %date% - %time%: Started Windows 7 64bit Update 7 of 9 >> C:\Tech_Squad\logs\fl2.0.log
- echo Running Windows 7 64 bit Update 7/9
- :C39
- ping 127.0.0.1 >nul
- PSLIST wusa >nul 2>&1
- IF ERRORLEVEL 1 (
- GOTO C38
- ) ELSE (
- ::Still running
- ping 127.0.0.1 >nul
- GOTO C39
- )
- :C38
- start C:\Tech_Squad\-Fresh_Load-\W7_64_Updates\8th-windows6.1-kb3185330-x64.msu
- echo. %date% - %time%: Started Windows 7 64bit Update 8 of 9 >> C:\Tech_Squad\logs\fl2.0.log
- echo Running Windows 7 64 bit Update 8/9
- :C40
- ping 127.0.0.1 >nul
- PSLIST wusa >nul 2>&1
- IF ERRORLEVEL 1 (
- GOTO C41
- ) ELSE (
- ::Still running
- ping 127.0.0.1 >nul
- GOTO C40
- )
- :C41
- start C:\Tech_Squad\-Fresh_Load-\W7_64_Updates\9th-windows6.1-kb3197868-x64.msu
- echo. %date% - %time%: Started Windows 7 64bit Update 9 of 9 >> C:\Tech_Squad\logs\fl2.0.log
- echo Running Windows 7 64 bit Update 9/9
- :C42
- ping 127.0.0.1 >nul
- PSLIST wusa >nul 2>&1
- IF ERRORLEVEL 1 (
- GOTO C43
- ) ELSE (
- ::Still running
- ping 127.0.0.1 >nul
- GOTO C42
- )
- :C43
- echo done!
- ping 127.0.0.1 >nul
- GOTO Fresh_Load_Menu
- :C_732
- echo not functioning yet
- GOTO Fresh_Load_Menu
- :C_Classic
- if not exist %Classic_Shell_Local_Path% (
- echo.
- echo Downloading Classic Shell Setup...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %Classic_Shell_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- start %Classic_Shell_Local_Path%
- echo. %date% - %time%: Started Classic Shell Installation >> C:\Tech_Squad\logs\fl2.0.log
- ::echo waiting for Classic Shell installation to finish
- :C21
- ping 127.0.0.1 >nul
- ::PSLIST %Classic_Shell_PSLIST_Name% >nul 2>&1
- ::IF ERRORLEVEL 1 (
- :: GOTO Fresh_Load_Menu
- ::) ELSE (
- :: ::Still running
- :: ping 127.0.0.1 >nul
- :: GOTO C21
- ::)
- GOTO Fresh_Load_Menu
- :C_Chrome
- if not exist %Chrome_Local_Path% (
- echo.
- echo Downloading Chrome Standalone Setup...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %Chrome_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- start %Chrome_Local_Path%
- echo. %date% - %time%: Started Google Chrome Installation >> C:\Tech_Squad\logs\fl2.0.log
- ::echo waiting for Google Chrome installation to finish
- ::C24
- ::ping 127.0.0.1 >nul
- ::PSLIST %Chrome_PSLIST_Name% >nul 2>&1
- ::IF ERRORLEVEL 1 (
- :: GOTO Fresh_Load_Menu
- ::) ELSE (
- ::Still running
- :: ping 127.0.0.1 >nul
- :: GOTO C24
- ::)
- GOTO Fresh_Load_Menu
- :C_OpenOffice
- if not exist %Open_Office_Local_Path% (
- echo.
- echo Downloading Open Office...
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %Open_Office_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- start %Open_Office_Local_Path%
- echo. %date% - %time%: Started Open Office Installation >> C:\Tech_Squad\logs\fl2.0.log
- ::Commented out PSLIST function.. it's annoying.. maybe one day ill find a real use for it.
- ::echo waiting for Open Office installation to finish
- :C22
- ::ping 127.0.0.1 >nul
- ::PSLIST %Open_Office_PSLIST_Name% >nul 2>&1
- ::IF ERRORLEVEL 1 (
- :: GOTO Fresh_Load_Menu
- ::) ELSE (
- ::Still running
- :: ping 127.0.0.1 >nul
- :: GOTO C22
- ::)
- echo done
- GOTO Fresh_Load_Menu
- :C_OfficeStarter
- if not exist %Office_Starter_Local_Path% (
- echo.
- echo Downloading Office Starter 2010
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 3 -m %Office_Starter_Path%
- Title Chase's EZPZ Script
- echo done!
- echo.
- )
- start %Office_Starter_Local_Path%
- echo. %date% - %time%: Started Office Starter Installation >> C:\Tech_Squad\logs\fl2.0.log
- echo waiting for Office 2010 Starter installation to finish
- :C23
- ping 127.0.0.1 >nul
- PSLIST %Office_Starter_PSLIST_Name% >nul 2>&1
- IF ERRORLEVEL 1 (
- GOTO Fresh_Load_Menu
- ) ELSE (
- ::Still running
- ping 127.0.0.1 >nul
- GOTO C23
- )
- GOTO Fresh_Load_Menu
- ::END FRESH LOAD
- :exitfunction
- echo End.
- if "%net_fail%" NEQ "1" (
- start /min /wait wget --passive-ftp -np -nH --cut-dirs 1 -m %ftp_string%/volume1/cleanup.bat
- Title Chase's EZPZ Script
- start C:\Tech_Squad\cleanup.bat
- )
- exit
- ::nothing here for now, but made a space for it incase I ever want to do something on close
- :load_tips
- set tip=0
- set numtips=6
- ::increase the numtips for the number of tips... duh?
- set tip_3=Use this to make a Scan shortcut on the desktop C:\Windows\System32\cmd.exe /c wiaacmgr
- set tip_1=If an office install just says 'Encountered an error', delete the 'Task Scheduler Library/Microsoft/Office' folder
- set tip_2=If the Microsoft Toolkit fails to install TAP adapter, go to settings and change the local host bypass to Windivert
- set tip_4=Vsftpd user config files are located in /etc/vsftpd/vsftpd_user_conf/ and these limit a users permissions
- set tip_5=If windows failed to connect to the SENS service. Use winsock netsh reset in cmd as admin.
- set tip_6=Nothing is perfect.
- echo.
- echo --- Misc. ---
- echo Tips loaded.
- goto wget_paths
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement