GithubHelp home page GithubHelp logo

Comments (13)

Neonsun77 avatar Neonsun77 commented on May 19, 2024

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.

francescouk avatar francescouk commented on May 19, 2024

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.

Neonsun77 avatar Neonsun77 commented on May 19, 2024

Hm, do you have .NET 4.5 or newer installed? And what does $PSVersionTable give you?

from sysmon-modular.

francescouk avatar francescouk commented on May 19, 2024

.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.

Neonsun77 avatar Neonsun77 commented on May 19, 2024

Yeah, sorry, I got no ideas.

from sysmon-modular.

lazind avatar lazind commented on May 19, 2024

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.

ravenousld3341 avatar ravenousld3341 commented on May 19, 2024

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.

Mangolinux avatar Mangolinux commented on May 19, 2024

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.

canadianmuppet avatar canadianmuppet commented on May 19, 2024

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.

lazind avatar lazind commented on May 19, 2024

from sysmon-modular.

canadianmuppet avatar canadianmuppet commented on May 19, 2024

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.

lazind avatar lazind commented on May 19, 2024

from sysmon-modular.

olafhartong avatar olafhartong commented on May 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.