For Windows 8/10: 1  Move your mouse cursor to the taskbar at the bottom left corner, type “defrag” in the search box. 2  Click the “Defragment and Optimize Drivers” option. 3  Now select and view current status by clicking “Analyze” check how fragmented your HP hard drive is.  Hit “Optimize” to start defragmenting.