# Monitor-Uptime.ps1 — Quick Start 1) Place `Monitor-Uptime.ps1`, `servers.txt`, and optionally `servers_http.csv` in a folder. 2) Edit `servers.txt` to list your servers (one per line). Optionally map HTTP checks in `servers_http.csv`. 3) Run once to test: ```powershell powershell.exe -ExecutionPolicy Bypass -File .\Monitor-Uptime.ps1 -Webhook (Get-Content .\webhook.txt) ``` 4) A log file `monitor_log.csv` will be created. You can pivot/filter in Excel or Power BI. 5) Schedule with Task Scheduler (every 5 minutes): - Action: `powershell.exe` - Arguments: `-NoProfile -ExecutionPolicy Bypass -File "C:\Path\Monitor-Uptime.ps1"` Notes: - Uses CIM (Win32_OperatingSystem.LastBootUpTime) to compute uptime. - Sends simple JSON payloads to Teams/Slack compatible incoming webhooks. - For email, prefer relay/webhook; `Send-MailMessage` is deprecated in modern PowerShell.