上網找到方法
-----
# This will delete declined updates in a WSUS server.
# It can be done in less lines, however there is a chance in poorly maintained WSUS servers of an SQL timeout.
# Doing it in this way allows even partial runs to remove some data, so subsequent runs have more chance of succeeding.