Downloads of v 7.1.1:


Last Update:


Package Maintainer(s):

Software Author(s):

  • Dmitri Arkhangelski et al.


file-system foss disk defragment defragmenter ntfs registry files admin


This is not the latest version of UltraDefrag available.

7.1.1 | Updated: 10/13/2018



Downloads of v 7.1.1:



Software Author(s):

  • Dmitri Arkhangelski et al.

UltraDefrag 7.1.1

This is not the latest version of UltraDefrag available.

All Checks are Passing

2 Passing Test

Validation Testing Passed

Verification Testing Passed


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


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


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


NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to

4. Choose your deployment method:

choco upgrade ultradefrag -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:

choco upgrade ultradefrag -y --source="'STEP 3 URL'" 

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0

Exit $exitCode

- name: Ensure ultradefrag installed
    name: ultradefrag
    state: present
    version: 7.1.1
    source: STEP 3 URL

See docs at

Coming early 2020! Central Managment Reporting available now! More information...

chocolatey_package 'ultradefrag' do
  action    :install
  version  '7.1.1'
  source   'STEP 3 URL'

See docs at

    Name: ultradefrag,
    Version: 7.1.1,
    Source: STEP 3 URL

Requires Otter Chocolatey Extension. See docs at

cChocoPackageInstaller ultradefrag
   Name     = 'ultradefrag'
   Ensure   = 'Present'
   Version  = '7.1.1'
   Source   = 'STEP 3 URL'

Requires cChoco DSC Resource. See docs at

package { 'ultradefrag':
  provider => 'chocolatey',
  ensure   => '7.1.1',
  source   => 'STEP 3 URL',

Requires Puppet Chocolatey Provider module. See docs at

salt '*' chocolatey.install ultradefrag version="7.1.1" source="STEP 3 URL"

See docs at

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

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

This package was approved as a trusted package on 6/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"

$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
$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"}

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.

Version Downloads Last Updated Status
UltraDefrag 7.1.2 1798 Monday, July 1, 2019 Approved
UltraDefrag 7.1.1 27636 Saturday, October 13, 2018 Approved
UltraDefrag 7.0.2 7144 Saturday, December 17, 2016 Approved
UltraDefrag 397 Wednesday, December 7, 2016 Approved
UltraDefrag 367 Friday, December 2, 2016 Approved
UltraDefrag 551 Tuesday, November 15, 2016 Approved
UltraDefrag 7.0.1 314 Sunday, November 13, 2016 Approved
UltraDefrag 7.0.0-beta2 477 Saturday, February 21, 2015 Exempted
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