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 systems engineer specializing in global systems management for Dell IT. He has a B.S. in Computer Sciences and Engineering from the Ohio State University and is a Microsoft Most Valuable Professional (MVP) for Microsoft System Center Configuration Manager. Greg coauthored SMS 2003 Recipes: A Problem-Solution Approach (Apress, 2006), Microsoft System Center Configuration Manager Unleashed (Sams, 2009), Microsoft System Center 2012 Configuration Manager Unleashed (Sams, 2012), and Microsoft System Center 2012 Configuration Manager: Administration Cookbook (Packt Publishing, 2012). Greg is cofounder of the Ohio SMS Users Group, and the Central Texas Systems Management User Group.

2 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

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

Follow

Get every new post delivered to your Inbox.

Join 1,045 other followers

%d bloggers like this: