freezing/deadlocking and all round bad performance

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Malnutrition
    PCHF Moderator
    • Jul 2016
    • 7041

    #16
    A little batch file I run on pretty much all machines I am paid to fix. Cleans up trash files and disables useless services etc. A restore point is created, that is the first line in the batch file.

    Open a notepad and copy the content of the code box below, paste into open notepad and save it to your desktop as clean.bat then right click on clean.bat and run as admin.
    Note: Do not copy the word code.
    Note: This batch will reboot your machine so close anything you are working on and save it.
    Code:
    @echo off
    WMIC /Namespace:\\root\default Path SystemRestore Call CreateRestorePoint "BatchRestorePoint", 100, 10
    fsutil resource setautoreset true c:\&fsutil usn deletejournal /d /n c:
    netsh advfirewall reset
    netsh advfirewall set allprofiles state On
    wmic nicconfig where (IPEnabled=TRUE) call SetDNSServerSearchOrder ("76.76.19.19", "1.1.1.1")
    %WINDIR%\SYSTEM32\lodctr.exe /R
    %WINDIR%\SysWOW64\lodctr.exe /R
    C:\Windows\SYSTEM32\lodctr.exe /R
    C:\Windows\SysWOW64\lodctr.exe /R
    Dism.exe /online /Cleanup-Image /StartComponentCleanup
    pause
    DISM.exe /Online /Cleanup-image /Restorehealth
    pause
    Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase
    pause
    del /s /q C:\Windows\SoftwareDistribution\download\*.*
    del /s /q "%userprofile%\AppData\Local\Google\Chrome\User Data\Default\Cache\*.*"
    del /s /q "%userprofile%\AppData\Local\Opera Software\Opera Stable\Cache\Cache_Data\*.*"
    del /s /q "%userprofile%\AppData\Local\Microsoft\Edge\User Data\Default\Cache\*.*"
    del /s /q "%userprofile%\AppData\Local\temp\*.*"
    del /f /s /q %systemdrive%\*.tmp
    del /f /s /q %systemdrive%\*.log
    del /f /s /q %systemdrive%\*.chk
    del /f /s /q %systemdrive%\recycled\*.*
    del /f /s /q %windir%\*.bak
    del /f /s /q %windir%\prefetch\*.*
    ipconfig /flushdns
    sc stop sysmain
    sc config sysmain start= disabled
    sc stop DiagTrack
    sc config DiagTrack start= disabled
    sc stop dmwappushservice
    sc config dmwappushservice start= disabled
    sc stop WSearch
    sc config WSearch start= disabled
    sc stop lfsvc
    sc config lfsvc start= disabled
    del /s /q %ProgramData%\Microsoft\Diagnosis\ETLLogs\AutoLogger\AutoLogger-Diagtrack-Listener.etl
    reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\SQMClient\parameters /v DisabledComponents /t REG_DWORD /d 0xFFFFFFFF
    reg add hklm\system\currentcontrolset\services\tcpip6\parameters /v DisabledComponents /t REG_DWORD /d 0xFFFFFFFF
    sfc /scannow
    pause
    shutdown -r
    Exit /B

    Comment

    • Emeraldz
      PCHF Member
      • Sep 2022
      • 10

      #17
      Download DESKTOP-1T2RQN8.arn for free from ufile.io instantly, no signup required and no popup ads

      here you go

      Comment

      • Malnutrition
        PCHF Moderator
        • Jul 2016
        • 7041

        #18
        I am logging off for the day I have the file downloaded, and will check it out Sunday. Have a good rest of your day.

        Comment

        • Emeraldz
          PCHF Member
          • Sep 2022
          • 10

          #19
          thank you i appreciate the effort

          Comment

          • Malnutrition
            PCHF Moderator
            • Jul 2016
            • 7041

            #20
            Right click autoruns and run as admin, uncheck the highlighted items, then reboot the machine.

            [ATTACH type=β€œfull”]10633[/ATTACH]
            [ATTACH type=β€œfull”]10634[/ATTACH]
            [ATTACH type=β€œfull”]10635[/ATTACH]

            Comment

            • Malnutrition
              PCHF Moderator
              • Jul 2016
              • 7041

              #21
              [ATTACH type=β€œfull”]10636[/ATTACH]

              You need to free up some space on your C: drive, in order for windows to operate correctly…

              You can free up space on your C: drive, to allow windows some breathing room. You can use Treesize to find files on your machine that you may wish to delete.
              [ul]
              [li]First download and save the portable version of Privazer to your desktop.[/li][li]Go through the options a set Privazer to your needs, select basic or advanced user.[/li][li]When you are done setting Privazer to your needs, then click on start cleaning then scan.[/li][li]This scan can take a while to complete, so it is best that you do it when you have some free time.[/li][/ul]




              You can use the Everything Search Engine to find and remove files from your machine.
              Searching for file extensions in Everything Search, to help you along the way is easy.
              You can simply type .mp3 to find all of your music, or .mp4 to find your videos.
              You can open the file from the tools gui by double clicking it, and then decide if it needs to go.


              [HEADING=2]Using Master Seeker To Find Large Files Over 1 Gigabyte.[/HEADING]

              [ul]
              [li]Download Master Seeker to your desktop, right click it and run as administrator to start the application.[/li][li]To search for files that are a certain size, you can use the search terms in the picture below.[/li][li]By using this method you can find and delete files of a certain size, like 500mb or 1gb.[/li][/ul]
              Code:
                  [IMG alt="Capture.PNG"]https://pchelpforum.net/attachments/capture-png.9652/
              [ul]
              [li]Say you want to find all files 1gb or larger, you type 1gb into the search window of Master Seeker.[/li][li]This will list all files on your machine that are 1gb give or take a few mb.[/li][li]Then you simply right click and delete if you feel the file needs to go.[/li][li]You can search for files of 2gb size, or 300 mb, obviously you want to seek out the larger files with this tool.[/li][/ul]
              Code:
                  [IMG alt="Capture.PNG"]https://pchelpforum.net/attachments/capture-png.9653/

              Comment

              • Emeraldz
                PCHF Member
                • Sep 2022
                • 10

                #22
                while unchecking options in autoruns a number of them come up as 'failed to disable [insert program name], should i not worry about those and continue anyway?

                Comment

                • Malnutrition
                  PCHF Moderator
                  • Jul 2016
                  • 7041

                  #23
                  Just make sure you right clicked and ran as admin autoruns.

                  If you are sure of that, then skip. And follow instructions for what you can, reboot the machine and test… let me know the outcome.

                  Comment

                  • Malnutrition
                    PCHF Moderator
                    • Jul 2016
                    • 7041

                    #24
                    Any improvements?

                    I’ll tag another set of eyes for you as well.

                    @Bruce @Pyro @PeterOz

                    Comment

                    • Bruce
                      PCHF Moderator
                      • Oct 2017
                      • 10699

                      #25
                      log in under another profile (create a new account if need be) and see if things are the same speed wise.

                      otherwise, it could be as simple as β€˜performance rot’.
                      you say it’s about 3 years old, so a fresh install of Windows would yield the best results.
                      if the rig was fast when you first got it, a fresh install will take it back to that speed point.

                      yes, you have to reload everything, in itself a minor issue, but not only will you get your performance back, it’ll also force you to backup your personal files, and remove 3 years of crap buildup as you only reload the current software you need.

                      Comment

                      • PeterOz
                        PCHF Technical Response Team
                        • Mar 2021
                        • 4190

                        #26
                        As noted, you are way too low on C: Disk space.
                        You only have 8GB of ram - not enough for gaming.
                        For testing I would
                        1. Get at least 30% free space on C Drive
                          Uninstall Nortons (Can be reinstalled later)
                          Uninstall Java.
                          Test

                        Originally posted by Bruce
                        so a fresh install of Windows would yield the best results.
                        I Agree.
                        I would put a fresh install on a new SSD at least 1TB and only load windows and games/programs
                        Move all documents/photos/video etc to your other drives

                        Comment

                        • Bruce
                          PCHF Moderator
                          • Oct 2017
                          • 10699

                          #27
                          @Emeraldz - any news?

                          Comment

                          • Bruce
                            PCHF Moderator
                            • Oct 2017
                            • 10699

                            #28
                            abandoned

                            Comment

                            Working...