I made a simple Powershell script allow me to Download the latest definition file from Symantec. its basically search about the newest/ recent file that contain the name "core3sdssepv5i64.exe" then get its link and start download it. simple and easy as below :
Code: Select all
# Find latest installer
$url = 'https://definitions.symantec.com/defs/download/symantec_enterprise/index.html/'
$site = Invoke-WebRequest -UseBasicParsing -Uri $url
$table = $site.links | ?{ $_.tagName -eq 'A' -and $_.href.ToLower().Contains('core3sdssepv5i64') -and $_.href.ToLower().EndsWith("exe") } | sort href -desc | select href -first 1
$filename = $table.href.ToString()
# Download installer
$src = $filename
$filenameEXT = $SRC.Substring($SRC.LastIndexOf("/") + 1)
$location= (Get-Item -Path '.\' -Verbose).FullName
#write-output $location
Invoke-WebRequest $SRC -OutFile $location\$filenameEXT
Code: Select all
; Example: Download text to a variable:
whr := ComObjCreate("WinHttp.WinHttpRequest.5.1")
whr.Open("GET", "https://definitions.symantec.com/defs/download/symantec_enterprise/index.html/", true)
whr.Send()
; Using 'true' above and the call below allows the script to remain responsive.
whr.WaitForResponse()
HtmlText := whr.ResponseText
FileAppend, %HtmlText%, foo.html
Run, foo.html
ExitApp