Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

在 Windows 8.1 RTM 中刪除虛擬智慧卡帳戶:批次腳本 deleteVSC.cmd

編輯:Win8 系統應用技巧

提供刪除 Windows 8.1 RTM 中虛擬智慧卡(VSC)帳戶的批次腳本 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

將上述內容存為 deleteVSC.cmd 以系統管理員身分執行,可批次移除虛擬智慧卡讀卡機實例與相關憑證,適用於測試環境清理或重新部署前準備。

Copyright © Windows教程網 All Rights Reserved