Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

PowerShell msiexec and -ArgumentList

$
0
0

Good afternoon,

I am attempting to install Kaspersky Network Agent and Kaspersky Endpoint Security via script. Mostly because Kaspersky's install process from their console is horribly slow (like over an hour) and only works about 50% of the time. So, time to script this process finally.

So here is my script so far.

Powershell
if(!(Test-PathC:\Temp)){New-Item-ItemTypeDirectory-PathC:\temp}Copy-Item\\server\KLSHARE\Packages\NetAgent\-Recurse-DestinationC:\Temp\KNATempCopy-Item\\server\KLSHARE\Packages\KES_10.2.4.674\-Recurse-DestinationC:\Temp\KESTemp$KNALocalPath="C:\Temp\KNATemp\exec\Kaspersky Network Agent.msi"$KESLocalPath="C:\Temp\KESTemp\exec\Kes10win.msi"$KNAArgs="/qn INSTALLDIR=C:\KasperskyNetworkAgent"Start-Process-FilePath"$KNALocalPath"-ArgumentList$KNAArgs-WaitStart-Process-FilePath...

Viewing all articles
Browse latest Browse all 15370

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>