This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Manual Update Via Command Line/Script

Hello,

I have searched both the web and these forums for a way to kick off a manual update for Sophos Endpoint Security and Control 9.5 via a script or the command line.  I can right click on the Sophos tray icon and choose 'Update now' just fine, but need a script or command line to be able to manually force an update on a machine remotely.  Is there a way to do that?


Thanks

:12573


This thread was automatically locked due to age.
  • Hey,

    You are being entirely to hard on yourself!

    Script worked exactly as designed, to me, thats a win!

    I thank you again for the big help! Definitely would have taken me all week or long to produce something like that!

    Cheers

    :20961
  • This is how I trigger an update with Powershell:

    PS C:\temp> $sophos = New-Object -ComObject "activelinkclient.clientupdate.1"
    PS C:\temp> $sophos.updatenow($true,1)
     
    #You can list the available commands with the get-member cmdlet (Alias is gm):
     
    PS C:\temp> $sophos | gm
     
     
       TypeName: System.__ComObject#{eeca3174-b9e3-43be-98b3-a97732f41972}
     
    Name                     MemberType Definition
    ----                     ---------- ----------
    BootstrapUpdate          Method     void BootstrapUpdate (bool, bool)
    DisableStartupAutoUpdate Method     void DisableStartupAutoUpdate ()
    EnableStartupAutoUpdate  Method     void EnableStartupAutoUpdate ()
    MonitorConnectEvent      Method     void MonitorConnectEvent ()
    RefreshConfiguration     Method     void RefreshConfiguration ()
    UpdateNow                Method     void UpdateNow (bool, InstallMode)
    :38435
  • This is pretty cool nem!

    Thanks for this method.

    I am going to have to give this a try when I get a chance.

    Cheers

    :38923