Hello chivaz,
Thank you for posting in Q&A forum.
This issue can occur due to insufficient permissions or other security settings. Here are some steps you can try to resolve this:
First
Use PsExec to Gain Higher Privileges: Sysmon installs its service with high integrity and might resist being stopped or uninstalled by processes with a lower integrity level, even when run as an administrator. You can use Sysinternals PsExec to run commands with NT AUTHORITY SYSTEM privileges. Here's how:
- Download PsExec from the Sysinternals website.
PsExec - Sysinternals | Microsoft Learn
https://learn.microsoft.com/en-us/sysinternals/downloads/psexec
- Open Command Prompt as Administrator.
- Run the following command to start a new command line with NT AUTHORITY SYSTEM privileges:
- psexec -accepteula -i -s cmd.exe
- In the new command line window, try uninstalling Sysmon again:
- sysmon -u
Second
Delete Sysmon Registry Entries: If the above method doesn't work, you can try deleting the Sysmon registry entries manually:
- Open Registry Editor (regedit) as Administrator.
- Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ and delete the Sysmon entries.
- Reboot your server and check if Sysmon is uninstalled.
I hope the information above is helpful.
If you have any questions or concerns, please feel free to let us know.
Best Regards,
Daisy Zhou
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.