Skip to main content

How to Enable Hidden Options in Windows’ Disk Cleanup Tool

How to Enable Hidden Options in Windows’ Disk Cleanup Tool


The Disk Cleanup tool has been around in Windows for years. It offers a quick way to remove temporary, cache, and other non-essential files to help you free up some disk space. You can even use it to remove old versions of Windows after an upgrade to Windows 10. Disk Cleanup also has several hidden options that you can only access if you run it from the Command Prompt or a custom shortcut.
Start by opening the Command Prompt with administrative privileges. Press Windows+X and choose “Command Prompt (Admin)” from the list of commands.
At the Command Prompt, type the following command and then press Enter.
cleanmgr /sageset:65535 /sagerun:65535
Note that where this command uses the number 65535, you can actually use any number between 1 and 65535 as long as you use the same number in both places. The reason for this is that the cleanmgr command offers some other customization and automation features. Disk Cleanup remembers options, so you could create batch files or scripts that ran cleanup in different ways based on the set number you use. Here, we’re just exposing the hidden cleanup options, but if you’re interested, Microsoft has some good information about automating Disk Cleanup.
After you run the command at the Command Prompt, the Disk Cleanup interface will load. Unlike when you run it the regular way, it will not ask you which disk you want clean up. Instead, options you choose will apply to all disks. As you can see, the tool now offers several options that are unavailable if you run Disk Cleanup normally.
If you want to run Disk Cleanup this way regularly, you can also create a shortcut. To do this, you’ll first need to run the command using the Command Prompt as we just discussed. This creates a configuration entry in the Registry using the sageset number you chose (we’re still using 65535). Then, you’ll need to create the new shortcut. Just right-click on your Desktop (or any folder where you want to save the shortcut) and choose New > Shortcut. In the Create Shortcut window, paste (or type) the following text into the “Type the location of the item” box and then click Next.
%systemroot%\system32\cmd.exe /c Cleanmgr /sagerun:65535
Give your shortcut a name and then click Finish to save it.
Now, all you have to do is double-click that shortcut to run Disk Cleanup with advanced options against all the drives on your system. It won’t necessarily save you a huge amount of extra space, but sometimes every little bit helps. It also offers a nice way to run Disk Cleanup against multiple drives at once.

Comments

Popular posts from this blog

9 Free & Open Source Forum Software Solutions

Forums can be a great way to encourage audience participation, and to change a website from a one dimensional entity into a full fledged community. There are a number of well developed open source forums out there on the web to help you create that, each with their own benefits. This review breaks down some of the best software out there in 2011 with a focus on everything from lightweight forum solutions to the all singing, all dancing heavyweights. Vanilla URL: http://vanillaforums.org/ Features URL: http://vanillaforums.org/features/embed-vanilla License: GPL Runs on: PHP / MySQL / Postgres Vanilla has always prided itself on clean underlying code, bringing together web standards, code reuse and css to create a product that kicks lumps out of 1990′s bulletin software that we’ve become accustomed to on the web. With many of the forum software solutions out there on the web carrying a technical burden of tables and bloatware, Vanilla brings with it a fresh approac...

50 Amazing PC Hacks Which You Don’t Know

Today I am going to share  50 Amazing PC Hacks & Tips  which will make you Pro users  of your  windows 7, 8, 8.1, 10   Laptop or PC ,  these  amazing hacks  will help you in your daily tech lifestyle , I hope you don’t even heard of these kind of  50 secrete PC hacks at any social media platform , so let’s begin with  Amazing PC tricks  50 Amazing PC Hacks  #1 How To Access Your Folder As a Drive Go to start> run> cmd In command prompt, Type:  subst Z: D:\folder then hit Enter… You can replace Z: with your desired New Drive Letter (Except existing Drive letters) You can replace D:\folder with the path of your favorite folder Now, Type: exit This will creates a new drive & When you open this , it will open your folder. NOTE: On Restart the Virtual Drive Disappears . #2 How To Create Folder And Files With No Name This Hacks will allow...