Windows Installation
Install the BlueSentinel DLP agent on Windows endpoints.
Prerequisites
- Windows 10 or Windows 11
- Administrator privileges
- Network connectivity to the central server on port 5100
Installation
Using the PowerShell Installer
powershell
# Run as Administrator
.\installer\install_windows.ps1The installer will prompt for:
- Server URL — The HTTPS URL of your central server (e.g.,
https://your-server:5100) - Enrollment Token — Generated from the admin dashboard under Enrollment
What the Installer Does
- Creates the application directory at
C:\ProgramData\BlueSentinel\ - Copies the agent files and bundled Python runtime
- Creates subdirectories:
logs\,certs\,queue\ - Writes the initial configuration with server URL and enrollment token
- Registers a Windows Service for auto-start on boot
- Starts the agent immediately
File Locations
| Path | Purpose |
|---|---|
| `C:\ProgramData\BlueSentinel\` | Main application directory |
| `C:\ProgramData\BlueSentinel\policy.json` | Current policy (offline fallback) |
| `C:\ProgramData\BlueSentinel\bluesentinel.db` | Local SQLite database |
| `C:\ProgramData\BlueSentinel\logs\` | Log files |
| `C:\ProgramData\BlueSentinel\certs\` | TLS certificates |
| `C:\ProgramData\BlueSentinel\queue\` | Offline alert queue |
Windows Service
The agent runs as a Windows Service with these properties:
- Service Name: BlueSentinel
- Startup Type: Automatic
- Run As: Local System
- Recovery: Restart on failure (1st, 2nd, and subsequent failures)
Verify Installation
powershell
# Check if the service is running
Get-Service BlueSentinel
# Check the logs
Get-Content "C:\ProgramData\BlueSentinel\logs\bluesentinel.log" -Tail 50
# Check enrollment
Get-Content "C:\ProgramData\BlueSentinel\policy.json" | ConvertFrom-JsonGroup Policy Deployment
For large-scale deployments, you can deploy the agent via Group Policy:
- Package the installer as an MSI or use a startup script
- Configure the enrollment token and server URL via environment variables or a config file
- Deploy via GPO Computer Configuration → Scripts → Startup
Uninstallation
Warning: Uninstallation requires disabling the anti-tamper protection first via the admin dashboard.
powershell
# Stop and remove the service
Stop-Service BlueSentinel
sc.exe delete BlueSentinel
# Remove files
Remove-Item -Recurse -Force "C:\ProgramData\BlueSentinel"