-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for restart command in Windows Agent #627
Conversation
7cef7f0
to
e0c659e
Compare
Renames namespace to windows_service for consistency throughout the project.
ddfa955
to
2c3a86a
Compare
4a2ff21
to
05a6253
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this only work if windows has powershell? I ask because I'm not sure that it is always available.
Windows Powershell has been bundled since Windows XP SP3 and can be installed on earlier versions of XP. Should this be a concern? |
Not necessarily, but if it's not bundled in any of the Windows versions we support, it should be added to the requirements list or to the documentation. |
e715dde
to
cf942af
Compare
a1c9975
to
a77c1c5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
a77c1c5
to
57bd15b
Compare
Description
This PR enables the Wazuh agent to support a command for self-restart in Windows.
Proposed Changes
Restart-Service
, running through a call to Win32 function CreateProcess().Results and Evidence
Full sequence of events:
event log.txt
Artifacts Affected
Configuration Changes
None
Documentation Updates
None
Tests Introduced
Review Checklist