<!-- Copyright (c) 2026 defconxt. All rights reserved. -->
<!-- Licensed under AGPL-3.0 — see LICENSE file for details. -->

# API Reference — Performing Endpoint Inventory Management

## Commands

| Command | Description |
|---|---|
| `Get-MgDeviceManagementManagedDevice` | List Intune managed devices |
| `Get-ADComputer -Filter *` | Enumerate AD computer objects |
| `nmap -sn <subnet>` | Ping sweep for host discovery |
| `Get-CimInstance Win32_ComputerSystem` | Get local hardware inventory |
| `Get-CimInstance Win32_Product` | List installed software |
| `system_profiler SPHardwareDataType` | Get macOS hardware inventory |
| `dpkg --list` | List installed packages on Debian/Ubuntu |

## Agent Script

```bash
# node agent.js discover --subnet <value>
# node agent.js audit
# node agent.js drift --hostname <value>
```
