The Below Powershell script will download your McAfee Antivirus Agent from your local server and execute a silent install for the agent.

#!powershell

# Setup Key Values
###################################
$URL="http://yourmcafeeserver//PROD_WIN_ePO_Agent_FramePkg.exe"
$downloadtargetpath= "C:\temp\PROD_WIN_ePO_Agent_FramePkg.exe"

# Forece TLS 1.2
###################################
[System.Net.ServicePointManager]::ServerCertificateValidationCallback =
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

write-host " "
write-host "Download McAfee Binaries from: $URL" -ForegroundColor Yellow
write-host " "

try
 
 catch
 

write-host " "
write-host "Installing McAfee ePO Agent" -ForegroundColor Yellow
write-host " "
$McAfeePath = 'c:\temp\PROD_WIN_ePO_Agent_FramePkg.exe '
& $McAfeePath '/Install=Agent' '/Silent' | out-null