DownloadFile ( $DownloadURL, $DownloadPATH, "", "", $true, 10000, $true, "DoNothing" ) write-host -NoNewLine ( get-date -Format HH:mm:ss ) -ForegroundColor "Green" write-host ": Finished Download" write-host -NoNewLine ( get-date -Format HH:mm:ss ) -ForegroundColor "Green" write-host ": Starting Installation" #install Defs $downloadedDefs = $ env : TEMP "\" $virusDefs. FullName $ SCRIPT : DownloadPATH = $ env : TEMP "\" $virusDefs. Name write-host -NoNewLine ( get-date -Format HH:mm:ss ) -ForegroundColor "Green" write-host ": Starting Download" #Environment for File Download :: LoadWithPartialName ( "Microsoft.VisualBasic" ) $object = New-Object $ Script : DownloadURL = $virusDefs. Name write-host -NoNewLine ( get-date -Format HH:mm:ss ) -ForegroundColor "Green" write-host ": Downloading and installing newest definitions:" $virusDefs. Definition -Parent cd $scriptDirectory Import-Module ".\PSFTP.psm1" #If 2003 or 2008 set path Symantec path accordingly: $OSVersion = ( Get-WmiObject Win32_OperatingSystem ). # Virus definitions URL is located here: # FTP site with the definitions are located here: # Only tested on 64bit 2008R2 as of Sbut I tried to write it for 32bit arch as well # Requires PowerShell FTP module: $scriptDirectory = Split-Path -Path $MyInvocation. This script borrows elements from Zebbelin's Symantec script # for the GUI, etc. # Created by Trentent Tye # IBM Intel Server Team # Septem# Description: This script will download the latest Symantec antivirus files from Symantec's FTP site # and execute the install to update them.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |