Hello All!
How can I use C# to check for Windows Updates? I work for a small college and I'm in the process of trying to write a program to assist the students for getting on our network. We have a few requirements (such as all Windows Updates installed) that they must meet before a student can register their computer on our network. This application will assist them with that and our other requirements, but I can't figure out how to check for updates and simply prompt the student that they need to install the updates before they can continue.
Any help, guidance would be appreciated. Thanks!
Checking Windows Updates
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Scott LysleRank #49 · 31K reputationPosted Apr 1, 2007, 6:20 PM EDT
System.Diagnostics.
Process.Start(System.Environment.GetEnvironmentVariable("windir").ToString() +
@"\system32\rundll32.exe",
@"C:\WINDOWS\system32\muweb.dll, LaunchMUSite");
This will fire off the updater website; it does not guarantee that your users will actually update anything.