0x80f001f error appears due to a corrupt system image. DISM tool can easily fix a corrupt system image, besides the many other handy tasks it can perform. It’s command-lines replace image components with source files from Windows installation media.