Windows 11 creates a lot of empty folders!

Discussion in 'Windows 11' started by verndog, Nov 10, 2021.

  1. verndog

    verndog MDL Member

    May 3, 2010
    156
    66
    10
  2. cowbawx

    cowbawx MDL Junior Member

    Aug 13, 2009
    56
    20
    0
    Windows 10 does this too. Nothing new.
     
  3. kaljukass

    kaljukass MDL Guru

    Nov 26, 2012
    2,581
    941
    90
    A very old story, everyone should know about it for more than a year. Besides, there are only 0 badised "folders", which means that there have actually been some temporary folders but now there is nothing. Windows knows this problem also about year or more, but looks like they haven't did still anything. So there's no need to panic, just delete these non-existing folders from there and that's all you can do.
    Their total usable space = 0 even if you see thousands images of folder. And even if You won't delete them, nothing bad happens.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. pisthai

    pisthai Imperfect Human

    Jul 29, 2009
    7,175
    2,238
    240
    @kaljukass:

    you're right to some extent! But this 0Byte Folder's still reserving some space in the used Storage as well as in the FAT! They may also have some effects on the indexing of the storage drive.

    I would simply delete them!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. zen45

    zen45 MDL Addicted

    Feb 25, 2010
    826
    2,075
    30
    Thanks found both 10-11 had a ton of these and i deleted all of them no problems thanks again
     
  6. pf100

    pf100 Duct Tape Coder

    Oct 22, 2010
    2,058
    3,344
    90
    I just checked and had 2,020 empty folders. Two thousand twenty.
     
  7. (\_/)^(\_/)

    (\_/)^(\_/) MDL Member

    May 31, 2020
    1,535
    1,292
    60
    This script is what i used for cleanups created by myself Not Suggested to users Who dont know what they are doing :

    Code:
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%WinDir%\AppReadiness' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%WinDir%\appcompat\appraiser' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%WinDir%\appcompat\encapsulation' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%WinDir%\CbsTemp' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%Windir%\Containers' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%WinDir%\DiagTrack' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%WinDir%\DigitalLocker' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%WinDir%\Downloaded Program Files' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%WinDir%\GameBarPresenceWriter' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%WinDir%\IdentityCRL' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%Windir%\IME\IMETC' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%Windir%\IME\IMEKR' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%Windir%\IME\IMEJP' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%Windir%\LastGood.Tmp' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%WinDir%\LiveKernelReports' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%WinDir%\Logs\waasmedic' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%WinDir%\ModemLogs' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%WinDir%\Performance' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%WinDir%\Panther' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%WinDir%\Prefetch' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%WinDir%\RemotePackages' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%Windir%\Setup' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%WinDir%\SchCache' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%WinDir%\System32\appraiser' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%WinDir%\System32\Logs' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%WinDir%\SysWOW64\Logs' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%WinDir%\System32\LogFiles' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%WinDir%\SysWOW64\LogFiles' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%Windir%\System32\sru' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%WinDir%\System32\Tasks' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%WinDir%\SysWOW64\Tasks' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%Windir%\System32\WCN' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%Windir%\System32\WDI' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%WinDir%\System32\WinBioDatabase' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%WinDir%\TAPI' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%WinDir%\tracing' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%AppData%\Microsoft\Credentials' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%AppData%\Microsoft\Internet Explorer\Quick Launch\User Pinned' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%AppData%\Microsoft\Vault' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%AppData%\Microsoft\Windows\AccountPictures' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%AppData%\Microsoft\Windows\CloudStore' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%AppData%\Microsoft\Windows\Libraries' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%AppData%\Microsoft\Windows\Network Shortcuts' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%AppData%\Microsoft\Windows\Printer Shortcuts' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%AppData%\Microsoft\Windows\Templates' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%AppData%\Microsoft\Windows\Start Menu\Programs\Maintenance' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%AppData%\Microsoft\Windows\Start Menu\Programs\Accessories' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%AppData%\Microsoft\Windows\Start Menu\Programs\Administrative Tools' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%AppData%\Mozilla\Extensions' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%AppData%\Mozilla\Firefox\Crash Reports' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%AppData%\Mozilla\Firefox\Pending Pings' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%AppData%\Mozilla\SystemExtensionsDev' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%UserProfile%\AppData\LocalLow' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%LocalAppData%\Adobe' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%LocalAppData%\ConnectedDevicesPlatform' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%LocalAppData%\Comms' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%LocalAppData%\Coderbag' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%LocalAppData%\D3DSCache' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%LocalAppData%\IconCache.db' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%LocalAppData%\Microsoft\Credentials' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%LocalAppData%\Microsoft\InputPersonalization' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%LocalAppData%\Microsoft\Internet Explorer' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%LocalAppData%\Microsoft\Vault' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%LocalAppData%\Microsoft\WindowsApps' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%LocalAppData%\Microsoft\Windows Sidebar' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%LocalAppData%\Microsoft\Windows\ActionCenterCache' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%LocalAppData%\Microsoft\Windows\Application Shortcuts' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%LocalAppData%\Microsoft\Windows\AppCache' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%LocalAppData%\Microsoft\Windows\Burn' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%LocalAppData%\Microsoft\Windows\Caches' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%LocalAppData%\Microsoft\Windows\CloudStore' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%LocalAppData%\Microsoft\Windows\Fonts' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%LocalAppData%\Microsoft\Windows\GameExplorer' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%LocalAppData%\Microsoft\Windows\History' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%LocalAppData%\Microsoft\Windows\INetCache' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%LocalAppData%\Microsoft\Windows\INetCookies' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%LocalAppData%\Microsoft\Windows\PowerShell' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%LocalAppData%\Microsoft\Windows\Ringtones' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%LocalAppData%\Microsoft\Windows\RoamingTiles' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%LocalAppData%\Microsoft\Windows\SettingSync' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%LocalAppData%\Microsoft\Windows\WER' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%LocalAppData%\Microsoft\Windows\WebCache' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%LocalAppData%\PeerDistRepub' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%LocalAppData%\Programs' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\Intel' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\Microsoft\AppV' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\Microsoft\Diagnosis' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\Microsoft\DiagnosticLogCSP' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\Microsoft\DeviceSync' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\Microsoft\DRM' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\Microsoft\EdgeUpdate' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\Microsoft\Event Viewer' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\Microsoft\IdentityCRL' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\Microsoft\MapData' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\Microsoft\NetFramework' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\Microsoft\Network' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\Microsoft\Provisioning' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\Microsoft\Search' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\Microsoft\Settings' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\Microsoft\SmsRouter' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\Microsoft\Spectrum' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\Microsoft\Speech_OneCore' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\Microsoft\UEV' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\Microsoft\WDF' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\Microsoft\Windows\AppRepository\Families' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\Microsoft\Windows Security Health' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\Microsoft\WinMSIPC' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\Microsoft\WPD' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\Microsoft\WwanSvc' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\Microsoft\Windows Defender' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\Microsoft\Windows Defender Advanced Threat Protection' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\Microsoft\Windows\ClipSVC\Install' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\Microsoft\Windows\ClipSVC\Import' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\Microsoft\Windows\DeviceMetadataCache' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\Microsoft\Windows\DeviceMetadataStore' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\Microsoft\Windows\GameExplorer' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\Microsoft\Windows\LfSvc' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\Microsoft\Windows\OneSettings' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\Microsoft\Windows\PackagedEventProviders' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\Microsoft\Windows\Parental Controls' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\Microsoft\Windows\Power Efficiency Diagnostics' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\Microsoft\Windows\RetailDemo' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\Microsoft\Windows\Ringtones' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\Microsoft\Windows\Templates' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\Microsoft\Windows\WER' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\Microsoft\Windows\wfp' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\Microsoft\Windows\Start Menu\Programs\Maintenance' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\Microsoft\Windows\Start Menu\Programs\Accessibility' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\Mozilla' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\SoftwareDistribution' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\USOShared' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\USOPrivate' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%ProgramData%\WindowsHolographicDevices' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%SystemDrive%\PerfLogs' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%SystemDrive%\Microsoft' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%UserProfile%\3D Objects' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%UserProfile%\Contacts' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%UserProfile%\Documents' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%UserProfile%\Downloads' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%UserProfile%\Favorites' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%UserProfile%\Links' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%UserProfile%\Music' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%UserProfile%\Pictures' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%UserProfile%\Saved Games' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%UserProfile%\Searches' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%UserProfile%\Videos' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%UserProfile%\IntelGraphicsProfiles' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%WinDir%\SoftwareDistribution' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%WinDir%\Logs' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%WinDir%\Temp' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%WinDir%\*.LOG' -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%WinDir%\*.log' -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%WinDir%\*.xml' -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%WinDir%\*.ini' -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%LocalAppData%\*.db' -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%SystemDrive%\DumpStack.log.*' -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%SystemDrive%\$RECYCLE.BIN' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%SystemDrive%\Users\Default\NTUSER.DAT_orig' -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%LocalAppData%\*.db' -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%LocalAppData%\Microsoft\Windows\Notifications\*.tmp' -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%LocalAppData%\Temp' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%LocalAppData%\Microsoft\CLR_v2.0' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%LocalAppData%\Microsoft\CLR_v4.0' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%LocalAppData%\Microsoft\Windows\0' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%LocalAppData%\Microsoft\Windows\1024' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%LocalAppData%\Microsoft\Windows\1033' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%LocalAppData%\Microsoft\Windows\Burn' -Recurse -Force -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-Item '%LocalAppData%\Microsoft\Windows\Caches' -Recurse -Force -EA SilentlyContinue -Verbose"
    
     
  8. pf100

    pf100 Duct Tape Coder

    Oct 22, 2010
    2,058
    3,344
    90
    #8 pf100, Nov 15, 2021
    Last edited: Nov 15, 2021
    These tmp folders continue to be created after deleting them so:
    To delete these temp folders at login save this file as "DelLocalTmpFiles.cmd" and put it in the "%programdata%\Microsoft\Windows\Start Menu\Programs\Startup" folder
    Code:
    @echo off
    takeown /F "%systemroot%\System32\config\systemprofile\AppData\Local" > nul
    cd %systemroot%\System32\config\systemprofile\AppData\Local
    for /d /r %%i in (*.tmp) do rmdir /s /q "%%i"
     
  9. Mr.X

    Mr.X MDL Guru

    Jul 14, 2013
    8,073
    15,257
    270
    :D are you serious?
    Why would Windows want or need to recreate those apparently useless folders?
     
  10. Xtreme21

    Xtreme21 MDL Addicted

    Jun 21, 2021
    688
    999
    30
    #10 Xtreme21, Nov 15, 2021
    Last edited: Nov 15, 2021
  11. maddogster

    maddogster MDL Senior Member

    Mar 23, 2015
    280
    96
    10
    did anybody experience in win 10 and maybe 11 when download zipped/rar files to a folder on c drive and then finding same file in windows system32 folder?
     
  12. (\_/)^(\_/)

    (\_/)^(\_/) MDL Member

    May 31, 2020
    1,535
    1,292
    60
    #12 (\_/)^(\_/), Nov 16, 2021
    Last edited: Nov 16, 2021
    no i havent but if you have enabled system restore points then it will create a new rp everytime whenever you do any activity on your OS in form of logs which is hidden there at your OS drive root & those srps are sent to M$ in form of logs via there hidden pwsh script somewhere in programdata directory but if you have removed those pwsh hidden scripts then same copy of pwsh scripts hidden inside system32 comes into action.

    hence theres a lot of workarround to be done in w10 or w11 after fresh install & everytime a new LCU is installed.

    But but
    only single if anybody can remove msft ncsi router connection which is used to transfer all user activities to m$ then theres no any need to do anything else but unfortunately after that tweak is done theres no any network connectivity on OS in any way cuz we have to tweak dhcp / dns service params plus its triggers for this to work hence result is no connectivity.

    Edit : i know somebody who has done this in a Splendous way which cant be exposed online in any scenario. remain secret & get benefits of a pure perfect private w1o oS cuz w11 itself is a joke to w10 plus a total c***p.
    I know many people will report this to staff so as to get my comment removed from MDL.
     
  13. spanishfly

    spanishfly MDL Senior Member

    Dec 5, 2018
    283
    418
    10
    I don't know if this is useful information, but I just checked and the extra folder issue is *not* in my 1809 Education Build 17763 that I'm getting ready to update. Nor does it exists in my even older 1607 LTSB Build 14393.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. (\_/)^(\_/)

    (\_/)^(\_/) MDL Member

    May 31, 2020
    1,535
    1,292
    60
    Cross Check Most important Directories to be noticed :

    '%LocalAppData%\Microsoft\Windows\INetCache'
    '%LocalAppData%\Microsoft\Windows\INetCookies'
    '%LocalAppData%\Microsoft\Windows\WebCache'
    '%ProgramData%\Microsoft\Windows\DeviceMetadataCache'
    '%ProgramData%\Microsoft\Windows\DeviceMetadataStore'
    '%ProgramData%\USOShared'
    '%ProgramData%\USOPrivate'
    '%LocalAppData%\Microsoft\Windows\Caches'
     
  15. TairikuOkami

    TairikuOkami MDL Expert

    Mar 15, 2014
    1,080
    962
    60
    Not once you disable the responsible task.
    Code:
    schtasks /Change /TN "Microsoft\Windows\Management\Provisioning\Logon" /Disable
     
  16. (\_/)^(\_/)

    (\_/)^(\_/) MDL Member

    May 31, 2020
    1,535
    1,292
    60
    Absolutely Correct as per my consern.
     
  17. pf100

    pf100 Duct Tape Coder

    Oct 22, 2010
    2,058
    3,344
    90
    #17 pf100, Nov 16, 2021
    Last edited: Nov 16, 2021
    Some are also disabling "Microsoft\Windows\Management\Provisioning\Cellular" along with "Microsoft\Windows\Management\Provisioning\Logon" because they both run provtool.exe which appears to be responsible and it seems that cumulative updates reenables those tasks. I don't know what, if any, consequences there are of disabling them, but I disabled both of them while also leaving DelLocalTmpFiles.cmd in the startup folder. It should run very quickly since it has nothing to do until the next CU gives it something to do. To be honest I have no idea what I'm doing, I just like to kill things that Windows does that annoys me.
    To give people like me something to do?