-
Notifications
You must be signed in to change notification settings - Fork 0
Troubleshooting
Error: Import-Module: The specified module 'EventMonitor.Windows' was not found
Solutions:
- Verify installation:
Get-Module -Name EventMonitor.Windows -ListAvailable - Install if missing:
Install-Module -Name EventMonitor.Windows -Scope CurrentUser - Check PowerShell version — must be 7.4+:
$PSVersionTable.PSVersion - Ensure you're running
pwsh.exe, notpowershell.exe(Windows PowerShell 5.1)
Error: Get-EventMonitor returns Status: Ready (not Running)
Solutions:
- Start manually:
Start-EventMonitor -TaskName 'WinEventMonitor' - Check the task exists:
Get-ScheduledTask -TaskName 'WinEventMonitor' - Verify you have admin privileges (right-click PowerShell → Run as Administrator)
- Check Task Scheduler for error codes in the Last Run Result column
Error: Access is denied when registering or starting the monitor
Solutions:
- Run PowerShell as Administrator
- The scheduled task runs as
NT AUTHORITY\SYSTEM— registration requires admin rights - Event log access (especially Security log) requires elevation
Possible causes:
| Issue | Fix |
|---|---|
| Connection string not set | Set APPINSIGHTS_CONNECTION_STRING environment variable |
| Key expired or invalid | Check at https://www.powershellgallery.com/account/apikeys |
| Ingestion delay | AI can have 2–5 min ingestion delay. Wait and check again |
| Wrong workspace | Verify the InstrumentationKey matches your AI resource |
| Module running locally only | Check Get-TelemetrySinks — AI sink should be listed |
Diagnostic steps:
# Check registered sinks
Get-TelemetrySinks
# Run a manual scan to test
Invoke-EventMonitor -LookBackMinutes 5
# Check operational logs for errors
Get-Content 'C:\ProgramData\WindowsEventMonitor\Logs\*.log' | Select-Object -Last 50Possible causes:
-
Monitoring level too restrictive: Check
Get-MonitoringConfigand trySet-MonitoringLevel -Level High - No events occurring: Generate a test event (lock/unlock workstation for Logon events)
- Windows audit policy not enabled: Some events require Group Policy settings
Enable audit policies (if events are missing):
# Enable logon auditing
auditpol /set /subcategory:"Logon" /success:enable /failure:enable
# Enable process tracking
auditpol /set /subcategory:"Process Creation" /success:enable
# Enable PowerShell Script Block Logging (Group Policy)
# Computer Configuration → Administrative Templates → Windows Components →
# Windows PowerShell → Turn on PowerShell Script Block LoggingSymptom: Logs show "Watchdog detected unhealthy watcher" or "Restarting watcher"
This is normal behavior — the watchdog is doing its job by auto-repairing crashed watchers. This can happen when:
- An event log is temporarily unavailable
- System resources are constrained
- Windows Update restarts the Event Log service
Check watchdog health:
# In Application Insights
customEvents
| where name == "Watchdog Health Report"
| project timestamp, ActiveWatchers=toint(customDimensions.ActiveWatchers),
Errors=toint(customDimensions.TotalErrors)
| order by timestamp descSolutions:
# Reduce log verbosity
Set-EMLogLevel -Level Error
# Reduce journal retention
Set-EventJournal -Enabled $true -MinSeverity High -RetentionDays 7
# Disable journal entirely
Set-EventJournal -Enabled $falseLog files are at C:\ProgramData\WindowsEventMonitor\Logs\. Old files can be safely deleted.
Error: Various incompatibility errors
EventMonitor.Windows requires PowerShell 7.4+ (Core edition). It will not run on Windows PowerShell 5.1.
# Check which PowerShell you're using
$PSVersionTable
# If PSVersion shows 5.x, switch to PowerShell 7:
pwsh| Command | Purpose |
|---|---|
Get-EventMonitor |
Check task status |
Get-MonitoringConfig |
View active configuration |
Get-EventGroups | Format-Table |
See enabled/disabled groups |
Get-TelemetrySinks |
Verify telemetry sinks |
Get-MonitoredEventCategories |
See all registered processors |
Get-EventHistory -Days 1 -Last 10 |
Recent captured events |
Invoke-EventMonitor -LookBackMinutes 5 |
Test scan |
Show-EventMonitorHelp |
Quick reference |
| Path | Contents |
|---|---|
C:\ProgramData\WindowsEventMonitor\Logs\ |
Operational logs |
C:\ProgramData\WindowsEventMonitor\Config\ |
Saved configuration |
EventMonitor\Telemetry\Journal\ |
JSONL event files |
- GitHub Issues: Report a bug or request a feature
- Discussions: Ask questions or share ideas
-
Built-in help:
Show-EventMonitorHelp
Next: Home · Quick Start Guide