Software installation

I just start upgrading the SEP agents from version 12 to 14 and I have to do it on 600 servers.

So I create simple script to copy and install silent SEP14.

The restart I will run with the monthly patching


SEP14 installation script

#Installation software

$servers = Get-Content “C:\temp\Servers.txt”

$source = “C:\Install”

$dest = “c$”

$testPath = “c:\Install\Sep64.msi”

foreach ($server in $servers) {


if (Test-Connection -Cn $server -quiet) {

Copy-Item $source -Destination \\$server\$dest -Recurse -Force

if (Test-Path -Path $testPath) {

Invoke-Command -ComputerName $server -ScriptBlock {powershell.exe c:\Install\Sep64.msi /sALL /msi /norestart ALLUSERS=1 EULA_ACCEPT=YES} # or SEP64.msi /qn /norestart

Write-Host -ForegroundColor Green “Installation Success on server $server


} else {

Write-Host -ForegroundColor Red $server is not online , install failed”






Please  Subscribe


Leave a Reply

Your email address will not be published. Required fields are marked *