%1 is not valid WIN32 application
On rare occasions, you might see the error message %1 Is Not a Valid Win32 Application when the Windows Agent service starts. This can occur if Agent's ImagePath value in the registry is incorrect.
How to fix this issue
Before you make any changes, back up the registry. Incorrect edits can damage the operating system.
- Sign into the device that has the issue.
- Press the Windows Key+ r.
- In the Run dialog box, enter regedit, and then select OK.
- In the Registry Editor, go to:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Advanced Monitoring Agent
- Double-click ImagePath.
- Add quotation marks around the full path of the executable file for the service. For example:
"C:\Program Files\Advanced Monitoring Agent\winagent.exe"
- Select OK, and then close the Registry Editor.
- Restart the Agent service.
