Windows 10 Event Logs

Discussion in 'Windows 10' started by Palladin, Mar 31, 2023.

  1. raptorddd

    raptorddd MDL Addicted

    Aug 17, 2019
    616
    203
    30
  2. raptorddd

    raptorddd MDL Addicted

    Aug 17, 2019
    616
    203
    30
    i first i tought the same as i read the script.. but defender wasnt removed or disabled..
     
  3. GrofLuigi

    GrofLuigi MDL Member

    Sep 17, 2016
    209
    499
    10
    That's because that part of his script doesn't work in newer editions of Win10 which have TamperProtection.

    Code:
    rem ========================= Windows Defender =========================
    
    rem 1 - Disable Real-time protection
    reg add "HKLM\Software\Policies\Microsoft\Windows Defender" /v "DisableAntiSpyware" /t REG_DWORD /d "1" /f
    
    rem Disable WD Services
    reg add "HKLM\System\CurrentControlSet\Services\Sense" /v "Start" /t REG_DWORD /d "4" /f
    reg add "HKLM\System\CurrentControlSet\Services\WdFilter" /v "Start" /t REG_DWORD /d "4" /f
    reg add "HKLM\System\CurrentControlSet\Services\WdNisSvc" /v "Start" /t REG_DWORD /d "4" /f
    reg add "HKLM\System\CurrentControlSet\Services\WinDefend" /v "Start" /t REG_DWORD /d "4" /f
    
    rem Remove WD context menu
    reg delete "HKCR\*\shellex\ContextMenuHandlers\EPP" /f
    reg delete "HKCR\Directory\shellex\ContextMenuHandlers\EPP" /f
    reg delete "HKCR\Drive\shellex\ContextMenuHandlers\EPP" /f
    

    He also deletes PowerShell (why?) and deletes all Policies from registry... The script is (was) tailored to his needs, but dangerous for anyone else that doesn't analyze it fully and modify it.

    GL
     
  4. hoak

    hoak MDL Member

    Nov 13, 2009
    143
    156
    10
  5. GrofLuigi

    GrofLuigi MDL Member

    Sep 17, 2016
    209
    499
    10
  6. Dark Dinosaur

    Dark Dinosaur X Æ A-12

    Feb 2, 2011
    3,734
    5,179
    120
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. Dark Dinosaur

    Dark Dinosaur X Æ A-12

    Feb 2, 2011
    3,734
    5,179
    120
    #69 Dark Dinosaur, Apr 30, 2023
    Last edited: Apr 30, 2023
    going to do something like that,
    hope my system will survive ...
    will run at OOBE stage ... or SPECIALIZE stage
    Going test it on new install ,,, lets hope no problem

    Code:
    
    rem clean/disable auditing to conserve resources
    rem https://forums.mydigitallife.net/threads/windows-10-event-logs.86754
    
    rem Not a good idea, kill WU service 
    rem sc stop EventLog
    rem sc config EventLog start=disabled
    
    reg delete "HKLM\SYSTEM\CurrentControlSet\Control\WMI\Autologger" /f
    reg add "HKLM\SYSTEM\CurrentControlSet\Control\WMI\Autologger" /f
    Auditpol /set /category:* /Success:disable /failure:disable
    
    Rem clean all this s**t
    Auditpol /clear /y
    powershell -nop -ep bypass -c "Get-EventLog -LogName * | ForEach { Clear-EventLog $_.Log }"
    
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. Dark Dinosaur

    Dark Dinosaur X Æ A-12

    Feb 2, 2011
    3,734
    5,179
    120
    what will happen if I remove all of them?
    i want to check....
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. GrofLuigi

    GrofLuigi MDL Member

    Sep 17, 2016
    209
    499
    10
    Check on a live (backed up) installation... It was a long time since I have done such a thing, don't remember what were the consequences, but it was nothing good. :)

    Btw, you need to be Trusted Installer to disable/delete Autologgers.

    Edit: I guess if you're in OOBE it's ok, if you're SYSTEM there.

    GL
     
  10. Dark Dinosaur

    Dark Dinosaur X Æ A-12

    Feb 2, 2011
    3,734
    5,179
    120
    oh no ......... [I have a backup don't worry]
    Is it because of auto loggers? or EventLog service?
    going to investigate ...

    EventLog service must be kept alive ...

    upload_2023-4-30_19-47-53.png
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. GrofLuigi

    GrofLuigi MDL Member

    Sep 17, 2016
    209
    499
    10
    From memory, remove EventLog from the value DependOnService of the NlaSvc. So current control set / services / nlasvc / dependonservice <- remove EventLog from this value, leave anything else that is there.

    GL
     
  12. Dark Dinosaur

    Dark Dinosaur X Æ A-12

    Feb 2, 2011
    3,734
    5,179
    120
    Test a new vhd with windows 11
    Script work fine ...
    Now test windows updates
    Nothing was hang out ..
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. GrofLuigi

    GrofLuigi MDL Member

    Sep 17, 2016
    209
    499
    10
    Yeah, but without Event Logs you have no way of knowing for sure if something is wrong and what...
     
  14. hoak

    hoak MDL Member

    Nov 13, 2009
    143
    156
    10
  15. raptorddd

    raptorddd MDL Addicted

    Aug 17, 2019
    616
    203
    30
    thats why i said someone should take a look. as i was very tired that day. but i did manage to pick stuff from it.. that i might need. so far so good.
     
  16. haz367

    haz367 MDL Addicted

    Jan 11, 2020
    798
    1,442
    30
    #80 haz367, May 2, 2023
    Last edited: May 2, 2023