I am a system administrator of a server/client environment that doesn't have SCCM and I want to check if computers in my organization have a file name using a batch file.
I want the script to check if the file egui.exe
is in one of these directories:
Program Files\ESET\ESET Security\
Program Files (86)\ESET\ESET Security\
If the file EXIST then the script should do nothing.
If the file NOT EXIST then it should start Eset Endpoint installation in quiet mode from my server:
msiexec /i myserver\eea_nt64_enu.msi /qb
I wrote something, but I'm not sure if it is correct and complete:
If exist "C:\program files\ESET\ESET Security\egui.exe" echo ?
else
call msiexec /i myserver\eea_nt64_enu.msi /qb
Again, I do not want the script to load the installation if the file exists. If the executable exists in that folder, then the batch file should do nothing.
How to check existence of executable in Program files and Program files (x86)?
How to check what version each one has?
If the version of the AntiVirus is old (let's say version 4) then it should force it to install AND override the current version?