Just like the SAGESET switch, it writes presets to the Registry. In Windows 10, it also does exactly the same thing. The command just has to described SAGESET functionality. If they do not behave as described, please correct me in the comments. To discover them, I used Sysinternals Process Monitor and also logs of the cleanmgr utility. The following commands are actually not documented. If the /D argument is not specified for this command, then it will be applied to all drives. Disk Cleanup will also then close automatically. The cleanup process will be started immediately, also without any confirmation prompt. It will then start to clean up using the preselected options automatically. Then type cleanmgr.exe /SAGERUN:112 in the Run dialog.Tap OK to save the preset under number 112.Tick the options that you want to be run for this preset as shown below:.Use the same number that you used for the earlier/SAGESET:number command.Ĭombining with the previous example, then you should do the following. You can see the syntax is as follows: cleanmgr.exe /SAGERUN:number The argument /SAGERUN permits the user to launch the preset configured earlier with the /SAGESET:n command. I have the value StateFlags0112 there for my /SAGESET:112 command: cleanmgr.exe /SAGERUN | cleandsk Such as the Windows Upgrade Log Files subkey reflects the same option in the user interface of the application.įor each and every value you check, it will be marked under the StateFlagsNNNN DWORD value, where NNNN is a number that you passed to the SAGESET argument. Technically, every checkbox is shown in Disk Cleanup actually reflects the appropriate registry subkey under the following Registry branch: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches Since you started cleanmgr.exe /SAGESET:n elevated, then it will open directly in the “Clean up system files” mode. PressOK to save the preset under the number you entered in the Run dialog.Tick the options you want to turn on for this preset as shown below:.First, open an elevated command prompt.The options you choose during the SAGESET session will written to the Registry and stored there for further use. Where the “number” can be any of the values from 0 to 65535. The command needs to execute elevated (as administrator). You can see the syntax is as follows: cleanmgr.exe /SAGESET:number When you do that, then you can launch the preset using the /SAGERUN option. The SAGESET key permits you to create a preset of selected checkboxes in cleanmgr.exe. You can also combine the /D argument with other switches of cleanmgr.exe. The command above will then launch disk cleanup for drive C. The user should specify the drive letter without “:” as we show in the picture below: cleanmgr.exe /D C Here is what those switches actually mean.Įxecutes disk cleanup for a particular drive. You can learn the switches available for Disk Cleanup through entering the following command in the Run dialog: cleanmgr.exe /? Let’s review them and see how you can use them. The built-in Windows tool, Disk Cleanup, that can be launched as cleanmgr.exe from the Run dialog, also supports a number of interesting command-line arguments that can be useful in many situations. In this article, we are going to talk about How to cleandsk in Windows 10 – Command Line Arguments. Disk Cleanup also has many hidden options that you can only access if you run it from the Command Prompt or a custom shortcut. You can also use it to remove old versions of Windows after an upgrade to Windows 10. It offers a quick way to delete temporary, cache, and other non-essential files in order to help you free up some disk space. The Disk Cleanup tool has been around in Windows for many years.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |