Jump to content

nicecube

Members
  • Posts

    37
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by nicecube

    Amazing ty @DarrenWhite99 for this script help me to deploy a lots of automate agent !
  1. Ty @DarrenWhite99 for this amazing script, i edited the bachfile to deal with multiple location, i ll try to automate the bath file with automate! ::--------------------------------------------------------------------------------- :: Script : Install ConnectWise Automate Agent :: Version : 0.1 :: Written by : Chuck Fowler ::--------------------------------------------------------------------------------- :: Token will Expire on 8/19/2021 2:41:40 AM UTC @ECHO OFF ipconfig | find /i "10.101.1." > NUL IF %ERRORLEVEL% == 0 GOTO DataCenter ipconfig | find /i "192.168.1." > NUL IF %ERRORLEVEL% == 0 GOTO ST-Jerome ipconfig | find /i "192.168.2." > NUL IF %ERRORLEVEL% == 0 GOTO Terrebonne ipconfig | find /i "192.168.5." > NUL IF %ERRORLEVEL% == 0 GOTO ST-Hippolyte ipconfig | find /i "192.168.7." > NUL IF %ERRORLEVEL% == 0 GOTO Bois-Leger-Concept ipconfig | find /i "192.168.8." > NUL IF %ERRORLEVEL% == 0 GOTO RollandGodard ECHO Ip adres conflict GOTO END :DataCenter %windir%\system32\WindowsPowerShell\v1.0\powershell.exe -Command "Invoke-Expression(New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/CUSTUM_LOCATION_JUST_TO_BE_SAFE/master/Automate-Module.psm1'); Install-Automate -Server 'SECRET.AUTOMATE.SERVER' -LocationID 470 -Token 'HIDDEN' -Transcript" GOTO END :ST-Jerome %windir%\system32\WindowsPowerShell\v1.0\powershell.exe -Command "Invoke-Expression(New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/CUSTUM_LOCATION_JUST_TO_BE_SAFE/master/Automate-Module.psm1'); Install-Automate -Server 'SECRET.AUTOMATE.SERVER' -LocationID 22 -Token 'HIDDEN' -Transcript" GOTO END :Terrebonne %windir%\system32\WindowsPowerShell\v1.0\powershell.exe -Command "Invoke-Expression(New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/CUSTUM_LOCATION_JUST_TO_BE_SAFE/master/Automate-Module.psm1'); Install-Automate -Server 'SECRET.AUTOMATE.SERVER' -LocationID 112 -Token 'HIDDEN' -Transcript" GOTO END :ST-Hippolyte %windir%\system32\WindowsPowerShell\v1.0\powershell.exe -Command "Invoke-Expression(New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/CUSTUM_LOCATION_JUST_TO_BE_SAFE/master/Automate-Module.psm1'); Install-Automate -Server 'SECRET.AUTOMATE.SERVER' -LocationID 116 -Token 'HIDDEN' -Transcript" GOTO END :Bois-Leger-Concept %windir%\system32\WindowsPowerShell\v1.0\powershell.exe -Command "Invoke-Expression(New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/CUSTUM_LOCATION_JUST_TO_BE_SAFE/master/Automate-Module.psm1'); Install-Automate -Server 'SECRET.AUTOMATE.SERVER' -LocationID 114 -Token 'HIDDEN' -Transcript" GOTO END :RollandGodard %windir%\system32\WindowsPowerShell\v1.0\powershell.exe -Command "Invoke-Expression(New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/CUSTUM_LOCATION_JUST_TO_BE_SAFE/master/Automate-Module.psm1'); Install-Automate -Server 'SECRET.AUTOMATE.SERVER' -LocationID 113 -Token 'HIDDEN' -Transcript" GOTO END :END
×
×
  • Create New...