标签: python windows
有人知道一般如何在Windows上以及在Windows Server 2008 R2上是否有任何特定方法来卸载补丁?
答案 0 :(得分:1)
只需使用wusa模块运行subprocess:
wusa
subprocess
import subprocess for update in ['2982791', '2988227', '1337567']: subprocess.run(['wusa', '/uninstall', '/kb:' + update, '/quiet'])