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.
Parents
  • 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
Reply
  • 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
Children
No Data