New
#21
1 GB !
1 GB !
A week ago, I deleted the LCU folder. It had a size of 1GB and a few thousand files and folders.
There's been no problem.
After November's CU I had permission issues when trying to delete the contents of the LCU folder.
I ended up mirroring an empty folder with Robocopy to the LCU folder by saving and running the following script from an Admin Powershell Window. This was also much faster than deleting the contents through Explorer
Code:$LCUPath = 'C:\Windows\servicing\LCU\' $EmptyFolder = 'C:\Temp\empty' if (-not (Test-Path -Path $EmptyFolder)) { mkdir $EmptyFolder } $null = robocopy $EmptyFolder $LCUPath /MIR /R:5 /W:1
Last edited by QuantumX; 16 Nov 2021 at 04:04.
2 weeks old ya but... You should add Take Ownership to your right click option.
It`s a simple regedit.
Add Take Ownership to Context Menu in Windows 10 | Tutorials (tenforums.com)
You shouldn't need to, the Administrators group has always had Full control permission for LCU in Windows 10. Now in Windows 11 MS have reduced that read permission for administrators, I suppose its possible they may have brought W10 in line with the latest update.
Anyway, ownership of LCU is best left with TrustedInstaller. So if you have permissions issues deleting anything in LCU, then take ownership, grant the Administrators group Full control, then return ownership to NT Service\TrustedInstaller. I have done this on all my W11 machines and can now delete anything that appears in LCU.
The script uses a common trick:- to RoboCopy [to mirror] the contents of an empty folder into the desired location so that it is emptied.
- It has the effect of deleting all contents but does not use any delete command.
- RoboCopy is a built-in Windows command
You can also reduce the size of the LCU folder by simply running Disk cleanup. That's all I ever do.
Open and Use Disk Cleanup - TenForumsTutorials
Denis