c# - check Windows Update is Turn ON or OFF -
this question has answer here:
- check .net if windows update enabled 6 answers
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
Post a Comment