Installer untuk laptop/PC Windows. Path install: %ProgramData%\GeoNetAgent
Restricted — perintah
& "...\GeoNetAgent-Install.ps1" akan gagal. Selalu pakai baris 2a dengan
-ExecutionPolicy Bypass (sudah disertakan di bawah).
Jalankan satu per satu — baris 1 dulu, tunggu selesai, lalu baris 2.
Baris 1 Unduh installer:
Invoke-WebRequest -Uri 'https://agent.gisportal.id/install/GeoNetAgent-Install.ps1' -OutFile "$env:TEMP\GeoNetAgent-Install.ps1" -UseBasicParsing
Baris 2a Install + kirim laporan pertama:
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "$env:TEMP\GeoNetAgent-Install.ps1"
Baris 2a Alternatif (jika ExecutionPolicy sudah RemoteSigned / Bypass):
& "$env:TEMP\GeoNetAgent-Install.ps1"
Baris 2b Atau hanya pasang/update file + task (tanpa laporan sekarang):
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "$env:TEMP\GeoNetAgent-Install.ps1" -SkipInitialRun
Perintah yang sama dipakai untuk update agent. config.json lokal dipertahankan.
Scheduled Task OK: GeoNetAgent-Report, GeoNetAgent-Report-Startup, GeoNetAgent-Report-Shutdown
OK: {"status":"accepted",...}
schtasks /Query /TN GeoNetAgent-Report schtasks /Query /TN GeoNetAgent-Report-Startup Get-Content "$env:ProgramData\GeoNetAgent\VERSION" powershell.exe -NoProfile -ExecutionPolicy Bypass -File "$env:ProgramData\GeoNetAgent\UserAgent.ps1"
Baris VERSION harus sama dengan badge versi di atas. Baris terakhir mengirim laporan manual ke collector (opsional).
%ProgramData%\GeoNetAgentGeoNetAgent-Report-Startup — jalan saat boot (SYSTEM)GeoNetAgent-Report — tiap 3 jam (SYSTEM); cek update otomatis sebelum kirim laporanGeoNetAgent-Report-Shutdown — jalan saat shutdown/restart Windows (Event 1074)powershell -Command "..." dari dalam jendela PowerShell yang sama —
variabel seperti $env:TEMP bisa ter-expand salah. Copy perintah di atas langsung ke prompt Admin.
-ExecutionPolicy Bypass, jangan & ...ps1 langsung.VERSION lokal = versi di halaman ini, lalu kirim ulang dengan UserAgent.ps1 (perintah di atas).%TEMP%cd $env:TEMPpowershell.exe -NoProfile -ExecutionPolicy Bypass -File .\GeoNetAgent-Install.ps1 -SkipInitialRun