Use C# to interact with Windows Update

前端 未结 4 1067
南方客
南方客 2020-12-03 03:49

Is there any API for writing a C# program that could interface with Windows update, and use it to selectively install certain updates?

I\'m thinking somewhere along

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-03 03:53

    The easiest way to do what you want is using WSUS. It's free and basically lets you setup your own local windows update server where you decide which updates are "approved" for your computers. Neither the WSUS server nor the clients need to be in a domain, though it makes it easier to configure the clients if they are. If you have different sets of machines that need different sets of updates approved, that's also supported.

    Not only does this accomplish your stated goal, it saves your overall network bandwidth as well by only downloading the updates once from the WSUS server.

提交回复
热议问题