Sysmon
Summary
This solution handles the optional application Sysmon.
Base Scripts:
- Install Sysmon application
- Uninstall Sysmon application
Optional Script Enhancement Suggestions:
- Monitor Configuration
Intended Target: Windows Computers
Install Sysmon on an Endpoint (Sysmon - Install)
- Import the Sysmon Install Script.
- Set the optional config file as a user parameter, or leave it blank if you do not have a specified config file.
or
Uninstall Sysmon From an Endpoint (Sysmon - Uninstall)
- Import the Sysmon Uninstall Script.
- Run the script.
Optional Script Enhancement Suggestions
- Service Monitor
- Sysmon64 - 64-bit service
- Sysmon - 32-bit service
- Pick an appropriate group that you would like to monitor for Sysmon services and set up a remote monitor.
- Name: △ Sysmon Service Monitor
- Limit to: Feel free to add a limit if desired.
- Alert style: Once
- Alert Template: Service - Restart autocorrect script template.
- Check Action: System
- Check Type: Run File
- Execute Info:
C:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe -ExecutionPolicy Bypass -Command "If ((Get-Service | Where-Object -Property Name -Match 'Sysmon').count -eq 0) {return} else { Get-Service | Where-Object -Property Name -Match 'Sysmon' | ForEach-Object { if ($_.status -ne 'Running') { return $_.DisplayName; } else { return } } }"
- Condition: Missing
- Interval: 300
Variables
Sysmon - Install
Name | Description |
---|---|
Local File Location | The folder location of where the config file and the zip file will be downloaded. |
Sysmon File Name | The name of the Sysmon executable file (changes based on bitness). |
Command Arguments | The arguments that follow the installation command when installing or uninstalling the application. |
ExtractResult | Outcome of the PowerShell script downloading and extracting the Sysmon installer. |
%Shellresult% | Outcome of the Sysmon installation command. |
Full Command | The full command being run to install/uninstall the application. |
Sysmon - Uninstall
Name | Description |
---|---|
Local File Location | The folder location of where the config file and the zip file will be downloaded. |
Sysmon File Name | The name of the Sysmon executable file (changes based on bitness). |
Command Arguments | The arguments that follow the installation command when installing or uninstalling the application. |
Full Command | The full command being run to install/uninstall the application. |
Output
- Script log