windows 10 disk usage code example

Example 1: system taking 100 disk windows 10

These are some steps that helped me  : 

Note* : All commands will be run with administrators rights

1. Update Windows : Installing the latest updates can often resolve mysterious
					problems with your Windows 10 system. 
                    
2. Check For Malware : if you have antivirus software running in the background
						it should have caught the issue. So you can exclude the 
                       folder that you think are not necessary for scan.

3. Disable Windows Search  :
	a) temporarily stop the Windows Search facility : net.exe stop “Windows search”
    b) disable it permanently: 1) Press the Windows key + R, enter services.msc and hit Enter.
							   2) The services window will open. Select the Windows Search entry and double-click it to update its properties.
							   3) Select Disabled under Startup type and then OK to save your changes.
                               
4. Stop the Superfetch Service : if you have super fetch service
								run command: net.exe stop superfetch

Example 2: windows 10 disk and cpu 100

1. Open Start > Settings > Privacy > Background apps
Disable all Background apps.
------------------------------------------------------------------

2. Disabling Windows Update:

Press Windows key + R
Type: services.msc
Hit Enter

Scroll down to Windows Update
Select it then right click it
Click Properties
Under the General tab, choose Startup type to Disabled
Click Stop
Click Apply then OK

Also, check whats starting up with Windows.
------------------------------------------------------------------

3. Press Windows key + X
Click Task Manager
Click Startup tab
Disable all except Windows Defender.
------------------------------------------------------------------

4. Disable Windows notifications.
a. Click on the Windows flag (Start menu) and open Settings.
b. At settings window, select System.
c. Select Notifications & actions at the left and then set the Show me
tips about Windows notifications to OFF.
d. Close settings window and check if the HDD 100% usage problem persists.
If persists, then try to turn off all other notifications.
------------------------------------------------------------------

5. Press Windows key + R
Type: msconfig
Hit Enter

Go to the services tab
Check the box, hide all Microsoft services

Disable the remaining services

Click Apply then OK

Restart if prompted