Sophos Update Path

Has anyone had any luck with getting their Sophos update path? I've found the update server in the registry, but it does not return the path. Their have been some recent Sophos hiccups ( http://www.itninja.com/link/sophos-advisory-shh-updater-b-false-positives ), and we're trying to get them all corrected. So far over 95% of our machines are working correctly since we've applied a patch. With about 1,400 more still not updating. 

My current script checks for a string "Download of Sophos AutoUpdate failed from server http://server.domain.org/CIDs/S009/SAVSCFXP/" and if it exists then it returns a text file that Kace inventories, and I have a report ran on it.

It looks like now there are more broken paths so I'm needing something that will look for "Download of Sophos AutoUpdate failed from server _______________________________________" and have the script fill in the blank in the text file. 

Hopefully that makes sense. In my head it does.

0 Comments   [ + ] Show comments

Answers (1)

Answer Summary:
Posted by: dugullett 8 years ago
Red Belt

I ended up using the below to query a XML file with the config info.

set xmlDoc=CreateObject("Microsoft.XMLDOM")



strQuery = "/Status/UpdateLocationStatus/UpdateLocation/Config/Server/Address/Path"

Set colNodes = xmlDoc.selectNodes( strQuery )

For Each objNode in colNodes

WScript.Echo objNode.nodeName & ": " & objNode.text


Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ