Patch Management Solution

 View Only
  • 1.  Script task does not working

    Posted Sep 17, 2018 04:37 AM

    I am running the following script task via Altiris.to install a windows KB.

    @echo off

    sc config wuauserv start= auto
    sc start wuauserv

    timeout 5

    start "" /w wusa.exe \\servername\sharename\KB1.msu /quiet /norestart

    timeout 50
    sc stop wuauserv
    sc config wuauserv start= disabled

    Task runs, enable/start the service but skip the 2nd line for installing the KB and move to the last part for stop/disabling the service.

    Would anyone able to help why altiris skipping the installation task.

    It does work if i run the script manually on the server.



  • 2.  RE: Script task does not working

    Posted Sep 18, 2018 03:47 PM

    I suspect it's because Script Tasks will be run as the Local System account that won't have access to the share.

    Package kb1.msu as a Software Release and split the rest of your script task intot two scrpts. Then put the whole lot into a Job.



  • 3.  RE: Script task does not working

    Posted Sep 24, 2018 11:31 AM

    would you give any example please?

    KB1.msu is already been pakcaged.



  • 4.  RE: Script task does not working

    Posted Sep 30, 2018 05:26 AM

    Create a Script Task "WUStart:

    sc config wuauserv start= auto
    sc start wuauserv
    timeout 5

    Create another Script Task "WUStop":

    timeout 50
    sc stop wuauserv
    sc config wuauserv start= disabled

    Then create a Job and add the following Tasks:

    • WUStart
    • Deploy package KB1.msu
    • WUStop