需清除 TPM 虛擬智慧卡讀卡機與憑證時,可使用以下批次指令碼 deleteVSC.cmd 一鍵完成:
@echo off
echo Deleting existing virtual smart cards and readers...
tpmvscmgr destroy /instance rootsmartcardreader000 >NUL 2>NUL
tpmvscmgr destroy /instance rootsmartcardreader001 >NUL 2>NUL
tpmvscmgr destroy /instance rootsmartcardreader002 >NUL 2>NUL
tpmvscmgr destroy /instance rootsmartcardreader003 >NUL 2>NUL
tpmvscmgr destroy /instance rootsmartcardreader004 >NUL 2>NUL
tpmvscmgr destroy /instance rootsmartcardreader005 >NUL 2>NUL
tpmvscmgr destroy /instance rootsmartcardreader006 >NUL 2>NUL
tpmvscmgr destroy /instance rootsmartcardreader007 >NUL 2>NUL
echo Deleting existing virtual smart card certificates...
certutil -delstore -user My "Pilot - MSIT vSmartcard - DA" >NUL 2>NUL
certutil -delstore -user My "MSIT Virtual Smart Card" >NUL 2>NUL
以系統管理員身分執行即可批次移除所有虛擬智慧卡實例與使用者憑證存儲。