Fix The smart card cannot perform the requested operation
On the affected computer, run the batch file with admin privilege (right-click the saved file and select Run as Administrator from the context menu). After the script executes, restart your PC. The PIV smart card driver issue should be resolved. That’s it!