Olaf Engelke
Member
- Jan 13, 2024
- 22
This is a short guide how I created my own sfcfix.zip file, in this case it was for missing catalog files.
I copied the (for this posting shortened) list into a new file packages.txt
(p) CBS Catalog Missing Package_1436_for_KB5032197~31bf3856ad364e35~amd64~~10.0.1.9
(p) CBS Catalog Missing Package_1441_for_KB5032197~31bf3856ad364e35~amd64~~10.0.1.9
(p) CBS Catalog Missing Package_1442_for_KB5032197~31bf3856ad364e35~amd64~~10.0.1.9
Replaced all characters before package with nothing in Notepad, so the content looked like
Package_1436_for_KB5032197~31bf3856ad364e35~amd64~~10.0.1.9
Package_1441_for_KB5032197~31bf3856ad364e35~amd64~~10.0.1.9
Package_1442_for_KB5032197~31bf3856ad364e35~amd64~~10.0.1.9
This file I put into C:\Skript on the system which still has the files (package name + the extensions .mum and .cat) under C:\Windows\servicing\packages.
I also added a folder Packages to the script folder.
After doing so I executed a PowerShell script with following content:
This copied the relevant files into the folder C:\Skript\Packages.
I zipped the entire folder, verified, that Packages is a subfolder in the zip file and added the SFCFix.txt from one of the examples pointing to packages folder to the root of the zip file. (There are various incarnations, the correct target selection in the file will depend from which components are faulty.)
Downloaded the exe file, copied it together with the self created zip file to the desktop of the faulty server and followed the instructions given in the other topics (drag & drop).
Worked well, dism at least was happy afterwards.
Best greetings from Germany
Olaf
I copied the (for this posting shortened) list into a new file packages.txt
(p) CBS Catalog Missing Package_1436_for_KB5032197~31bf3856ad364e35~amd64~~10.0.1.9
(p) CBS Catalog Missing Package_1441_for_KB5032197~31bf3856ad364e35~amd64~~10.0.1.9
(p) CBS Catalog Missing Package_1442_for_KB5032197~31bf3856ad364e35~amd64~~10.0.1.9
Replaced all characters before package with nothing in Notepad, so the content looked like
Package_1436_for_KB5032197~31bf3856ad364e35~amd64~~10.0.1.9
Package_1441_for_KB5032197~31bf3856ad364e35~amd64~~10.0.1.9
Package_1442_for_KB5032197~31bf3856ad364e35~amd64~~10.0.1.9
This file I put into C:\Skript on the system which still has the files (package name + the extensions .mum and .cat) under C:\Windows\servicing\packages.
I also added a folder Packages to the script folder.
After doing so I executed a PowerShell script with following content:
Code:
$packages = get-content "C:\Skript\packages.txt"
$source = "C:\Windows\servicing\Packages"
$target = "C:\Skript\Packages\"
foreach ($package in $packages) {
$files = gci $source\$package.*
Copy-Item $files $target
}
This copied the relevant files into the folder C:\Skript\Packages.
I zipped the entire folder, verified, that Packages is a subfolder in the zip file and added the SFCFix.txt from one of the examples pointing to packages folder to the root of the zip file. (There are various incarnations, the correct target selection in the file will depend from which components are faulty.)
Downloaded the exe file, copied it together with the self created zip file to the desktop of the faulty server and followed the instructions given in the other topics (drag & drop).
Worked well, dism at least was happy afterwards.
Best greetings from Germany
Olaf