Notices: This section not yet converted to new layout. Download stats are rolling back out.



Package test results are passing.

Private CDN cached downloads available for licensed customers. Never experience 404 breakages again! Learn more...

This package was approved as a trusted package on 5/30/2019.

UltraDefrag is an open source disk defragmenter for Windows. It eliminates the file fragmentation problem speeding up the computers which need less mechanical work to read continuous data from disks. UltraDefrag can fix almost everything including files which are usually locked - it launches inside of the Windows boot process when most of the files are still not in use.


  • simple but efficient defragmentation algorithms
  • safe environment preventing files corruption
  • defragmentation of locked paging and hibernation files
  • defragmentation of NTFS metafiles (including MFT) and streams
  • flexible filters allowing exclusion of files by various criteria
  • defragmentation of disks having specified fragmentation level
  • one click defragmentation via Windows Explorer context menu
  • multilingual graphical interface (over 60 languages available)
  • powerful command line interface
  • scheduled defragmentation (using Windows Task Scheduler)
  • automatic termination when specified time interval elapses
  • automatic hibernation or shutdown after the job completion
  • small size of installers (about 2 MB)
  • availability of portable packages requiring no installation
  • full support of 64-bit editions of Windows
  • granted permission to freely use and redistribute the program

Package Parameters

Example: choco install ultradefrag --params "/NoShellExtension /NoBootInterface"

To install UltraDefrag, run the following command from the command line or from PowerShell:

C:\> choco install ultradefrag

To upgrade UltraDefrag, run the following command from the command line or from PowerShell:

C:\> choco upgrade ultradefrag


  • tools\chocolateyInstall.ps1 Show
    $ErrorActionPreference = 'Stop'
    $pp = Get-PackageParameters
    $silentArgs = '/S /FULL=1'
    $silentArgs += if ($pp.NoShellExtension)     { " /SHELLEXTENSION=0"; Write-Host 'Shell extension disabled' }
    $silentArgs += if ($pp.DisableUsageTracking) { " /DISABLE_USAGE_TRACKING=1"; Write-Host 'Usage tracking disabled'}
    $silentArgs += if ($pp.NoBootInterface)      { " /BOOT=0"; Write-Host 'Boot interface disabled'}
    $packageArgs = @{
      packageName    = 'ultradefrag'
      fileType       = ''
      url            = ''
      url64bit       = ''
      checksum       = 'b73a848214a4d527b2d17054e134ed3732c082cee8cd90bd888973eff54ea953'
      checksum64     = '6f9a0200c75d432af0f8a3585e5ad9aa6e41dbadeb29a365d7033d66770fbc48'
      checksumType   = 'sha256'
      checksumType64 = 'sha256'
      silentArgs     = $silentArgs
      validExitCodes = @(0)
      softwareName   = 'Ultra Defragmenter'
    Install-ChocolateyPackage @packageArgs
  • tools\chocolateyUninstall.ps1 Show
    $ErrorActionPreference = 'Stop'
    $packageName         = 'ultradefrag'
    $softwareNamePattern = 'Ultra Defragmenter'
    [array] $key = Get-UninstallRegistryKey $softwareNamePattern
    if ($key.Count -eq 1) {
        $key | ForEach-Object {
            $packageArgs = @{
                packageName            = $packageName
                silentArgs             = "/x86=0 /S"
                fileType               = 'EXE'
                validExitCodes         = @(0)
                file                   = ''
            $packageArgs.file = "$($_.UninstallString.Replace(' /x86=0', ''))"   #"C:\Program Files\OpenSSH\uninstall.exe" /x86=0
            Uninstall-ChocolateyPackage @packageArgs
    elseif ($key.Count -eq 0) {
        Write-Warning "$packageName has already been uninstalled by other means."
    elseif ($key.Count -gt 1) {
        Write-Warning "$key.Count matches found!"
        Write-Warning "To prevent accidental data loss, no programs will be uninstalled."
        Write-Warning "Please alert package maintainer the following keys were matched:"
        $key | ForEach-Object {Write-Warning "- $_.DisplayName"}

Virus Scan Results

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.


Package Maintainer(s)

Software Author(s)

  • Dmitri Arkhangelski et al.


UltraDefrag Development Team


Version History

Version Downloads Last updated Status
UltraDefrag 7.0.2 7027 Saturday, December 17, 2016 approved
UltraDefrag 384 Wednesday, December 7, 2016 approved
UltraDefrag 349 Friday, December 2, 2016 approved
UltraDefrag 534 Tuesday, November 15, 2016 approved
UltraDefrag 7.0.1 300 Sunday, November 13, 2016 approved
UltraDefrag 7.0.0-beta2 457 Saturday, February 21, 2015 exempted
UltraDefrag 7.0.0-beta1 351 Monday, August 26, 2013  
UltraDefrag 6.1.1 1505 Friday, November 20, 2015 approved
Show More

Discussion for the UltraDefrag Package

Ground rules:

  • This discussion is only about UltraDefrag and the UltraDefrag package. If you have feedback for Chocolatey, please contact the google group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or UltraDefrag, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.

comments powered by Disqus uses cookies to enhance the user experience of the site.