Short answer

winget is part of Microsoft's App Installer, which Windows 11 and current Windows 10 already include. Open PowerShell and run winget --version. If Windows says the command is not recognized, install or update App Installer from the Microsoft Store, open a new terminal, and then install WinDirStat with winget install -e --id WinDirStat.WinDirStat.

Official windirstat.net homepage with a Downloads button, feature cards naming the interactive treemap, and the product screenshot of the disk usage treemap below.
The official WinDirStat site, windirstat.net, captured 2026-09-02, with its Downloads button and product screenshot. Screenshot: windirstat.net, WinDirStat Team.

How do I get winget and install WinDirStat with it?

  1. Open PowerShell. Right-click Start and choose Terminal, or search Start for PowerShell.
  2. Check for winget. Run winget --version. A version number means winget is ready.
  3. Install App Installer if it is missing. Open the App Installer page in the Microsoft Store and click Get or Update.
  4. Open a new terminal. Close the old window so Windows finds the new command, then run winget --version again.
  5. Install WinDirStat. Paste the WinDirStat command below and approve the User Account Control prompt.

Where does winget come from?

winget is the command-line tool of the Windows Package Manager, and Microsoft ships it inside App Installer, the same Store app that installs .msix packages. Windows 11 and supported Windows 10 builds include App Installer, and the Store keeps it updated in the background, so most PCs already have winget without anyone installing it. Microsoft's winget documentation lists the supported Windows versions and every command.

What is the WinDirStat command once winget works?

The package id is WinDirStat.WinDirStat, the same id the WinDirStat README gives, published in Microsoft's public winget-pkgs repository with WinDirStat Team as the publisher. The version below adds two flags that answer winget's agreement questions in advance, so the command runs to the end without waiting for you:

winget install -e --id WinDirStat.WinDirStat --accept-source-agreements --accept-package-agreements

Press Win+R, paste with Ctrl+V, press Enter. A window opens, installs and closes; then open the app from Start. The winget guide for WinDirStat covers what the package installs and how to upgrade or remove it later.

Why use winget for a disk space analyzer?

A disk space analyzer is a tool you run a few times a year, which makes it easy to forget to update. With winget, one command, winget upgrade --all, updates WinDirStat together with every other program winget manages. It also removes the download page from the process, so there is no wrong button to click on a site that copies the WinDirStat name. The WinDirStat README recommends a package manager because it makes updates easier, and its malware warning explains the second risk.

What if the Microsoft Store is blocked?

On a work PC, the Store and winget are often switched off by policy. That is a decision for your IT team, so ask them for the approved way to get WinDirStat rather than downloading App Installer from another site. If you may run programs but not install them, the portable zip from the GitHub releases needs neither the Store nor winget; the portable guide covers that route.

winget problems and fixes
What you seeLikely causeFix
winget is not recognizedApp Installer missing or too oldInstall or update App Installer from the Microsoft Store
Still not recognized after installingThe terminal was open before the installClose it and open a new terminal
A question about source agreementsFirst use of a winget sourceType Y, or add --accept-source-agreements
No package found matching input criteriaMistyped id or an outdated sourceCheck the id is exactly WinDirStat.WinDirStat; run winget source update
Installer hash does not matchDownload damaged or changedRun the command again; never add flags that skip the hash check
Store blocked by your organizationPolicy on a managed PCAsk IT, or use the portable WinDirStat zip if allowed

Commands and behavior from Microsoft's winget documentation.

Frequently asked questions

Is winget safe to use?

Yes. winget is Microsoft's own package manager, shipped in App Installer. Each package manifest records where the installer is downloaded from and its SHA-256, and winget refuses to run a file whose hash does not match.

Can I install WinDirStat without winget?

Yes. Download WinDirStat-x64.msi from the GitHub release and run it, install it from the Microsoft Store, or unpack the portable zip. The installed program is the same; winget only automates the download, the hash check and the silent setup.