Downloading the latest System Center Endpoint Protection (SCEP) Definitions using PowerShell

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 )

DownloadFepDefs.ps1

Happy Scripting!

Greg

About Greg Ramsey
Greg Ramsey is a Distinguished Engineer for Dell Digital - Services. He has a B.S. in Computer Sciences and Engineering from The Ohio State University and has co-authored many books over the years. Greg is also a board member of the Northwest System Center User Group and the Midwest Management Summit. ​Greg has been a Microsoft Endpoint Manager (ConfigMgr, Intune) MVP for over 14 years.

3 Responses to Downloading the latest System Center Endpoint Protection (SCEP) Definitions using PowerShell

  1. Pingback: Downloading the latest System Center Endpoint Protection (SCEP) Definitions using PowerShell « Chris Nackers Blog

  2. Pingback: Downloading the latest System Center Endpoint Protection (SCEP) Definitions using PowerShell « Nackers Consulting Services, LLC

  3. wolffhaven says:

    Thanks for this script Greg!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: