For some reason it never worked for me, so I just use: Code: net stop EventLog /y del "%ProgramData%\USOShared\Logs" /s /f /q del "%WINDIR%\Logs" /s /f /q del "%WINDIR%\System32\LogFiles" /s /f /q del "%WINDIR%\System32\winevt\Logs" /s /f /q
Can someone post a full fixed Clear Event Viewer Logs script please? Be great if someone posts a fully fixed one. Sorry didn't see that @zucrin has fixed it it. Updated my post.
I would be grateful if my friends here would guide me on resolving ntoskrnl.exe BSOD error in win 11. I have seen it only on win 11 from around late Sep builds. Around 95% of these instances happen mostly on cold startup within 1-2 minutes though random BSODs with same ntoskrnl.exe account for remaining 5%. Same hardware but no issues on windows 11 but quite a lot of BSODs on win 11. Nothing has fixed this, neither the win 11 updates or AMD 3.10 drivers. Motherboard is Gigabyte X570 Aorus Ultra (updated to latest BIOS of Oct 21 that `fixed' TPM for win 11). Memory is tested OK (Gskill 32GB Trident Z neo 3600 Mhz), GPU is ASUS 1660Ti, CPU is AMD Ryzen 7 3700x, power is clean, new, 750W 80 Gold. No overclocking except setting RAM to XMP in Bios. I must stress that this is not a win 10 but a win 11 problem for my PC hardware. After consulting here and elsewhere, I thought I will try these even though it may cause performance or otheGskill 32GB Trident Z neor sacrifices. The sole objective is to avoid BSODs first and then care about other things. So I am trying as below but have no technical skills to know if these matter or help in resoution 1. Not installing AMD chipset driver (3.10) 2. Using these registry entries (runtime broker) [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\TimeBroker] "Start"=dword:00000003 [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SysMain] "DisplayName"="Superfetch" "Start"=dword:00000003 3. Setting page File at Shutdown to 1 HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Memory Management\ClearPageFileAtShutdown=1 4. Changing NDU value from 2 to 4 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TimeBroker] "Start"=dword:00000004 5. Disable Sysmain in services. Would be grateful if I can be helped here as to the efficacy or otherwise of above. Any other solution would be welcome.