Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

ActiveX is automatically deleted in the Windows 10 (x86) environment


View products that this article applies to.

Symptoms

ActiveX is automatically deleted in Windows 10 (x86) when a SilentCleanup task is run.

In Windows 8.1 and earlier versions, SilentCleanup was run only when free disk space fell below 10 percent of the entire disk space. However, in order to improve the user experience in Windows 10, SilentCleanup is also run when the system enters the idle state.
 

When you experience this issue, the following folders are cleaned up by the SilentCleanup task:

  • Downloaded Program Files
  • Temporary Internet Files

↑ Back to the top


Cause

This issue occurs because, by default, ActiveX is downloaded to the Downloaded Program Files folder that is set to be cleaned up.

↑ Back to the top


Workaround

To work around this issue, use one of the following methods:

Exclude the destination to which ActiveX is downloaded

  1. Start a command prompt as an administrator.
  2. Run a command that resembles the following to set the cleanup setting.

    > cleanmgr /sageset:2

    Note The /sageset option sets the cleanup setting. You can specify a storage number from 0 to 65535 ("2" in this example command). The cleanup setting lets you save the folder to be deleted to the storage number that you specified for /sageset. You select a folder in step 3.
  3. When the Disk Cleanup Settings screen appears, clear the Downloaded Program Files check box in the Files to delete list box, and then select OK.
  4. Start Task Scheduler.
  5. In the left pane of the Task Scheduler window in the Task Scheduler Library, select Microsoft > Windows > DiskCleanup.
  6. When the SilentCleanup task is displayed in the middle of the screen, right-click it, and then select Properties.
  7. In the Properties screen, select the Actions tab, and then click Edit.
  8. In the Add arguments field, specify the cleanup setting that you prepared in step 1 in the following format, and then OK:

    /autoclean /sagerun:2 /d %systemdrive%

    Note /sagerun is an option to use the specified setting number ("2" in this example), and to run cleanmgr. Run the cleanup process on the folder that is set to the storage number that is specified for sagerun.
     

Stop SilentCleanup

  1. Open a Command Prompt window as an administrator.
  2. Run the following command to disable the SilentCleanup task:

    schtasks.exe /change /TN “\Microsoft\Windows\DiskCleanup\SilentCleanup” /Disable

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


Keywords: kbbug, kbsurveynew, kbexpertiseadvanced

↑ Back to the top

Article Info
Article ID : 4015218
Revision : 23
Created on : 1/11/2018
Published on : 1/12/2018
Exists online : False
Views : 163