![]() ![]() How to create a Scheduled Task to run Disk Cleanupįirst, you will need to have created a preset configuration using the /sageset: n switch. All drives in the computer will be enumerated, and the selected profile will be run against each drive. sagerun: n - This switch runs the specified tasks assigned to the n value using the /sageset switch. To get all the available options when using the /sageset switch, you may need to specify the drive letter that contains the Windows installation. The n value can be any integer value from 0 to 65535. The n value is stored in the registry and allows you to specify different tasks for Disk Cleanup to run. sageset: n - This switch displays the Disk Cleanup settings dialog box and creates a registry key to store the settings you select. ![]() You can use several different command-line switches with cleanmgr, but you will only need to use two /sageset: n and /sagerun: n. But you can use command-line switches to get all of the options ( user and system). This will start Disk Cleanup, just like starting it from the Windows Tools shortcut. In the Admin Command Prompt, type the following and then press Enter. How to open a Command Prompt with Administrator privileges in Windows 11 Note: The full name of Disk Cleanup is cleanmgr.exe, but you only need to use cleanmgr in the Admin Command Prompt. The first thing you need to do is open a Command Prompt with Administrator privileges. And you can also use Task Scheduler to run the advanced Disk Cleanup settings on a schedule you set. Using the advanced way of starting Disk Cleanup will give you all of the user and system settings options. Select the files you want to clean up and left-click on the OK button. If this is the drive with Windows installed on it, you will have several more file options to choose from. If you want to clean up system files, then left-click on the Clean up system files button. If you are looking to clean up your user profile, select the files you want to delete and left-click on the OK button. If you started Disk Cleanup from the Windows Tools shortcut and have more than one ( 1) drive inside your computer, you may be prompted for which drive you want to clean up.įrom the dialog box that appears, you will see a list of user files that can be deleted.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |