# I.T. With You - Gorelo support agent installer $principal = New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent()) if (-not $principal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) { Start-Process powershell.exe -Verb RunAs -ArgumentList '-NoProfile -ExecutionPolicy Bypass -Command "irm https://rmm.itwithyou.au | iex"' } else { try { [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12 Write-Host 'Installing the I.T. With You support agent, please wait...' -ForegroundColor Cyan $s = Join-Path $env:TEMP 'install-gorelo.ps1' Invoke-WebRequest -Uri 'https://gw.aue.gorelo.tech/rmm-login/api/s/win-install.ps1' -OutFile $s -UseBasicParsing & powershell.exe -NoProfile -ExecutionPolicy Bypass -File $s -LicenseKey '3iiXFVNsWgAofurhX3CilbL1YxQ5bWUsOwmK/187yThkDypQxwTlqA==' Remove-Item $s -Force -ErrorAction SilentlyContinue Write-Host 'All done. The support agent is installed.' -ForegroundColor Green } catch { Write-Host "Install failed: $($_.Exception.Message)" -ForegroundColor Red Write-Host 'Please send a screenshot of this window to I.T. With You.' } Read-Host 'Press Enter to close' }