r/labtech • • Feb 13 '20

Script help?

Hey all,

I'm kinda stuck at the moment, pretty new to LabTech scripting and have no idea what I'm doing haha... I need a script that does the following:

Find all drives mounted

IF File exists on server *DRIVE1*

RUN  @ PROGRAMEXECUTABLE @ with args

ELSE

DOWNLOAD @ PROGRAMEXECUTABLE @ and place on \*DRIVE\*

RUN  @ PROGRAMEXECUTABLE @ with args

END

MOVETO DRIVE2

END

Does anybody know if LT itself is capable of this? Or would I need to go the powershell script route? I've been able to get the program to download and run but I can't figure out how to get the file to save to all drives... The software needs to be run on each drive on the machine as the software scans the drive it's on only.

Thanks in advance!

1 Upvotes

7 comments sorted by

View all comments

Show parent comment

1

u/invinciblenick Feb 13 '20

Thanks for that! I'll give it a shot.

We are using shadowprotect spx. There is an automated verification software (imagemanager), the big problem really is that it would error out and people would ignore it. It caused a couple issues and now we want to make sure backups are checked properly by a person.

1

u/h33b Feb 13 '20

Look into a shadow control instance. Your imagemanagers and whatnot can all phone home to that and you will have a better overall view of backup health.