1
0
mirror of synced 2025-02-15 02:02:38 +01:00

13 lines
679 B
PowerShell
Raw Normal View History

2023-02-26 00:10:53 +08:00
param (
[switch]$WhatIf = $false
)
$certsInMy = Get-ChildItem Cert:\LocalMachine\My
$certsInMy | Where-Object {$_.Issuer -match "Taito Arcade Machine CA"} | Remove-Item -WhatIf:$WhatIf
$certsInRoot = Get-ChildItem Cert:\LocalMachine\Root
$certsInRoot | Where-Object {$_.Issuer -match "Taito Arcade Machine CA"} | Remove-Item -WhatIf:$WhatIf
Get-ChildItem -Path root.pfx | Import-PfxCertificate -CertStoreLocation Cert:\LocalMachine\My -WhatIf:$WhatIf
Get-ChildItem -Path cert.pfx | Import-PfxCertificate -CertStoreLocation Cert:\LocalMachine\My -WhatIf:$WhatIf
Get-ChildItem -Path root.pfx | Import-PfxCertificate -CertStoreLocation Cert:\LocalMachine\Root -WhatIf:$WhatIf