Creating script in Altiris to install DAT files

Hi All

We are using Altiris deployment server 6.8

We have about 400 servers. Every now and then, a group of servers will not receive their McAfee DAT file updates from the parent server. Rather than logging onto each one and running a manual update, I'd like to just drop an Altiris job on them to kickstart them back to action.

For the sake of argument, let's say the .exe file is DAT.exe

I'd like to create an Altiris job that copies this file from the Altiris server to a location on the remote server, runs the .exe, and then deletes the .exe once complete. Another problem is that I'd like it to be a silent/quiet install, i.e. ignore any 'next' or 'finish' commands.

Copying the file over in Altiris is straightforward, however to run the file silently, would the command be?

REM run .DAT exe from temp location
C:\Temp location\DAT.exe /quiet

And how I could I delete this file?

Any help appreciated!
The script operating system is Windows

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

This depends entirely on whether the executable supports quiet or silent switches at the command line.  Check the vendor documentation, or run
DAT.exe /?
to see avaiable switches.

If you do have a silent switch, then the following VBS code would run the EXE locally:
Set objShell = CreateObject("WScript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")
objShell.Run "cmd /c c:\DAT.exe /quiet", 1, True
objFSO.DeleteFile "C:\DAT.exe", True



Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
kam_ukAuthor Commented:
thanks very much...
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Scripting Languages

From novice to tech pro — start learning today.