Windows 8.1 Open the Start menu by clicking on the Windows icon on the taskbar, and type defrag in the search bar. Select Defragment and Optimize Drives. Select the disk drive you want to optimize.