Skip to content

Commit

Permalink
remove sample submission
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisTitusTech committed Oct 19, 2023
1 parent 0cd88c0 commit 0dcc94f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion config/tweaks.json
Original file line number Diff line number Diff line change
Expand Up @@ -1862,7 +1862,8 @@
}
],
"InvokeScript": [
"bcdedit /set `{current`} bootmenupolicy Legacy | Out-Null
"
bcdedit /set `{current`} bootmenupolicy Legacy | Out-Null
If ((get-ItemProperty -Path \"HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\" -Name CurrentBuild).CurrentBuild -lt 22557) {
$taskmgr = Start-Process -WindowStyle Hidden -FilePath taskmgr.exe -PassThru
Do {
Expand All @@ -1884,6 +1885,9 @@
Remove-Item \"$autoLoggerDir\\AutoLogger-Diagtrack-Listener.etl\"
}
icacls $autoLoggerDir /deny SYSTEM:`(OI`)`(CI`)F | Out-Null

# Disable Defender Auto Sample Submission
Set-MpPreference -SubmitSamplesConsent 2 -ErrorAction SilentlyContinue | Out-Null
"
]
},
Expand Down

0 comments on commit 0dcc94f

Please sign in to comment.