daily pastebin goal
56%
SHARE
TWEET

Untitled

a guest Jun 14th, 2018 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ECHO ============================================
  2. ECHO system checking if your connected to Domain
  3. ECHO ============================================
  4.  
  5.  
  6. @ECHO OFF
  7. :checkPrivileges
  8. NET FILE 1>NUL 2>NUL
  9. if '%errorlevel%' == '0' ( goto gotPrivileges ) else ( goto getPrivileges )
  10.  
  11. :getPrivileges
  12. if '%1'=='ELEV' (shift & goto gotPrivileges)  
  13.  
  14. setlocal DisableDelayedExpansion
  15. set "batchPath=%~0"
  16. setlocal EnableDelayedExpansion
  17. ECHO Set UAC = CreateObject^("Shell.Application"^) > "%temp%\OEgetPrivileges.vbs"
  18. ECHO UAC.ShellExecute "!batchPath!", "ELEV", "", "runas", 1 >> "%temp%\OEgetPrivileges.vbs"
  19. "%temp%\OEgetPrivileges.vbs"
  20. exit /B
  21.  
  22. :gotPrivileges
  23. ::::::::::::::::::::::::::::
  24. :START
  25. ::::::::::::::::::::::::::::
  26. cls
  27. ECHO =================================
  28. ECHO Installing Core Compments
  29. ECHO =================================
  30. @"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
  31. cls
  32. ECHO OFF
  33. cls
  34. :MENU
  35. CLS
  36. ECHO ============= Main Menu =============
  37. ECHO -------------------------------------
  38. ECHO 1.  Basic Install Script installs
  39. ECHO 2.  DO - Tekla install
  40. ECHO 3.  DO - Other Applications
  41. ECHO 4.  Join Domain!
  42. ECHO 5.  Selection 5
  43. ECHO 6.  Selection 6
  44. ECHO 7.  Selection 7
  45. ECHO -------------------------------------
  46. ECHO 8.  Selection 8
  47. ECHO -------------------------------------
  48. ECHO 9.  Selection 9
  49. ECHO -------------------------------------
  50. ECHO ==========PRESS 'Q' TO QUIT==========
  51. ECHO.
  52.  
  53. SET INPUT=
  54. SET /P INPUT=Please select a number:
  55.  
  56. IF /I '%INPUT%'=='1' GOTO Basic_Build
  57. IF /I '%INPUT%'=='2' GOTO Tekla-Install-Menu
  58. IF /I '%INPUT%'=='3' GOTO Selection3
  59. IF /I '%INPUT%'=='4' GOTO Selection4
  60. IF /I '%INPUT%'=='5' GOTO Selection5
  61. IF /I '%INPUT%'=='6' GOTO Selection6
  62. IF /I '%INPUT%'=='7' GOTO Selection7
  63. IF /I '%INPUT%'=='8' GOTO Selection8
  64. IF /I '%INPUT%'=='9' GOTO Selection9
  65. IF /I '%INPUT%'=='Q' GOTO Quit
  66.  
  67. CLS
  68.  
  69. ECHO ============INVALID INPUT============
  70. ECHO -------------------------------------
  71. ECHO Please select a number from the Main
  72. echo Menu [1-9] or select 'Q' to Quit.
  73. ECHO -------------------------------------
  74. ECHO ======PRESS ANY KEY TO CONTINUE======
  75.  
  76. PAUSE > NUL
  77. GOTO MENU
  78.  
  79. :Basic_Build
  80.     choco install adobereader -y
  81.     choco install foxitreader -y
  82.     choco install pdfill -y
  83.     "\\svr01\share\Utilities\msoffice\Office 365 Deployment Tool\No Skype - Monthly Updates - 32bit.exe" /silent
  84.     "\\svr01\share\Utilities\msoffice\deploy\Lync.2013.SP1.Setup.msi"
  85.     ECHO Please press continue after install has completed
  86.     pause
  87.     "\\svr01\share\Utilities\msoffice\deploy\lyncmso2013-kb3039779-fullfile-x86-glb.exe"
  88.     "\\svr01\share\Utilities\msoffice\deploy\lync2013-kb3115261-fullfile-x86-glb.exe"
  89.     "\\svr01\share\Utilities\Crystal for VS\13-0-15\CRRuntime_32bit_13_0_15.msi"
  90.     copy "\\DATASERVE2\Applications\StartMenu\BHC Menu.lnk" c:\Users\Public\Desktop
  91.    
  92.     GOTO Menu
  93. :Tekla-Install-Menu
  94.     CLS
  95.     ECHO ============= Tekla install Menu =============
  96.     ECHO ----------------------------------------------
  97.     ECHO 1.  2017I-------------------------------------
  98.     ECHO 2.  V2017-------------------------------------
  99.     ECHO 3.  V2016i------------------------------------
  100.     ECHO 4.  V2016-------------------------------------
  101.     ECHO 5.  V21-1-------------------------------------
  102.     ECHO 6.  V21---------------------------------------
  103.     ECHO 7.  V20-1-------------------------------------
  104.     ECHO 8.  V20---------------------------------------
  105.     ECHO 9.  V19.1-------------------------------------
  106.     ECHO 10. V2018-------------------------------------
  107.     ECHO ----------------------------------------------
  108.     ECHO ==============PRESS 'Q' TO GO TO MAIN Menu================
  109.     ECHO.
  110.    
  111.     SET INPUT=
  112.     SET /P INPUT=Please select a number:
  113.    
  114.     IF /I '%INPUT%'=='1' GOTO 2017I
  115.     IF /I '%INPUT%'=='2' GOTO V2017
  116.     IF /I '%INPUT%'=='3' GOTO V2016i
  117.     IF /I '%INPUT%'=='4' GOTO V2016
  118.     IF /I '%INPUT%'=='5' GOTO V21-1
  119.     IF /I '%INPUT%'=='6' GOTO V21
  120.     IF /I '%INPUT%'=='7' GOTO V20-1
  121.     IF /I '%INPUT%'=='8' GOTO V20
  122.     IF /I '%INPUT%'=='9' GOTO V19.1
  123.     IF /I '%INPUT%'=='10' GOTO V2018
  124.     IF /I '%INPUT%'=='T' GOTO Tekla-Install-Menu
  125.     IF /I '%INPUT%'=='Q' GOTO MENU
  126.    
  127.     CLS
  128.  
  129.     ECHO ==================INVALID INPUT==================
  130.     ECHO ------------------------------------------------
  131.     ECHO Please select a number from the Main
  132.     echo Menu [1-9] or select 'Q' to go to the main menu.
  133.     ECHO To Return To Tekla-Install-Menu Select T
  134.     ECHO ------------------------------------------------
  135.     ECHO ============PRESS ANY KEY TO CONTINUE============
  136.    
  137.     PAUSE > NUL
  138.     GOTO Tekla Install Menu
  139.    
  140.     :2017I
  141.     CLS
  142.     ECHO ================================
  143.     Echo Installing in Progress
  144.     echo ================================
  145.     cls
  146.     ECHO ================================
  147.     echo Step 1 Instaling Tekla Software
  148.     ECHO ================================
  149.     "\\svr01\share\TeklaStructures\Updates and installers\Tekla Versions\V2017i\TeklaStructures2017i.exe"
  150.     cls
  151.     ECHO =================================
  152.     ECHO Installing Passed
  153.     ECHO =================================
  154.     cls
  155.     ECHO =================================
  156.     ECHO Step 2 Installing Tekla UK Enviorment
  157.     echo =================================
  158.     "\\svr01\share\TeklaStructures\Updates and installers\Tekla Versions\V2017i\Env_UK_2017i.exe
  159.     cls
  160.     ECHO =================================
  161.     ECHO Installing Passed
  162.     ECHO =================================
  163.     cls
  164.     ECHO =================================
  165.     ECHO Installing Service Pack 1
  166.     ECHO =================================
  167.     "\\svr01\share\TeklaStructures\Updates and installers\Tekla Versions\V2017i\SP1\TeklaStructures2017iServicePack1.exe"
  168.     cls
  169.     ECHO =================================
  170.     ECHO Installing Passed
  171.     ECHO =================================
  172.     cls
  173.     GOTO Tekla-install-THANKYOU
  174.    
  175.     :V2017
  176.     cls
  177.     ECHO =================================
  178.     ECHO Installing Tekla Software
  179.     ECHO =================================
  180.     "\\svr01\share\TeklaStructures\Updates and installers\Tekla Versions\V2017\back up of installers\TeklaStructures2017.exe"
  181.     cls
  182.     ECHO =================================
  183.     ECHO Installing UK Envirements
  184.     ECHO =================================
  185.     "\\svr01\share\TeklaStructures\Updates and installers\Tekla Versions\V2017\back up of installers\Env_UK_2017.exe"
  186.     cls
  187.     ECHO =================================
  188.     ECHO Installing Service pack 6
  189.     ECHO =================================
  190.     "\\svr01\share\TeklaStructures\Updates and installers\Tekla Versions\V2017\back up of installers\SR6\TeklaStructures2017ServicePack6.exe"
  191.     GOTO Tekla-install-THANKYOU
  192.    
  193.     :V2016i
  194.     cls
  195.     ECHO =================================
  196.     ECHO Installing Tekla Software
  197.     ECHO =================================
  198.     "\\svr01\share\TeklaStructures\Updates and installers\Tekla Versions\V2016i\BackUp of Installers\TeklaStructures2016iSoftware.exe"
  199.     cls
  200.     ECHO =================================
  201.     ECHO Installing UK Enviorment
  202.     ECHO =================================
  203.     "\\svr01\share\TeklaStructures\Updates and installers\Tekla Versions\V2016i\BackUp of Installers\Env_UK_2016i.exe"
  204.     cls
  205.     ECHO =================================
  206.     ECHO Installing Service pack 5 Main
  207.     ECHO =================================
  208.     "\\svr01\share\TeklaStructures\Updates and installers\Tekla Versions\V2016i\BackUp of Installers\SR5\TeklaStructures2016iServicePack5Software.exe"
  209.     cls
  210.     ECHO =================================
  211.     ECHO Installing service pack 5 UK
  212.     ECHO =================================
  213.     "\\svr01\share\TeklaStructures\Updates and installers\Tekla Versions\V2016i\BackUp of Installers\SR5\Env_UK_2016i_50_0.exe"
  214.     GOTO Tekla-install-THANKYOU
  215.    
  216.     :V2016
  217.     cls
  218.     ECHO =================================
  219.     ECHO Installing Tekla Software
  220.     ECHO =================================
  221.     "\\svr01\share\TeklaStructures\Updates and installers\Tekla Versions\V2016\Back Up Of Installers\TeklaStructures2016Software.exe"
  222.     cls
  223.     ECHO =================================
  224.     ECHO Installing Tekla Software
  225.     ECHO =================================
  226.     "\\svr01\share\TeklaStructures\Updates and installers\Tekla Versions\V2016\Back Up Of Installers\Env_UK_2016.exe"
  227.     cls
  228.     ECHO =================================
  229.     ECHO Installing Tekla Software
  230.     ECHO =================================
  231.     "\\svr01\share\TeklaStructures\Updates and installers\Tekla Versions\V2016\Back Up Of Installers\SR3\TeklaStructures2016ServicePack3Software.exe"
  232.     cls
  233.     ECHO =================================
  234.     ECHO Installing Tekla Software
  235.     ECHO =================================
  236.     "\\svr01\share\TeklaStructures\Updates and installers\Tekla Versions\V2016\Back Up Of Installers\SR3\Env_UK_2016_30.exe"
  237.     GOTO Tekla-install-THANKYOU
  238.    
  239.     :V21-1
  240.     cls
  241.     ECHO =================================
  242.     ECHO Installing Tekla Software
  243.     ECHO =================================
  244.     "\\svr01\share\TeklaStructures\Updates and installers\Tekla Versions\V21.1\V21.1\TeklaStructures211x64Software.exe"
  245.     cls
  246.     ECHO =================================
  247.     ECHO Installing UK Envirements
  248.     ECHO =================================
  249.     "\\svr01\share\TeklaStructures\Updates and installers\Tekla Versions\V21.1\V21.1\Env_UK_211_1.exe"
  250.     cls
  251.     ECHO =================================
  252.     ECHO Installing Service Pack 5 Main
  253.     ECHO =================================
  254.     "\\svr01\share\TeklaStructures\Updates and installers\Tekla Versions\V21.1\V21.1\SR9\TeklaStructures211SR9x64Software.exe"
  255.     cls
  256.     ECHO =================================
  257.     ECHO Installing Service pack 5 UK
  258.     ECHO =================================
  259.     "\\svr01\share\TeklaStructures\Updates and installers\Tekla Versions\V21.1\V21.1\SR9\Env_UK_211_90_1.exe"
  260.     GOTO Tekla-install-THANKYOU
  261.    
  262.     :V21
  263.     cls
  264.     ECHO =================================
  265.     ECHO Installing Tekla Software
  266.     ECHO =================================
  267.     "\\svr01\share\TeklaStructures\Updates and installers\Tekla Versions\V21\V21\TeklaStructures210x64Software.exe"
  268.     cls
  269.     ECHO =================================
  270.     ECHO Installing UK Envirements
  271.     ECHO =================================
  272.     "\\svr01\share\TeklaStructures\Updates and installers\Tekla Versions\V21\V21\Env_UK_inst_210.exe"
  273.     cls
  274.     ECHO =================================
  275.     ECHO Installing Service pack 10 Main
  276.     ECHO =================================
  277.     "\\svr01\share\TeklaStructures\Updates and installers\Tekla Versions\V21\V21\SR10\TeklaStructures210SR10x64Software_0.exe"
  278.     cls
  279.     ECHO =================================
  280.     ECHO Installing Service Pack 10 UK
  281.     ECHO =================================
  282.     "\\svr01\share\TeklaStructures\Updates and installers\Tekla Versions\V21\V21\SR10\Env_UK_210_100.exe"
  283.     GOTO Tekla-install-THANKYOU
  284.    
  285.     :V20-1
  286.     cls
  287.     ECHO =================================
  288.     ECHO Installing Tekla Software
  289.     ECHO =================================
  290.     "\\svr01\share\TeklaStructures\Updates and installers\Tekla Versions\V20.1\V20.1\TeklaStructures201x64Software.exe"
  291.     cls
  292.     ECHO =================================
  293.     ECHO Installing UK Envirements
  294.     ECHO =================================
  295.     "\\svr01\share\TeklaStructures\Updates and installers\Tekla Versions\V20.1\V20.1\Env_UK_inst_201.exe"
  296.     cls
  297.     ECHO =================================
  298.     ECHO Installing Servive Pack 2 Main
  299.     ECHO =================================
  300.     "\\svr01\share\TeklaStructures\Updates and installers\Tekla Versions\V20.1\V20.1\SR2\TeklaStructures201SR2x64Software.exe"
  301.     cls
  302.     ECHO =================================
  303.     ECHO Installing Service Pack 5 UK
  304.     ECHO =================================
  305.     "\\svr01\share\TeklaStructures\Updates and installers\Tekla Versions\V20.1\V20.1\SR2\Env_UK_inst_201.exe"
  306.     GOTO Tekla-install-THANKYOU
  307.    
  308.     :V20
  309.     "\\svr01\share\TeklaStructures\Updates and installers\Tekla Versions\V20\V20\TeklaStructures200x64Software.exe"
  310.     "\\svr01\share\TeklaStructures\Updates and installers\Tekla Versions\V20\V20\Env_UK_inst_200.exe"
  311.     "\\svr01\share\TeklaStructures\Updates and installers\Tekla Versions\V20\V20\SR8\TeklaStructures210SR8x64Software.exe
  312.     "\\svr01\share\TeklaStructures\Updates and installers\Tekla Versions\V20\V20\SR8\Env_UK_210_80.exe
  313.     GOTO Tekla-install-THANKYOU
  314.    
  315.     :V19.1
  316.     cls
  317.     ECHO =================================
  318.     ECHO Installing Tekla Software
  319.     ECHO =================================
  320.     "\\bhcuk\share\DrawingOffice\TeklaStructures\Updates and installers\V19.1\TeklaStructures191x64Software.exe"
  321.     cls
  322.     ECHO =================================
  323.     ECHO Installing UK enviomrents
  324.     ECHO =================================
  325.     "\\bhcuk\share\DrawingOffice\TeklaStructures\Updates and installers\V19.1\Env_UK_inst_191.exe"
  326.     cls
  327.     ECHO =================================
  328.     ECHO Installing Service pack 4 main
  329.     ECHO =================================
  330.     "\\bhcuk\share\DrawingOffice\TeklaStructures\Updates and installers\V19.1\SR4\TeklaStructures191SR4x64Software.exe"
  331.     cls
  332.     ECHO =================================
  333.     ECHO Installing Service pack 4 UK
  334.     ECHO =================================
  335.     "\\bhcuk\share\DrawingOffice\TeklaStructures\Updates and installers\V19.1\SR4\Env_UK_inst_191.exe"
  336.     GOTO Tekla-install-THANKYOU
  337.    
  338.     :V2018
  339.     cls
  340.     ECHO =================================
  341.     ECHO Installing Main software
  342.     ECHO =================================
  343.     "\\svr01\share\TeklaStructures\Updates and installers\Tekla Versions\V2018\TeklaStructures2018.exe"
  344.     ECHO =================================
  345.     ECHO Installing UK Envioments
  346.     ECHO =================================
  347.     "\\svr01\share\TeklaStructures\Updates and installers\Tekla Versions\V2018\Env_UK_2018.exe"
  348.     pause
  349.     cls
  350.     ECHO    ============= Tekla Optional Installs   =============
  351.     Echo Do you want to install the Mutli User server?
  352.     ECHO 1. press 1 for yes
  353.     ECHO 2. press 2 for no
  354.     SET INPUT=
  355.     SET /P INPUT=Please select a **number**:
  356.     IF /I '%INPUT%'=='1' GOTO Tekla-2018-optional-install
  357.     IF /I '%INPUT%'=='2' GOTO Tekla-Install-Menu
  358.    
  359.     :Tekla-2018-optional-install
  360.     cls
  361.     ECHO =================================
  362.     ECHO Intsalling Tekla MultiUser
  363.     ECHO =================================
  364.     "\\svr01\share\TeklaStructures\Updates and installers\Tekla Versions\V2018\TeklaStructuresMultiuserServer250.exe"
  365.     GOTO Tekla-install-THANKYOU
  366.  
  367.     :Tekla-install-THANKYOU
  368.     CLS
  369. ECHO ==================================================================
  370. ECHO ============================THANKYOU==============================
  371. ECHO ------------------------------------------------------------------
  372. ECHO ======PRESS ANY KEY TO CONTINUE TO RETURN TO TEKLA MAIN MENU======
  373. ECHO ==================================================================
  374. PAUSE>NUL
  375. GOTO Tekla-Install-Menu
  376.  
  377. :Selection3
  378.     @ECHO OFF
  379.     CLS
  380.     :Drawing-Office-Programs
  381.     CLS
  382.    
  383.     ECHO =================================== MENU NAME =======================================
  384.     ECHO -------------------------------------------------------------------------------------
  385.     ECHO 1.  Install DraftSight
  386.     ECHO 2.  Install Bimsight
  387.     ECHO 3.  Install TrueView
  388.     ECHO 4.  Install Building and Design suite Warning This Will Take a long time to install
  389.     ECHO 5.  Selection 5
  390.     ECHO 6.  Selection 6
  391.     ECHO 7.  Selection 7
  392.     ECHO -------------------------------------------------------------------------------------
  393.     ECHO 8.  Selection 8
  394.     ECHO -------------------------------------------------------------------------------------
  395.     ECHO 9.  Selection 9
  396.     ECHO -------------------------------------------------------------------------------------
  397.     ECHO =================================PRESS 'Q' TO QUIT===================================
  398.     ECHO.
  399.    
  400.     SET INPUT=
  401.     SET /P INPUT=Please select a number:
  402.    
  403.     IF /I '%INPUT%'=='1' GOTO DraftSight
  404.     IF /I '%INPUT%'=='2' GOTO Bimsight
  405.     IF /I '%INPUT%'=='3' GOTO TrueView
  406.     IF /I '%INPUT%'=='4' GOTO Building-Design-suite
  407.     IF /I '%INPUT%'=='Q' GOTO Quit
  408.    
  409.     CLS
  410.    
  411.     ECHO ============INVALID INPUT============
  412.     ECHO -------------------------------------
  413.     ECHO Please select a number from the Main0
  414.     echo Menu [1-9] or select 'Q' to quit.
  415.     ECHO -------------------------------------
  416.     ECHO ======PRESS ANY KEY TO CONTINUE======
  417.        
  418.     PAUSE > NUL
  419.     GOTO Drawing-Office-Programs
  420.    
  421.     :DraftSight
  422.     cls
  423.     ECHO =================================
  424.     ECHO DraftSight
  425.     ECHO =================================
  426.     choco install draftsight --version 2018.01
  427.     GOTO MENU
  428.    
  429.     :Bimsight
  430.     cls
  431.     ECHO =================================
  432.     ECHO Installing BimSight
  433.     ECHO ================================= 
  434.     "\\svr01\share\TeklaStructures\Updates and installers\Tekla BimSight\Tekla_BIMsight_1.9.9_x64.exe" /s
  435.     GOTO MENU
  436.    
  437.     :TrueView
  438.     cls
  439.     ECHO =================================
  440.     ECHO Installing TrueView
  441.     ECHO ================================= 
  442.     "\\svr01\share\Utilities\DO Utilities\Autodesk\DWGTrueView_2018_ENU_64bit\setup.exe"
  443.     GOTO MENU
  444.    
  445.     :Building-Design-suite
  446.     ECHO =================================
  447.     ECHO Installing Building Design Suite
  448.     ECHO Warning This will Take a long Time we will automaticaly reboot once completed
  449.     ECHO This install may break or not install Correctly if so manunally install
  450.     ECHO =================================
  451.     "\\svr01\share\Architects\Software\deploy\Deployable.lnk"
  452.     shutdown.exe -r -t 45 -c "Computer will shut down in 45 seconds"
  453.    
  454. :Selection4
  455. "SystemPropertiesComputerName.exe"
  456. GOTO MENU
  457.  
  458. :Selection5
  459.  
  460. and so on
  461.  
  462. :Selection6
  463.  
  464. and so on
  465.  
  466. :Selection7
  467.  
  468. and so on
  469.  
  470. :Selection8
  471.  
  472. and so on
  473.  
  474. :Selection9
  475.  
  476. and so on
  477.  
  478. :Quit
  479. CLS
  480.  
  481. ECHO ==============THANKYOU===============
  482. ECHO -------------------------------------
  483. ECHO ======PRESS ANY KEY TO CONTINUE======
  484.  
  485. PAUSE>NUL
  486. GOTO :MENU
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top