Downloading the latest System Center Endpoint Protection (SCEP) Definitions using PowerShell
October 22, 2012 3 Comments
My colleague Chris Nackers posted an example for how to install Endpoint Protection during OS Deployment, which included a VBScript to download the latest virus definition files. I happen to have one written in PowerShell that can use an internet proxy if required – here it is:
#www.ramseyg.com #sample script to download the latest FEP Definitions to a direcotry $x86Path = "\\ramseyServer\source$\microsoft\FEPDefs\x86.exe" $x86url = "http://go.microsoft.com/fwlink/?LinkID=87342&clcid=0x409" $x64Path = "\\ramseyServer\source$\microsoft\FEPDefs\x64.exe" $x64url = "http://go.microsoft.com/fwlink/?LinkID=87341&clcid=0x409" $webclient= new-object System.Net.WebClient #If you have a proxy configured for your environment, you need to enable and confiure # the next three lines #$proxy = new-object System.Net.WebProxy "proxy:80" #$proxy.UseDefaultCredentials = $true #$webclient.proxy=$proxy $webclient.DownloadFile( $x86url, $x86path ) $webclient.DownloadFile( $x64url, $x64path )
Happy Scripting!
Greg
Pingback: Downloading the latest System Center Endpoint Protection (SCEP) Definitions using PowerShell « Chris Nackers Blog
Pingback: Downloading the latest System Center Endpoint Protection (SCEP) Definitions using PowerShell « Nackers Consulting Services, LLC
Thanks for this script Greg!