---
updatedAt: 2025-08-14T13:53:57.000Z
agentTools:
  siteIndex: https://developer.n-able.com/llms.txt
  projectIndex: https://developer.n-able.com/n-sight/llms.txt
---

# How to put a system tray icon in notification area?

```powershell PowerShell
Try {
	$Agent_Path = Get-ChildItem "C:\Program Files" | Where-Object {$_.Name -eq "Advanced Monitoring Agent"}
	If($Agent_Path -ne $Null) {
		& "C:\Program Files\Advanced Monitoring Agent\systray\SysTray.exe"
		}
	Else {
		& "C:\Program Files (x86)\Advanced Monitoring Agent\systray\SysTray.exe"
	}
	Write-Host "SysTray has been activated and SystemTray's icon now must be visible in Notification Area"
	Write-Host "Script Check Passed"
	Exit 0
}
Catch {
Write-Host "Script Check Failed"
Exit 1001
}


```

```json Response Example
{"success":true}
```

# SCRIPT