Skip to content

Windows Agent Installation

This guide covers installing the SlimRMM agent on Windows systems.

Supported Versions

  • Windows 10 (64-bit)
  • Windows 11 (64-bit)
  • Windows Server 2016
  • Windows Server 2019
  • Windows Server 2022

Prerequisites

  • Administrator privileges
  • Network access to SlimRMM server (HTTPS/443)
  • .NET Framework 4.7.2 or higher (usually pre-installed)

Quick Installation

powershell
# Run as Administrator

# Download agent
Invoke-WebRequest -Uri "https://your-server.com/api/v1/download/agent/windows-amd64" -OutFile "slimrmm-agent.exe"

# Install with enrollment token
.\slimrmm-agent.exe --install --server https://your-server.com --token YOUR_ENROLLMENT_TOKEN

Command Prompt

cmd
:: Run as Administrator

:: Download using curl (Windows 10+)
curl -L -o slimrmm-agent.exe https://your-server.com/api/v1/download/agent/windows-amd64

:: Install
slimrmm-agent.exe --install --server https://your-server.com --token YOUR_ENROLLMENT_TOKEN

MSI Installer

For enterprise deployment via GPO or SCCM:

powershell
# Download MSI
Invoke-WebRequest -Uri "https://your-server.com/api/v1/download/agent/windows-amd64.msi" -OutFile "slimrmm-agent.msi"

# Silent install
msiexec /i slimrmm-agent.msi /qn SERVER_URL=https://your-server.com ENROLLMENT_TOKEN=YOUR_TOKEN

MSI Properties

PropertyDescription
SERVER_URLSlimRMM server URL
ENROLLMENT_TOKENEnrollment token (optional)
INSTALL_DIRInstallation directory

Service Management

PowerShell

powershell
# Check status
Get-Service SlimRMMAgent

# Start/Stop/Restart
Start-Service SlimRMMAgent
Stop-Service SlimRMMAgent
Restart-Service SlimRMMAgent

# View logs
Get-EventLog -LogName Application -Source SlimRMMAgent -Newest 50

Services Console

  1. Press Win + R
  2. Type services.msc
  3. Find "SlimRMM Agent"
  4. Right-click for options

Command Line

cmd
:: Check status
sc query SlimRMMAgent

:: Start/Stop
net start SlimRMMAgent
net stop SlimRMMAgent

Configuration

Registry Location

HKEY_LOCAL_MACHINE\SOFTWARE\SlimRMM\Agent

KeyTypeDescription
ServerREG_SZServer URL
UUIDREG_SZAgent UUID
MTLSEnabledREG_DWORDmTLS status
LogLevelREG_SZLog level

Certificate Storage

Certificates are stored in: C:\ProgramData\SlimRMM\certs\

Firewall Configuration

The installer automatically creates firewall rules. Manual configuration:

powershell
# Allow outbound HTTPS
New-NetFirewallRule -DisplayName "SlimRMM Agent" -Direction Outbound -Protocol TCP -RemotePort 443 -Action Allow

Proxy Configuration

System Proxy

The agent respects system proxy settings configured in:

  • Internet Options → Connections → LAN settings

Environment Variable

powershell
# Set before installation
$env:HTTPS_PROXY = "http://proxy.example.com:8080"

# Install
.\slimrmm-agent.exe --install ...

Group Policy Deployment

Create GPO

  1. Open Group Policy Management
  2. Create new GPO: "SlimRMM Agent Deployment"
  3. Edit → Computer Configuration → Policies → Software Settings
  4. Right-click → New → Package
  5. Select MSI file from network share

Startup Script

Alternative: Deploy via startup script:

powershell
# deploy-slimrmm.ps1
$AgentPath = "C:\Program Files\SlimRMM\slimrmm-agent.exe"

if (-not (Test-Path $AgentPath)) {
    # Download
    Invoke-WebRequest -Uri "https://your-server.com/api/v1/download/agent/windows-amd64" -OutFile "C:\Temp\slimrmm-agent.exe"

    # Install
    Start-Process -FilePath "C:\Temp\slimrmm-agent.exe" -ArgumentList "--install", "--server", "https://your-server.com", "--token", "YOUR_TOKEN" -Wait

    # Cleanup
    Remove-Item "C:\Temp\slimrmm-agent.exe"
}

Uninstallation

Control Panel

  1. Settings → Apps → Apps & features
  2. Find "SlimRMM Agent"
  3. Click Uninstall

Command Line

powershell
# Find uninstall string
Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Where-Object { $_.DisplayName -like "*SlimRMM*" }

# Or use MSI
msiexec /x {PRODUCT-GUID} /qn

Manual Removal

powershell
# Stop service
Stop-Service SlimRMMAgent

# Remove service
sc delete SlimRMMAgent

# Remove files
Remove-Item -Recurse -Force "C:\Program Files\SlimRMM"
Remove-Item -Recurse -Force "C:\ProgramData\SlimRMM"

# Remove registry
Remove-Item -Path "HKLM:\SOFTWARE\SlimRMM" -Recurse

Troubleshooting

Agent Won't Start

powershell
# Check Windows Event Log
Get-EventLog -LogName Application -Source SlimRMMAgent -Newest 20

# Check service status
Get-Service SlimRMMAgent | Format-List *

# Try running manually
& "C:\Program Files\SlimRMM\slimrmm-agent.exe" --debug

Connection Issues

powershell
# Test connectivity
Test-NetConnection -ComputerName your-server.com -Port 443

# Check proxy settings
netsh winhttp show proxy

# Verify DNS
Resolve-DnsName your-server.com

Certificate Errors

powershell
# Check certificate
$cert = Get-Content "C:\ProgramData\SlimRMM\certs\cert.pem"
$cert | openssl x509 -noout -dates

Debug Logging

Enable detailed logging:

powershell
# Set registry key
Set-ItemProperty -Path "HKLM:\SOFTWARE\SlimRMM\Agent" -Name "LogLevel" -Value "debug"

# Restart service
Restart-Service SlimRMMAgent

# View logs
Get-Content "C:\ProgramData\SlimRMM\logs\agent.log" -Tail 100 -Wait

Security Considerations

  • Agent runs as SYSTEM account
  • Certificates are stored with restricted ACLs
  • All communication is encrypted (TLS 1.3)
  • mTLS provides mutual authentication

Released under the MIT License.