RawlsGroupHelpDesk.com
  • HELP DESK
    • Create a New Ticket
    • Schedule a Tech Session >
      • Book Danny
    • Video Conference
    • Acceptable Usage Policy
  • DOWNLOADS
    • Market Center Printers
    • Security >
      • MalwareBytes Anti-Rootkit
      • Hornet Security
      • Tactical RMM
    • Software & Files >
      • Broker Metrics
      • Market Center Logos
      • MS Office 365
      • Crashplan >
        • Windows
        • macOS
        • Linux
    • SPLASHTOP
    • Tools >
      • Egnyte Desktop App
      • Win 11 PC Check
      • S3 Browser
      • iBackup
  • RESOURCES
    • Technician's Portal
    • Agent Search
    • KW Help Desk >
      • Generalized Info
      • MCA Info
      • Leadership Info
    • Market Centers >
      • KWFA - Sandy Springs
      • KWAN - East Cobb
      • KWAP - Dunwoody
      • KWPR - Peachtree Rd
      • KWSV - Cityside
    • Lobby Loops >
      • KWFA Sandy Springs
      • KWAN East Cobb
      • KWAP Dunwoody
      • KWPR Peachtree Rd
      • KWSV Cityside
      • KWSV Douglasville
    • System Status >
      • RGHD Systems
      • KW Systems
      • Data Breach Check
    • Local Services
  • TRAINING
    • GCA Learning Portal
    • Cybersecurity Awareness

​# author: https://github.com/bradhawkins85
$innosetup = 'tacticalagent-v2.7.0-windows-amd64.exe'
$api = '"https://api.rawlsgrouphelpdesk.com"'
$clientid = '2'
$siteid = '2'
$agenttype = '"server"'
$power = 0
$rdp = 0
$ping = 0
$auth = '"d59cfc82e34e08255e20d9af24196d62674312b1bc7847e1ba1f76648238af03"'
$downloadlink = 'https://github.com/amidaware/rmmagent/releases/download/v2.7.0/tacticalagent-v2.7.0-windows-amd64.exe'
$apilink = $downloadlink.split('/')

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

$serviceName = 'tacticalrmm'
If (Get-Service $serviceName -ErrorAction SilentlyContinue) {
    write-host ('Tactical RMM Is Already Installed')
} Else {
    $OutPath = $env:TMP
    $output = $innosetup

    $installArgs = @('-m install --api ', "$api", '--client-id', $clientid, '--site-id', $siteid, '--agent-type', "$agenttype", '--auth', "$auth")

    if ($power) {
        $installArgs += "--power"
    }

    if ($rdp) {
        $installArgs += "--rdp"
    }

    if ($ping) {
        $installArgs += "--ping"
    }

    Try
    {
        $DefenderStatus = Get-MpComputerStatus | select  AntivirusEnabled
        if ($DefenderStatus -match "True") {
            Add-MpPreference -ExclusionPath 'C:\Program Files\TacticalAgent\*'
            Add-MpPreference -ExclusionPath 'C:\Program Files\Mesh Agent\*'
            Add-MpPreference -ExclusionPath 'C:\ProgramData\TacticalRMM\*'
        }
    }
    Catch {
        # pass
    }
    
    $X = 0
    do {
      Write-Output "Waiting for network"
      Start-Sleep -s 5
      $X += 1      
    } until(($connectresult = Test-NetConnection $apilink[2] -Port 443 | ? { $_.TcpTestSucceeded }) -or $X -eq 3)
    
    if ($connectresult.TcpTestSucceeded -eq $true){
        Try
        {  
            Invoke-WebRequest -Uri $downloadlink -OutFile $OutPath\$output
            Start-Process -FilePath $OutPath\$output -ArgumentList ('/VERYSILENT /SUPPRESSMSGBOXES') -Wait
            write-host ('Extracting...')
            Start-Sleep -s 5
            Start-Process -FilePath "C:\Program Files\TacticalAgent\tacticalrmm.exe" -ArgumentList $installArgs -Wait
            exit 0
        }
        Catch
        {
            $ErrorMessage = $_.Exception.Message
            $FailedItem = $_.Exception.ItemName
            Write-Error -Message "$ErrorMessage $FailedItem"
            exit 1
        }
        Finally
        {
            Remove-Item -Path $OutPath\$output
        }
    } else {
        Write-Output "Unable to connect to server"
    }
}

Picture
Picture
Picture
Picture
Picture
Picture
Picture
Picture
​FIRST ATLANTA |  ATLANTA NORTH  |  ATLANTA PERIMETER  |  PEACHTREE ROAD  | CITYSIDE  | DOUGLASVILLE
​Director of Technology:   Scott Hardy - 678-362-0316 - [email protected] - Core Coverage: Mon - Fri 9am - 5pm
Icon by contact us icons on freeicons.io
  • HELP DESK
    • Create a New Ticket
    • Schedule a Tech Session >
      • Book Danny
    • Video Conference
    • Acceptable Usage Policy
  • DOWNLOADS
    • Market Center Printers
    • Security >
      • MalwareBytes Anti-Rootkit
      • Hornet Security
      • Tactical RMM
    • Software & Files >
      • Broker Metrics
      • Market Center Logos
      • MS Office 365
      • Crashplan >
        • Windows
        • macOS
        • Linux
    • SPLASHTOP
    • Tools >
      • Egnyte Desktop App
      • Win 11 PC Check
      • S3 Browser
      • iBackup
  • RESOURCES
    • Technician's Portal
    • Agent Search
    • KW Help Desk >
      • Generalized Info
      • MCA Info
      • Leadership Info
    • Market Centers >
      • KWFA - Sandy Springs
      • KWAN - East Cobb
      • KWAP - Dunwoody
      • KWPR - Peachtree Rd
      • KWSV - Cityside
    • Lobby Loops >
      • KWFA Sandy Springs
      • KWAN East Cobb
      • KWAP Dunwoody
      • KWPR Peachtree Rd
      • KWSV Cityside
      • KWSV Douglasville
    • System Status >
      • RGHD Systems
      • KW Systems
      • Data Breach Check
    • Local Services
  • TRAINING
    • GCA Learning Portal
    • Cybersecurity Awareness