Comments (13)
Francesco; I believe you should run the command as a single string:
.\Merge-SysmonXml.ps1 Merge-AllSysmonXml -Path ( Get-ChildItem '[0-9]*\*.xml') -AsString | Out-File sysmonconfig.xml
With that said, this command gives me no output (tried on 3 different computers) and generates a 0-byte sysmonconfig.xml output file. I see there are some required params in the script function, but even running just .\Merge-SysmonXml.ps1 Merge-AllSysmonXml
provides no output - I'd expect an error about the missing params, but I get nothing. Tips appreciated. :)
from sysmon-modular.
Geir, That was my first try! Then I thought to load first the module then execute the code... but also no luck. It seems that for some reason the error starts at this point of the code:
$doc = [xml]::new()
from sysmon-modular.
Hm, do you have .NET 4.5 or newer installed? And what does $PSVersionTable give you?
from sysmon-modular.
.NET 4.8
And my $PSVersionTable:
Name Value
---- -----
PSVersion 5.1.18362.628
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.18362.628
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
from sysmon-modular.
Yeah, sorry, I got no ideas.
from sysmon-modular.
Hi, when I execute the merge command as noted, I get a 0 kb sysmonconfig.xml file, so nothing happens. However if I add Merge-AllSysmonXml -Path ( Get-ChildItem '[0-9]**.xml') -AsString | Out-File sysmonconfig.xml to the end of the script to call the Merge-AllSysmonXml function from inside the script, the function does seem to do it's job, and I get a file that's 338KB in size instead as compared to the sysmonconfig.xml which comes with the zip file. I haven't combed through the script very carefully but it doesn't understand calling the function externally.
from sysmon-modular.
Hi, when I execute the merge command as noted, I get a 0 kb sysmonconfig.xml file, so nothing happens. However if I add Merge-AllSysmonXml -Path ( Get-ChildItem '[0-9]**.xml') -AsString | Out-File sysmonconfig.xml to the end of the script to call the Merge-AllSysmonXml function from inside the script, the function does seem to do it's job, and I get a file that's 338KB in size instead as compared to the sysmonconfig.xml which comes with the zip file. I haven't combed through the script very carefully but it doesn't understand calling the function externally.
This isn't working for me either. I get the following error.
Merge-AllSysmonXml : Cannot bind argument to parameter 'Path' because it is null.
from sysmon-modular.
when I run .\Merge-SysmonXml.ps1 Merge-AllSysmonXml -Path ( Get-ChildItem '[0-9]**.xml') -AsString | Out-File sysmonconfig.xml
I get a 0 kb sysmonconfig.xml file,
from sysmon-modular.
I am currently having the same issue with a 0 size config file. Running Win10,
[Edit]
Strangely enough I have the same issue when I try running the 10.4 branch as well.
from sysmon-modular.
from sysmon-modular.
Indeed, I feel a bit embarrassed now, because when I run it one after another it works for both 11 and 10.4 versions...awkward. PEBKC in my case.
from sysmon-modular.
from sysmon-modular.
glad it got resolved, I'll make a small adjustment to the readme file to make it more clear
from sysmon-modular.
Related Issues (20)
- Include Top Level Groups not working? HOT 2
- TYPO? HOT 1
- Managing multiple customer config example
- Default config - file deletes are being archived HOT 4
- Sysmon 14.14 - Anti-Tamper Controls? HOT 3
- Repo Folder index
- In line 1616 could be a typo HOT 1
- Event ID 8 - CreateRemoteThread - Appends to bottom of config
- Super verbose config missing from Azure Pipelines
- Suggested additions to TrendMicro ProcessCreation event exclusion
- Suggested additions to Microsoft Defender ProcessCreation event
- XML Issue with sysmonconfig-excludes-only.xml
- KAV exclusion
- Duplicates
- Exclusion Trend Micro WFBS
- User condition in exclusions for RegistryEvents
- Incorrect rule format?
- Error 255 appears, please help me figure it out. HOT 2
- Config causing 35 second delay opening modern MS Office file formats (.docx & .xlsx etc)
- FileDelete Issue, cannot remove C:\Sysmon locked .dlls HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sysmon-modular.