@Winter
I noticed that you issue SETACL commands for each file/folder before removal.
But! how about giving the Administrators group FULL access to the WinSXS folder, before removal
Then remove components as required.
Afterwards, restore the Administrators group access to READ_EX
Also, the files in the WinSXS\Backup and WinSXS\Manifest folders INHERIT their access settings from the folder setting. So this command...
means I can delete any file in that folder without needing to change the permissions on every file!
Then, to restore the setting back as it was, use the command as before...
Surely that would speed up the removal process??
Try it.
I noticed that you issue SETACL commands for each file/folder before removal.
But! how about giving the Administrators group FULL access to the WinSXS folder, before removal
Code:
SetACL.exe -on D:\Winreducer\.....\Windows\WinSxS -ot file -actn ace -ace "n:S-1-5-32-544;p:full" -rec cont_obj -silent
Then remove components as required.
Afterwards, restore the Administrators group access to READ_EX
Code:
SetACL.exe -on D:\Winreducer\.....\Windows\WinSxS -ot file -actn ace -ace "n:S-1-5-32-544;p:read_ex" -rec cont_obj -silent
Also, the files in the WinSXS\Backup and WinSXS\Manifest folders INHERIT their access settings from the folder setting. So this command...
Code:
SetACL.exe -on D:\Winreducer\.....\Windows\WinSxS\Backup -ot file -actn ace -ace "n:S-1-5-32-544;p:full" -silent
means I can delete any file in that folder without needing to change the permissions on every file!
Then, to restore the setting back as it was, use the command as before...
Code:
SetACL.exe -on D:\Winreducer\.....\Windows\WinSxS\Backup -ot file -actn ace -ace "n:S-1-5-32-544;p:read_ex" -silent
Surely that would speed up the removal process??
Try it.