none
Installing Windows Updates with VB Script RRS feed

  • Question

  • Hello,

    I'm using the script from 'http://msdn.microsoft.com/en-us/library/windows/desktop/aa387102%28v=vs.85%29.aspx' to install all updates for windows.
    The script works fine for Windows Server 2008. If i execute it on a Windows Server 2012 it installs all the updates but it does not refresh the 'View update history' (Control Panel\All Control Panel Items\Windows Update\View update history).
    Do I have to add/change something in the script?

    Thanks & Regards

    Zach

    Wednesday, August 6, 2014 6:09 AM

Answers

All replies

  • Not really a scripting issue.  Try contacting Microsoft support for issues like this.

    Have you restarted you system before checking the history?


    ¯\_(ツ)_/¯


    • Edited by jrv Wednesday, August 6, 2014 7:02 AM
    Wednesday, August 6, 2014 7:02 AM
  • I just tested the script on one update and it sows correctly in update history.


    ¯\_(ツ)_/¯

    Wednesday, August 6, 2014 7:10 AM
  • Hello,

    thanks for the reply. Yes, I had restarted the system before checking the history.

    I just tested it on a Win Server 2012 R2 and it works.

    So the problem occurs only on Windows Server 2012 (not R2). Did you tested the script on Windows Server R2?

    I have tested the script on follow systems:

        Windows Server 2012 which is not a domain member.
        Update history view not updated

        Windows Server 2012 R2 which is not a domain member.
        Update history view is updated

        Windows Server 2008 R2 which is not a domain member.
        Update history view is updated

    Tested from a customer:

        Windows Server 2012 (R2?) which is a domain member and the Updates are configured with WSUS.
        Update history view not updated
        Windows Server 2008 which is a domain member and the Updates are configured with WSUS.
        Update history view is updated

    Wednesday, August 6, 2014 11:41 AM
  • Have you searched to see if this is a known problem on that platform? Not sure what we can do for you here. The purpose of this forum is to help answer scripting questions rather than help troubleshoot specific platform problems.


    -- Bill Stewart [Bill_Stewart]

    Wednesday, August 6, 2014 1:47 PM
    Moderator
  • Hello,

    I've didn't find anything..

    This is my original post: http://social.technet.microsoft.com/Forums/scriptcenter/en-US/392d9ef7-fdfc-44bb-a26f-1afb73473cd5/installing-windows-updates-with-vb-script?forum=winservergen

    Wednesday, August 6, 2014 2:15 PM
  • Hello,

    I've didn't find anything..

    This is my original post: http://social.technet.microsoft.com/Forums/scriptcenter/en-US/392d9ef7-fdfc-44bb-a26f-1afb73473cd5/installing-windows-updates-with-vb-script?forum=winservergen


    Everybody is telling you the same thing. It is not a scripting issue.  It is an issue with one of your systems.  You need to contact support and get help fixing it.  Other than that we cannot fix it in the script in any way that I can see.

    ¯\_(ツ)_/¯

    Wednesday, August 6, 2014 2:18 PM
  • Hello jrv,

    did you test the script on a Win 2012 Server or Win 2012 Server R2? I also think that it has nothing to do with the script. So I will ask in the other forum from my original post. Do I have to / Can I close this post?

    Thanks

    Zach


    • Edited by ZachDev Thursday, August 7, 2014 8:25 AM
    Thursday, August 7, 2014 8:11 AM
  • It works on al versions. It has to work because the code used is the same on all platforms.

    The issue is not a scripting issue.  You may need to open a support case to get help with this.

    You can also try posting at http://answers.microsoft.com


    ¯\_(ツ)_/¯

    Thursday, August 7, 2014 11:04 AM