FollowMountPoints and FollowJunctionPoints should remain 0 to avoid infinite recursion on systems with loop mounts.
WinDirStat 2.x is the maintained community fork of the original WinDirStat 1.x.
# Check if WinDirStat is installed(Get-ItemProperty"HKCU:\SOFTWARE\WinDirStat"-ErrorActionSilentlyContinue).PSPath# Disable junction point following (safety for shared/VM drives)Set-ItemProperty-Path"HKCU:\SOFTWARE\WinDirStat"-Name"FollowJunctionPoints"-Value0-TypeDWordSet-ItemProperty-Path"HKCU:\SOFTWARE\WinDirStat"-Name"FollowMountPoints"-Value0-TypeDWord
🗑️ Cleanup
# Remove WinDirStat user preferencesRemove-Item-Path"HKCU:\SOFTWARE\WinDirStat"-Recurse-ErrorActionSilentlyContinue