I am trying to connect to a remote computer and determine if updates for Windows will be installed using C # and WUApiLib. It seems pretty simple, however, I canβt find out how to connect to the remote computer.
http://msdn.microsoft.com/en-us/library/aa387288(v=VS.85).aspx identifies what can be used remotely, with a few exceptions that do not bother me, but there seems to be no documentation on that how to actually connect. I tried to pass the name of the computer, but that didn't work either (passing the name containing the gibberish is βsuccessfulβ, just like passing nothing, and it leads to the same calculations, so I assume the line is not used.)
var updateSession = new UpdateSession(dependencies.ComputerName); var searcher = updateSession.CreateUpdateSearcher(); var results = searcher.Search("IsInstalled=0 and Type='Software'");
Does anyone know who uses WUA remotely through C #?
source share