none
Error code 5

    Question

  • @ECHO OFF
    ECHO "Enter PC to connect to"
    SET /P COMPUTERNAME=

    PSExec \\%COMPUTERNAME% wusa.exe C:\Temp\KB2616676\Windows6.1-KB2616676-x86.msu /quiet /norestart

    pause

     

    Above is my simple command i want to run in order to push out a patch.  I keep receiveing the message WUSA.exe exited with error code 5.  Any suggestions?

    Friday, October 7, 2011 4:10 PM

Answers

  • You cannot push WU patches.  Use WU Client to specify a patch to download and install. I believe that there are some scripts in the repository for WU client.

    Sometime an MSI or an exe is made available for a patch.  Thise can be pushed in most cases I believe but it has been a while since I have tried (WSUS makes this unnecessary).

     

    Most systems have automatic updating enabled. If you do have automatic updating enabled, you do not have to take any action because the update 2616676 will be installed automatically if any certificates are missing from the Microsoft Untrusted Certificate Store. Update 2616676 will not be reoffered to systems that have updates 2524375, 2607712 and 26116676 already installed.


    jv
    Friday, October 7, 2011 4:36 PM

All replies

  • C:\>net helpmsg 5
    
    Access is denied.



    Oliver Lipkau
    [PowerShell enthusiast]
    http://oliver.lipkau.net/blog
    Friday, October 7, 2011 4:35 PM
    Moderator
  • You cannot push WU patches.  Use WU Client to specify a patch to download and install. I believe that there are some scripts in the repository for WU client.

    Sometime an MSI or an exe is made available for a patch.  Thise can be pushed in most cases I believe but it has been a while since I have tried (WSUS makes this unnecessary).

     

    Most systems have automatic updating enabled. If you do have automatic updating enabled, you do not have to take any action because the update 2616676 will be installed automatically if any certificates are missing from the Microsoft Untrusted Certificate Store. Update 2616676 will not be reoffered to systems that have updates 2524375, 2607712 and 26116676 already installed.


    jv
    Friday, October 7, 2011 4:36 PM
  • BSonPOSH module includes functions to install updates

     

    http://archive.msdn.microsoft.com/bsonposh


    Oliver Lipkau
    [PowerShell enthusiast]
    http://oliver.lipkau.net/blog
    Friday, October 7, 2011 4:46 PM
    Moderator
  • BSonPOSH module includes functions to install updates

     

    http://archive.msdn.microsoft.com/bsonposh


    Oliver Lipkau
    [PowerShell enthusiast]
    http://oliver.lipkau.net/blog

    Brandons code does not do targeted updates. It downloads all updates for the local machine and installs them.

    I believe I put an updater in the repository some time ago.  It takes a KBID and calls a remote machine to trigger an install.  Ir has only been tested on XP.

    If I find it I willpost teh link.

    Ther are others in teh repository and could even be a brand new one.

     This particular update should alerady be installed if Automatic updates are enebled.

     


    jv
    • Edited by jrv Friday, October 7, 2011 5:21 PM
    Friday, October 7, 2011 5:20 PM
  • psexec @list.txt -s -u admin -p admin wusa.exe \\IP\patchpublic\ms12-005\Windows6.1-KB2584146-x86.msu /quiet /norestart

    this works fine for me

    • Proposed as answer by Milovandr Friday, May 26, 2017 2:09 PM
    Friday, March 30, 2012 5:46 AM
  • psexec @list.txt -s -u admin -p admin wusa.exe \\IP\patchpublic\ms12-005\Windows6.1-KB2584146-x86.msu /quiet /norestart

    this works fine for me

    That absolutely will not work.  YOu cannot remote through two machines without changing the network security settings.  Systems are not allowed to delegate access to remote systems.

    There is one situation where it might work and that is to a DC.  DCs have dellegation authority which is one of the reasons why you need to take extra precautions to protect them from malware.


    ¯\_(ツ)_/¯


    • Edited by jrv Friday, March 30, 2012 5:59 AM
    Friday, March 30, 2012 5:50 AM