Well hello, my name's Bruno, i'm new to IT Ninja, so sorry if i make any mistake in my very first post...

I know it's a little hard for a first post but... I need to create a self install package of drivers, containing drivers of a bunch of different notebook manufacturers and models (like HP, Dell, gateway and their models...), and io need this package to identify the equipment's manufacturer/model and install ONLY the drivers suited for it...

Can someone please send me a light?

Thanks a lot for your attention :)

Sincerely,

Bruno Bicudo

Answer Summary: @ECHO OFF
REM do a wmi query to get the info we want and put it in a variable
FOR /F "tokens=2 delims==" %%A IN ('WMIC csproduct GET Name /VALUE ^| FIND /I "Name="') DO SET machine=%%A
FOR /F "tokens=2 delims==" %%A IN ('WMIC csproduct GET Vendor /VALUE ^| FIND /I "Name="') DO SET machine=%%A

Comments

Community Chosen Answer

1

I'm not sure of your deployment method, but this is a post install task I use on my K2000. You should be able to convert it to what you need. This sets a machine variable. It then looks for that model, and installs the necessary drivers.

@ECHO OFF

REM do a wmi query to get the info we want and put it in a variable

FOR /F "tokens=2 delims==" %%A IN ('WMIC csproduct GET Name /VALUE ^| FIND /I "Name="') DO SET machine=%%A

I would assume you could modify the WMI to look for manufacturer. I've never tested though. I would run the WMI query above on that HP and check the results. If it does return results then you should be good.

Answers

This content is currently hidden from public view.Reason: Removed by member requestFor more information, visit our FAQ's.

0

Get yourself a free copy of WMIExplorer.exe (google for it) as this has all the methods you need and you can run it on your target system to see what it returns for commands such as W32_System_Enclosure (IIRC) for example....