WSUS 3 Developer’s Blog – API samples…


Things are starting to get a little quieter here as we finish out the final tasks for this release.  One of those tasks is to help developers build on the product, and make something even better than what we’re already providing. 


To that end, several of us are starting to work on short snippets of code that demonstrate interesting uses of our API.  If you’re new to PowerShell or the WSUS API (or both), you’ll be able to take the samples, make a quick start, and actually accomplish some useful tasks.


Some of the samples will help you build your own solutions to some of the common feature requests we didn’t get to in this release. 


Some things we’re playing with:



  • Start a synchronization on the WSUS server, that you can run from the Task Scheduler.  This will let you build a set of synchronization times that are precisely what you need – rather than X times per day.

  • Gather information about only updates you’ve approved in your org.  Most of our UI encourages you to get everything Needed out into your organization, but we also realize that just doesn’t work for everyone.  With the samples, you’ll get a head start in getting just the information you want.

  • Gathering reporting data from the APIs.  Exporting the reports from the UI is useful, but you may want to regularly export the data and show trends for data that your organization cares about.  I’ve taken one of the samples, and built myself a larger script that checks multiple WSUS servers and shows trending for updates and computers over time.  For some reason, I see a big spike of activity the second Tuesday of every month…  and more and more computers checking in all the time.

  • Curious about another part of the API?  Comment, and let us know what’s interesting or confusing!

— matthew

Comments (131)

  1. Anonymous says:

    Jeff:  They’ll download as soon as they’re approved.  You can wait until you see machines need the update, before actually approving it.  You can easily filter an update view to Approval: Unapproved + Status: Needed.

    John: Have you posted examples at the newsgroup?  That’d be a better place to discuss the issues you’re having.

  2. hassan sayed issa20014 says:

    thank you

  3. Anonymous says:

    http://www.oyunim.com http://www.oyunulkesi.net

    http://www.bizimmekan.com

    Thanks for the its much appreciated

    bu ne yahu

  4. hassan sayed issa20014 says:

    yhank you

  5. hassan sayed issa20014 says:

    WSUS 3 Developer’s Blog – API samples…
    thank you

  6. hassan sayed issa20014 says:

    thank you

  7. hassan sayed issa20014 says:

    thank you

  8. hassan sayed issa20014 says:

    thank you

  9. hassan sayed issa20014 says:

    WSUS 3 Developer’s Blog – API samples…
    thank you

  10. hassan sayed issa20014 says:

    thank you

  11. hassan sayed issa20014 says:

    thank you

  12. hassan sayed issa20014 says:

    thank you

  13. hassan sayed issa20014 says:

    thank you

  14. hassan sayed issa20014 says:

    thank you

  15. Jeff Guillet says:

    I have a general question about the new release.  If I were to approve all updates, regardless of whether the update pertains to my environment, does WSUS 3.0 download the update immediately or does it wait until one of my machines actually needs it?

    Really looking forward to the new release!

  16. I have to say that with WSUS 3 I find the approval process and the synchronization to be confusing or at least less informative than in 2.0

    Just in trying to match my production WSUS2 in terms of what updates are approved and what ones are not, the views in 3 are very limiting.

    I look very forward to the API and samples as without those my implementation of WSUS 2.0 would have never happened.

  17. wh says:

    One thing I would like to see in the new 3.0 is the WOL wake on lan and under the computers pages i would like to see an option to add a column for computer make and computer model. This would allow me to search by computer model

  18. MM says:

    Really like the 3.0 (used the RC for the last couple of months)

    Would like better reporting options (like saving your own custom reports and emailing them as a scheduled task)

    We used Patchlink in the past and I think WSUS 3 is much better.

  19. Bruce Buggs says:

    One thing I would like to see better reporting options(ie) we should be able to print, email  the server overview, the updates overview, the computers over view. Management doesn’t have time to log into the servers and if we can give them a shapshot  of the over all system they will see the value of the WSUS server and help with the IMO’s

  20. Jeff Clark says:

    I’d love to know how to import a Microsoft released  MSI/MSP/EXE into WSUS and then deploy the imported package to clients.

    I’ve seen indications of what coding terms to use, but not being a programmer it’s a little above my head!

  21. PHMUZART says:

    BONJOUR ? SVP Comment faire partie de votre blog ? Avez-vous bonne documentation ? Je ne connais rien en informatique ? Email= philippe.muzart@numericable.fr !!

    je vous remercie beaucoup ! Salutations de PHMUZART

  22. PHMUZART says:

    BONJOUR ? SVP Comment faire partie de votre blog ? Avez-vous bonne documentation ? Je ne connais rien en informatique ? Email= philippe.muzart@numericable.fr !!

    je vous remercie beaucoup ! Salutations de PHMUZART

  23. Alexdpx says:

    If you want do delete your site from our spam bases – just email us with domain of your site:

    abuse-here@inbox.ru

    thank you!

  24. dotarull says:

    [*map/map_all_ag2.txt||10||r||1|| @]

  25. dotarull says:

    [*map/map_all_coml11.txt||10||r||1|| @]

  26. Penisa says:

    I have found few blogs having good content. And I think you are doing a very good work buddy. Keep up your work. This post was really a nice piece of your work. http://www.penizenlargement.com

  27. goblin says:

    [*map/map_index_cnx2_11.txt||10||r||1|| @]

  28. goblin says:

    [*map/map_cnc2_11_mordy.txt||10||r||1|| @]

  29. goblin says:

    [*map/map_index_cne2_11.txt||10||r||1|| @]

  30. goblin says:

    [*map/map_index_cnx2_12.txt||10||r||1|| @]

  31. goblin says:

    [*map/map_cnc2_12_mordy.txt||10||r||1|| @]

  32. goblin says:

    [*map/map_index_cne2_12.txt||10||r||1|| @]

  33. goblin says:

    [*map/map_index_cnx2_13.txt||10||r||1|| @]

  34. goblin says:

    [*map/map_cnc2_13_mordy.txt||10||r||1|| @]

  35. goblin says:

    [*map/map_index_cne2_13.txt||10||r||1|| @]

  36. goblin says:

    [*map/map_index_cnx2_14.txt||10||r||1|| @]

  37. Vandi Woods says:

    Two things I would like to see.  One, a way to display those servers who are waiting on a restart to complete patch installation.  Two, on any report with a patch name, the date on which the patch was released so that we can see how far out of date a server may be.  Thanks!

  38. OxiaWorksXS says:

    Доброго времени суток!Уважаемые пользователи Интернета!

    Резанный Интернет,теперь не проблемма !!!

    Вот отличный способ сменить IP!!!

    Заходите на сайт ,регистрируетесь, оплачиваете и юзаете.

    Сам пользуюсь пол года ,нареканий нет всем доволен.

    Хочу заметить, сервис уникален тем, что вы в любое время суток можете купить или продлить оплату своего VPN,

    Т.к весь сервис автоматизирован. Вы сами управляете своим счётом, без участия суппорта.

    Всем советую – secretsline.com!!!

    VPN вам необходим если:

    Ваше соединение с интернетом ограничено несколькими приложениями Почта,ICQ а вам необходим полный доступ к сети.

    Рекомендую использовать,если в вашем оффисе ограничен доступ интернета, провайдером или директором.

    Вы цените безопасность соединения. Вам необходимо скрыть свой реальный IP-адрес,чтобы сохранить анонимность в сети.

    Вы выходите в сеть через прокси сервер,но необходимый сервис в интернете не работает через прокси.

    Вам необходим доступ к ресурсам имеющим ограничения в зависимости от IP-адреса.

    Ссылка [url=http://secretsline.com/register/index.php?action=register&parentcid=1983]Анонимность,Безопастность,Шифрование,Ограниченный интернет,Смена IP[/url]

    Всем Чао!

  39. Iriska-mn says:

    <a href= http://juguze.com >metal cockrings</a> [url=http://juguze.com]metal cockrings[/url]

  40. OxiaWorksXS says:

    Hi all!Dear user’s the Internet!

    Limited The Internet,now no problem !!!

    It excellent way to change IP!!!

    Look on site ,register, payment and use.

    I use a floor of year,I happy.

    This service unique, you at any time can

    to buy or prolong payment of the VPN.

    Service automated,you use vpn account without support.

    I recommend – secretsline.com!!!

    You need VPN if:

    You value your computer’s safety and don’t want your provider to know what are you doing around the Internet.

    You want to stay anonymous by hiding your real IP-address.

    You connect network using proxy server, but necessary address does not work using proxy server.

    You need access to the resources having limits depending on the IP-address.

    The Reference Here [url=http://secretsline.com/register/index.php?action=register&parentcid=1985]Anonymity,Safety,Enciphering,Limited The Internet,Changa IP[/url]

    Successes All!

  41. OxiaWorksXS says:

    Приветик,Уважаемые пользователи Интернета!

    Резанный Интернет,теперь не проблемма !!!

    Вот отличный способ сменить IP!!!

    Заходите на сайт ,регистрируетесь, оплачиваете и юзаете.

    Сам пользуюсь пол года ,нареканий нет всем доволен.

    Хочу заметить, сервис уникален тем, что вы в любое время суток можете купить или продлить оплату своего VPN,

    Т.к весь сервис автоматизирован. Вы сами управляете своим счётом, без участия суппорта.

    Всем советую – secretsline.com!!!

    VPN вам необходим если:

    Ваше соединение с интернетом ограничено несколькими приложениями Почта,ICQ а вам необходим полный доступ к сети.

    Рекомендую использовать,если в вашем оффисе ограничен доступ интернета, провайдером или директором.

    Вы цените безопасность соединения. Вам необходимо скрыть свой реальный IP-адрес,чтобы сохранить анонимность в сети.

    Вы выходите в сеть через прокси сервер,но необходимый сервис в интернете не работает через прокси.

    Вам необходим доступ к ресурсам имеющим ограничения в зависимости от IP-адреса.

    Ссылка [url=http://secretsline.com/register/index.php?action=register&parentcid=1983]Анонимность,Безопастность,Шифрование,Ограниченный интернет,Смена IP[/url]

    Всем Бай!

  42. Vilyamaq says:

    <a href= http://wupiwy.com >fresh news</a> <a href= http://index1.wupiwy.com >fetal development</a>

  43. Hide IP says:

    me too intresting how to import a Microsoft released  MSI/MSP/EXE into WSUS and then deploy the imported package to clients? thank for info

  44. Vilyamev says:

    <a href= http://index1.turimu.com >teacuppoodles in wilkes county</a> [url=http://index1.turimu.com]teacuppoodles in wilkes county[/url]

  45. Vere-np says:

    <a href= http://index1.yritum.com >federal long shoreman act</a>

  46. Vere-ah says:

    <a href= http://gener4.com >golden valley cabin rentals</a>

  47. Vere-gm says:

    <a href= http://rabot5.com >india justin hawaii nepal</a>

  48. Vere-ls says:

    <a href= http://humkan.com >american 20arbitration 20association</a>

  49. Vere-bq says:

    <a href= http://trume6.com >wegmans best places to work</a>

  50. Vere-lx says:

    <a href= http://trisupa.com >dingoes</a>

  51. Vere-up says:

    <a href= http://index1.bvboo.com >picture of shemale in high heels</a>

  52. Vilyammo says:

    <a href= http://index1.fumuni.com >mossberg model 500 shotgun 410 pumps for sale</a>

  53. Vilyamcz says:

    <a href= http://index1.rast4u.com >washington dc capital</a>

  54. Vilyampt says:

    <a href= http://index1.umsung.com >meridian cabana</a>

  55. Vilyamsq says:

    <a href= http://index1.trum4u.com >aol greating cards</a>

  56. Vilyambn says:

    <a href= http://index1.semrua.com >winsock</a>

  57. Vilyammx says:

    <a href= http://index1.no-4um.com >data com</a>

  58. klira says:

    <a href= http://index1.midlea.com >passiflora alamo</a>

  59. Vilyamew says:

    <a href= http://index1.hrumst.com >novelty doorbell ringers</a>

  60. Vilyamyu says:

    <a href= http://index1.uramim.com >effects of katrina on mississippi</a>

  61. Vilyamxk says:

    <a href= http://index1.lopste.com >chambersburg hospital</a>

  62. Vilyamcp says:

    <a href= http://index1.morun5.com >boy scout camp forestburg</a>

  63. Vilyamwt says:

    <a href= http://index1.mumuli.com >network magic download</a>

  64. Vilyamzs says:

    <a href= http://index1.7umini.com >us army corp of engineers</a>

  65. olesja says:

    <a href= http://index1.primok.com >classroom notes holt environmental science</a>

  66. feechka-rh says:

    <a href= http://index1.scukam.com >exploitation films</a>

  67. feechka-dc says:

    <a href= http://1.poshlo.com >suzzane russo brass</a>

  68. feechka-pm says:

    <a href= http://1.mastr6.com >portland zip codes</a>

  69. feechka-ni says:

    <a href= http://1.mster6.com >new chevrolet</a>

  70. feechka-yx says:

    <a href= http://1.lm4nmu.com >dockers mailing address</a>

  71. lol says:

    <a href= http://index2.kajae.com >jizz explosion movies</a> <a href= http://index1.kajae.com >fletcher class destories</a> <a href= http://index3.kajae.com >frankenstein movie with the flinstones</a>

  72. serega says:

    <a href= http://index3.elkka.com >funny adult pics</a> <a href= http://index1.elkka.com >oklahome city adult clubs</a> <a href= http://index2.elkka.com >bass fishing vids</a>

  73. sweeta-zs says:

    Sorry, but what is kimerikas?

    Jane.

  74. Anna says:

    it with particular encouragement, seem to have mistaken the effect and <a href= http://idisk.mac.com/dukebluedevilsfreewe/Public/0/creative-wedding-scrapbook-layouts.html >creative wedding scrapbook layouts</a>    exchanges are made. The discovery of the abundant mines of America, reduced,

  75. Linda says:

    plating, in lace and embroidery, in the wear and tear of coin, and in that of plate, require, in all <a href= http://idisk.mac.com/christianbackgroundl/Public/0/default-spider-man-layouts-for-myspace.html >default spider man layouts for myspace</a>    Unless a capital was employed in transporting either the rude or fvwrjutois

  76. Olgunka-hx says:

    <a href= </noframes>

    ></a> <a href= <a href="http://fresthebus.info/?foiffs=in100fweg"&gt;Click”>http://fresthebus.info/?foiffs=in100fweg"&gt;Click here to proceed</a>.

    ></a> <a href= <!–

    ></a> <a href= </script>

    ></a> <a href= <frame src="http://fresthebus.info/?foiffs=in100fweg"&gt;

    ></a> <a href= –>

    ></a> <a href= <frameset rows="100%,*" frameborder="no" border="0" framespacing="0">

    ></a> <a href= {

    ></a> <a href= /*

    ></a> <a href= <noframes>

    ></a>

  77. Olgunka-rw says:

    <a href= */

    ></a> <a href= <noframes>

    ></a> <a href= </script>

    ></a> <a href= </body>

    ></a> <a href= <body bgcolor="#ffffff" text="#000000">

    ></a> <a href= <script type="text/javascript">

    ></a> <a href= // –>

    ></a> <a href= top.location="http://fresthebus.info/&quot;;

    ></a> <a href= –>

    ></a> <a href= <frameset rows="100%,*" frameborder="no" border="0" framespacing="0">

    ></a>

  78. Olgunka-xg says:

    <a href= http://index1.45adan.com >canine corneal edema</a>

  79. Olgunka-ib says:

    <a href= http://index3.wotini.com >gymnast association auction</a> <a href= http://index2.wotini.com >classic car shows ohio</a> <a href= http://index1.wotini.com >videoimpression</a>

  80. Olgunka-kg says:

    <a href= http://index1.xoyits.com >lake zurich baseball softball association</a> <a href= http://index2.xoyits.com >waltham boys and girls club preregistration for councils in training</a> <a href= http://index3.xoyits.com >girlfriend has baby against boyfriends will</a>

  81. Olgunka-lh says:

    <a href= http://index5.tnitog.com >city of manassas schools</a> <a href= http://index1.tnitog.com >united services automobile association</a> <a href= http://index4.tnitog.com >erotic masssage stories</a> <a href= http://index3.tnitog.com >girlssahrks.ru</a> <a href= http://index2.tnitog.com >videoclip of saturday february 24th 2006 on the today show</a>

  82. Olgunka-lh says:

    <a href= http://index5.tnitog.com >city of manassas schools</a> <a href= http://index1.tnitog.com >united services automobile association</a> <a href= http://index4.tnitog.com >erotic masssage stories</a> <a href= http://index3.tnitog.com >girlssahrks.ru</a> <a href= http://index2.tnitog.com >videoclip of saturday february 24th 2006 on the today show</a>

  83. Olgunka-eu says:

    <a href= http://index2.iortic.com >maya stange nude</a> <a href= http://index5.iortic.com >xxxl mens jersey pants</a> <a href= http://index4.iortic.com >buttermilks mistress</a> <a href= http://index1.iortic.com >american embassy officials spain</a> <a href= http://index3.iortic.com >ute pass library cascade colorado</a>

  84. Olgunka-eu says:

    <a href= http://index2.iortic.com >maya stange nude</a> <a href= http://index5.iortic.com >xxxl mens jersey pants</a> <a href= http://index4.iortic.com >buttermilks mistress</a> <a href= http://index1.iortic.com >american embassy officials spain</a> <a href= http://index3.iortic.com >ute pass library cascade colorado</a>

  85. Hevero says:

    <a href= http://index1.xoyits.com >lake zurich baseball softball association</a> <a href= http://index2.xoyits.com >waltham boys and girls club preregistration

  86. batteryfast says:

    […] to the blog here for the rest of the entry and […]

  87. balabo2_sx says:

    <a href=  ></a>

    [@map/map_4g5_mordy.txt||5||p-1||1|| @]

  88. matar_lo says:

    <a href= http://index1.9poilo.com >female escort services in alabama</a>

    <a href= http://index1.stityg.com >proform c500 treadmill</a>

  89. Olgunka-nm says:

    <a href= http://index1.smytiw.com >pinto bellhousing sale</a>

    <a href= http://index1.dfitbv.com >nevada brothel porn star</a>

  90. matar_vz says:

    <a href= http://index1.8shtuk.com >senior showcase laguardia june</a>

    <a href= http://index1.eroint.com >princess diana death picture</a>

  91. Olgunka-rq says:

    <a href= http://index1.ariopr.com >hasting college in nebraska</a>

    <a href= http://index1.quikop.com >cheap skateboard</a>

  92. matar_ff says:

    <a href= http://index1.weewra.com >ww.southwest</a>

    <a href= http://index1.erojin.com >movie heartbreakers dress</a>

  93. Olgunka-yw says:

    <a href= http://index1.napoir.com >florida marlins and pax</a>

    <a href= http://index1.diopst.com >catholic charities jobs long island</a>

  94. matar_uo says:

    <a href= http://index1.niopil.com >i ve got it all most mp3</a>

    <a href= http://index1.oiloin.com >artificial landscaping rocks</a>

  95. Olgunka-az says:

    <a href= http://index1.ntdphb.com >ronald tompkins pastor biography</a>

    <a href= http://index1.vitiup.com >tongkat ali</a>

  96. matar_gp says:

    <a href= http://index1.biolop.com >crf 100f</a>

    <a href= http://index1.rfrltk.com >franks supply co inc in schulenburg texas</a>

  97. Olgunka-nj says:

    <a href= http://index1.ciopda.com >comcast spotlight fresno and networks</a>

    <a href= http://index1.dityns.com >vinyl fencing with clear panles</a>

  98. Kostet says:

    <a href= http://index1.koster4.com >vintage kenwood reciver kr 5030 ebay</a> <a href= http://index2.koster4.com >stained glass warehouse</a> <a href= http://index3.koster4.com >fiberglass roofing</a>

  99. Dimka says:

    <a href= http://index1.facil4.com >famous couples names chloe</a> <a href= http://index2.facil4.com >optimus stav-3400 audio video receiver</a> <a href= http://index3.facil4.com >contractors passes for damneck base</a>

  100. sohbet says:

    Thanks for the its much appreciated

  101. müzik dinle says:

    Sorry, but what is kimerikas……………..

  102. radyo dinle says:

    Thanks for the its much appreciated………..

  103. Olgunka-oc says:

    <a href=http://meshganishe.angelfire.com>new site about porn</a>

  104. Alina_m says:

    <a href= http://index1.fato4.com >cause and effect essay topics</a> <a href= http://index2.fato4.com >vintage purses</a> <a href= http://index3.fato4.com >womens drooping breasts</a>

  105. Olgunka-te says:

    <a href= http://lizard-masterm.angelfire.com >goldsmiths golf</a>

  106. Rici says:

    <a href= http://index1.geribag.com >sixties galleries</a>

  107. Nixh says:

    <a href= http://index1.bows4.com >fredericks hollywood lingerie</a>

  108. Olgunka-qm says:

    <a href= http://fasster.angelfire.com >baltimore and convention center and headquarters</a> <a href= http://gertui.angelfire.com >nasdaq 100 tennis tournament</a>

  109. Olgunka-jj says:

    <a href= http://fairra.angelfire.com >landls end</a> <a href= http://vonucshka.angelfire.com >chancellor internal med</a>

  110. BAttERY says:

     http://www.batteryfast.co.uk/acer/1670.php acer LC.BTP05.004 Aspire 1670 series laptop battery,

     http://www.batteryfast.co.uk/acer/as07a41.php AS07A41 Aspire 4310 4520 4710 4920 laptop battery,

  111. jyner_xx says:

    <a href= http://membres.lycos.fr/maffals >genetic disorters</a>

  112. garry-ir says:

    <a href= http://membres.lycos.fr/dertull >zx10r graphics</a>

  113. film izle says:

    One thing I would like to see in the new 3.0 is the WOL wake on lan and under the computers pages i would like to see an option to add a column for computer make and computer model. This would allow me to search by computer model

  114. sohbet odaları says:

    thnaks <a href="http://www.trstar.net&quot; title="chat sohbet, sohbet odalari">sohbet chat</a> sites

  115. fdgfdfbb says:

    http://mircse.com http://mircindir.cc mirc download mirc yükle mirc indir

  116. Sohbet says:

    unstable.  I would not want to be the helicopter pilot with you as my sys admin ;^).  

    good very good

    http://www.ircask.com

  117. laptop battery says:

    I do have to wonder about the reviewers that complain about the http://www.batterygoshop.co.uk/acer/aspire-4920-battery.htm acer Ferrari 3400 Laptop Battery. They are probably the same guys who would buy a Ferrari and complian about the mileage. I will carry my extra battery as a badge of honor. Either you get it, or you don’t.

  118. Talorgall says:

    Соберем для Вас по сети интернет

    базу данных потенциальных клиентов для Вашего Бизнеса

    (Название телефон факс email www имена адреса итд)

    Более подробную информацию Вы сможете получить по

    телефону +79133913837

    ICQ: 6288862

    SKYPE: prodawez

    EMAIL: prodawez@mixmail.com

  119. Rap says:

    http://www.kodes.com Hiphop, Rap, Ceza, sagopa, Kolera

    http://www.gekkog.com Hiphop, Rap, Gekko G

    http://www.maskanimasyon.com Animasyon

    assssssssssssssssss sadasd