Skip to content

Conversation

@davedhoff
Copy link
Contributor

This allows deployment of the BeaKer agent over a PS remote session as follows:
Invoke-Command -ComputerName (Get-Content .\systems.txt) -FilePath .\install-sysmon-beats.ps1 -ArgumentList "ip.of.BeaKer", "9200", $cred

systems.txt is a text file with the ips of each system the agent should be installed on, each on a new line.
$cred is a powershell credential object and can be defined with $cred = (Get-Credential)
If the agent is being installed locally, a credential object can be passed as an argument or the script will ask if none is provided. Passing the username/pass in plain text as arguments doesn't work with this change.

To whoever tests this out, shoot me an email (dave) if you need help setting up a windows environment that allows PS remoting. I suspect most real-life customers will already have it enabled in some way or another.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants