Please don't remove info which is replied to, now people can't see what was going on and maybe learn from the info and the reply.
Yes I understand to help others, I remodified my post with image and thank you for the little gif to have it copied correctly for next time
How can we with the script when my target is an ISO, automatically delete the "manifest" folder in the "source" folder of the ISO, and the "inetpub" folder in the .wim ?
WU seems to have a vulnerability if this directory does not exist. A true fix probably requires quite an amount of effort, so, they went the way of least resistance by simply creating the directory, thus avoiding the vulnerability to apply in the first place. In other words, the inetpub directory itself is a security fix by its very existence, and by removing it you reinstate the security vulnerability it's meant to patch.