Quantcast
Channel: Symantec Connect - Deployment Solution - Discussions
Viewing all articles
Browse latest Browse all 1130

Running tasks based on Model

$
0
0
I need a solution

Hey there,

So I looking to run some tasks based on the Model of the machine.

My current scenario is I'm looking to copy drivers based the model #.

Eg. I have a Latitude E7450 & E6410 and I have a network share \\server\Drivers (Each Model has it corresponding folder E7450,E7440,E6410 etc. within) 

So i was hoping for it to see that it's a Latitude E7450 and then copy the drivers from \\Server\Drivers\E6410 and copy it to C:\Drivers.

I've tried some suggestions from here . But I'm obviously missing something,

What tried was, creating a Task --> Run Script

I then pasted this

FOR /F "tokens=2 delims==" %%G IN ('WMIC baseboard get product /format:VALUE') DO SET Model=%%G

ECHO Model: %Model%

if "%model%"=="Latitude E7440" goto E7440
if "%model%"=="Latitude E7450" goto E7450

REM If we didn't find a match, just exit
goto Exit

REM LAPTOPS

:7440
ROBOCOPY /E "\\server\Drivers\E7440" C:\Drivers
goto Exit

:7450
ROBOCOPY /E "\\server\Drivers\E7450" C:\Drivers
goto Exit

:Exit

exit

I then do a Quick run against my test machine, I see a quick dos screen come up and go away. But nothing is coping and the task still shows as running.

If anyone could point me in the right direction, it would be great.

Thanks


Viewing all articles
Browse latest Browse all 1130

Trending Articles



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