Install on Windows
Copies this page as Markdown with context, so an AI can walk you through your case step by step.
One command in PowerShell as administrator. The agent runs as a SYSTEM scheduled task.
Requirements
- Windows Server 2019 or later, or Windows 10 and 11.
- Python 3.11 or newer. If you don’t have it:
winget install Python.Python.3.13. - Outbound HTTPS (port 443) to
ganyant.comand*.r2.cloudflarestorage.com. - PowerShell opened as administrator (right click → Run as administrator).
1. Generate the key
In Servers → Agent API keys, type a name and click Generate API key. Below the Linux command you’ll find the Windows one (PowerShell as administrator).
2. Install
$env:GANYANT_KEY="gyk_…"; irm https://ganyant.com/install.ps1 | iex
The installer:
- Copies the agent to
C:\Program Files\ganyantand creates an isolated Python environment. - Writes the configuration to
C:\ProgramData\ganyant\agent.toml, readable only by SYSTEM and administrators, with a random encryption passphrase. - Registers the
ganyant-agentscheduled task, which runs as SYSTEM at startup and restarts itself if it stops.
3. Check
Get-ScheduledTask ganyant-agent | Select-Object TaskName, State
Get-Content 'C:\ProgramData\ganyant\agent.log' -Tail 50
The state should be Running. You can also see it in Task Scheduler (taskschd.msc) → Library → ganyant-agent. It doesn’t appear in services.msc because it’s a scheduled task, not a service.
What it detects on Windows
- CPU, RAM, disks and network, same as on Linux.
- RDP brute force: it reads event 4625 (failed sign-in) from the Security log.
- New listening ports.
Commands
From PowerShell as administrator:
& 'C:\Program Files\ganyant\venv\Scripts\python.exe' 'C:\Program Files\ganyant\ganyant_agent.py' version
To restart it after editing agent.toml:
Stop-ScheduledTask ganyant-agent; Start-ScheduledTask ganyant-agent
Files
| What | Where |
|---|---|
| Program | C:\Program Files\ganyant |
| Configuration | C:\ProgramData\ganyant\agent.toml |
| Logs | C:\ProgramData\ganyant\agent.log |
| Runs as | Scheduled task ganyant-agent |
Common problems
| Symptom | What to check |
|---|---|
irm not recognized |
You’re in Command Prompt (cmd), not PowerShell |
| Access denied | PowerShell isn’t running as administrator |
| Python not found | Install it with winget and open a new PowerShell window |
The task stays Ready |
Look at the end of agent.log; it’s usually a badly copied key |