c# - check Windows Update is Turn ON or OFF -


this question has answer here:

how know if update on opearting system turned on or off ? possible know wmi ?

thanks in advance

wuapilib.automaticupdatesclass wauc = new wuapilib.automaticupdatesclass(); bool active = wauc.serviceenabled; 

based on active variable know if windows update turned on or off.

note: need wuapi.dll reference code work.


Comments

Popular posts from this blog

java - Incorrect order of records in M-M relationship in hibernate -

command line - Use qwinsta in PowerShell ISE -

php - I want to create a website for polls/survey like this http://www.poll-maker.com/ -