How to defragment your hard drive (Windows 8/8.1) Click/tap the Search Icon top-right of your screen Type Run into the search box (make sure Everywhere is selected in drop down menu) Click on the search result at the top of the list called “ Run “ Type dfrgui inside the Run window The Optimizeĭefragmenter in Windows 8.1 and Windows 10 (hard drives.