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

Windows 8.1 RTM 刪除虛擬智慧卡帳戶:PowerShell 批次腳本

編輯:Windows 8 系統介紹

需清除 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

以系統管理員身分執行即可批次移除所有虛擬智慧卡實例與使用者憑證存儲。

Copyright © Windows教程網 All Rights Reserved