Merge pull request #42 from clong/sysmon_schema_version

Modify the schema of Sysmon Schema to 4.0
This commit is contained in:
Chris Long
2018-01-16 19:49:34 -08:00
committed by GitHub

View File

@@ -33,7 +33,10 @@ Invoke-WebRequest -Uri "https://live.sysinternals.com/Tcpview.exe" -Outfile $tcp
Copy-Item $sysmonPath $sysmonDir
# Download SwiftOnSecurity's Sysmon config
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/SwiftOnSecurity/sysmon-config/master/sysmonconfig-export.xml" -Outfile "$sysmonDir\sysmonConfig.xml"
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/SwiftOnSecurity/sysmon-config/master/sysmonconfig-export.xml" -Outfile "$sysmonConfigPath"
# Convert Sysmon config schema from 3.30 to 4.0 per GitHub Issue #38
(Get-Content $sysmonConfigPath) -replace 'schemaversion="3.30"', 'schemaversion="4.00"' | Set-Content $sysmonConfigPath
# Startup Sysmon
Write-Host "Starting Sysmon..."