# POWERSHELL批量导出
Get-ChildItem -Path Cert:\LocalMachine\Root\ |ForEach-Object {Export-Certificate -Cert $_ -FilePath ($env:USERPROFILE + "\Desktop\新建文件夹\ROOT\" + $_.Thumbprint + ".cer")}

# POWERSHELL批量导入
Get-ChildItem -Path ($env:USERPROFILE + "\Desktop\新建文件夹\ROOT\") |Import-Certificate -CertStoreLocation cert:\CurrentUser\Root

 

rem 命令行批量导入

@echo off
cd /d %~dp0
for /f "tokens=*" %%G in ('dir *.crt /b ') do Certutil -f -addstore Root %%G

 

posted on 2019-04-14 08:52  waxwork3  阅读(2394)  评论(0编辑  收藏  举报