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:
#sample script to download the latest FEP Definitions to a direcotry
$x86Path = "\\ramseyServer\source$\microsoft\FEPDefs\x86.exe"
$x86url = ""
$x64Path = "\\ramseyServer\source$\microsoft\FEPDefs\x64.exe"
$x64url = ""

$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.DownloadFile( $x86url, $x86path )
$webclient.DownloadFile( $x64url, $x64path )


Happy Scripting!