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

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -