- Create a VirtualBox VM or download a pre-made VM by microsoft (note it will include a few extra certs for code signing and visual studio)
- Install Windows 10 here is a wrapper that uses the official Windows 10 Media Creation Tool, but it will include enterprise releases and serials pre-activating your ISO
- Load mmc.msc
- Add certificates snap-in
- Choose "computer"
- Note the certificates listed
- Export what you are missing and copy them to your main PC
You may also delete every cert on your primary PC that you don't see in Windows 10 VM to reduce attack surface. Just be sure to back them up in case of future issues. I never had any issue.
This worked better for me than any other method listed above, as I had a lot of illegitimate and distrusted certs in my trusted certificate list thanks to the Rootsupd.exe utility tutorial here. No bad cert detection tool, anti-virus or security software detected them. Thus I removed over 300 Trusted Root certs from my Windows 10 installation and have only 36 left without any issue. I did this because each certificate, even legit ones, add a potential security hazard.
Importing the entire list is not resetting to default, and is a potential security hazard, however if you want to import the entire list as suggested by the MOD here, over 400 certs, download the list from windows update:
In Powershell/CMD Run certutil.exe -generateSSTFromWU roots.sst
Then In Powershell:
$sstStore = ( Get-ChildItem -Path C:\ps\rootsupd\roots.sst )
$sstStore | Import-Certificate -CertStoreLocation Cert:\LocalMachine\Root
Or
Import certs from Windows Update using just powershell:
certutil.exe -generateSSTFromWU roots.sst
$sst = ( Get-ChildItem -Path C:\certs\roots.sst )
$sst = ( Get-ChildItem roots.sst )
$sst| Import-Certificate -CertStoreLocation Cert:\LocalMachine\Root