arjanver Posted August 18, 2017 Posted August 18, 2017 Hi, We have a working MDT environment. I have problems injecting/installing drivers for Acer TravelMate B115 notebooks. The problem is that the wmic output gives Model: TravelMate B115-MP and another one gives TMB115-MP, NB-TMB115-MP-P7X8 And in MDT workbench i have this folder structure Acer, TravelMate B115 and here are the drivers for this model. How to get this to work so that all modelnames are getting the correct drivers for this model? In the task sequence i have this DriverGroup001 | %MAKE%\%MODEL% was thinking and should this work adding this to ztigather.wsf If sModel = "TMB115-MP", "NB-TMB115-MP-P7X8" then sModel = "TravelMate B115-MP" End if but i'm not an wsf expert so i don't know if i use the correct formatting.
fiza Posted August 18, 2017 Posted August 18, 2017 (edited) I have used a model verification tool and built the result into MDT so the correct drivers get loaded. I can't remember where I got it from but I will look at my notes Monday when I am in the office. Edit: I found the site I used. http://www.deploymentshare.com/post/2014/06/25/handling-illegal-characters-in-mdt-driver-folders Edited August 18, 2017 by fiza
snagrat Posted August 18, 2017 Posted August 18, 2017 There is a working solution on another post http://www.edugeek.net/forums/o-s-deployment/69247-how-do-i-implement-driver-folders-when-computer-model-has.html
arjanver Posted August 20, 2017 Author Posted August 20, 2017 Will look at this next week. Thanks. But should my script work OR have it errors? The other website topic is about a / in the name.
snagrat Posted August 20, 2017 Posted August 20, 2017 I don't see what it matters what is in the name. What you done should work
Davit2005 Posted August 21, 2017 Posted August 21, 2017 Selection Profiles using WMI queries for Model Number is how we used to do it. All the drivers were Seperated into folders in Out-of-Box Drivers. i.e. Select * FROM Win32_ComputerSystem WHERE model LIKE "%NB-TMB115-MP-P7X8%"
snagrat Posted August 21, 2017 Posted August 21, 2017 Selection Profiles using WMI queries for Model Number is how we used to do it. All the drivers were Seperated into folders in Out-of-Box Drivers. i.e. Yes but the problem is when you have a special character in the model name that MDT does not allow in the folder name in Out-of-Box Drivers (i.e. a slash)
arjanver Posted August 21, 2017 Author Posted August 21, 2017 Hi, this is a part of my existing ztigather.wsf ' Get the make, model, and memory from the Win32_ComputerSystem class Set objResults = objWMI.InstancesOf("Win32_ComputerSystem") For each objInstance in objResults If not IsNull(objInstance.Manufacturer) then sMake = Trim(objInstance.Manufacturer) End if If not IsNull(objInstance.Model) then sModel = Trim(objInstance.Model) End if If not IsNull(objInstance.TotalPhysicalMemory) then sMemory = Trim(Int(objInstance.TotalPhysicalMemory / 1024 / 1024)) End if Next If uCase(sMake) = "LENOVO" then Set objResults = objWMI.InstancesOf("Win32_ComputerSystemProduct") For each objInstance in objResults If not IsNull(objInstance.Version) then sModel = Trim(objInstance.Version) End if Next End If Want to place the new script part. is it correct placed? and i've added an extra Next, is that necessary? or should i place the script part somewher else? ' Get the make, model, and memory from the Win32_ComputerSystem class Set objResults = objWMI.InstancesOf("Win32_ComputerSystem") For each objInstance in objResults If not IsNull(objInstance.Manufacturer) then sMake = Trim(objInstance.Manufacturer) End if If not IsNull(objInstance.Model) then sModel = Trim(objInstance.Model) End if If not IsNull(objInstance.TotalPhysicalMemory) then sMemory = Trim(Int(objInstance.TotalPhysicalMemory / 1024 / 1024)) End if Next If sModel = "TMB115-MP", "NB-TMB115-MP-P7X8" then sModel = "TravelMate B115-MP" End if Next If uCase(sMake) = "LENOVO" then Set objResults = objWMI.InstancesOf("Win32_ComputerSystemProduct") For each objInstance in objResults If not IsNull(objInstance.Version) then sModel = Trim(objInstance.Version) End if Next End If
Davit2005 Posted August 21, 2017 Posted August 21, 2017 Yes but the problem is when you have a special character in the model name that MDT does not allow in the folder name in Out-of-Box Drivers (i.e. a slash) Not sure I follow you. For instance our folder structure was set out thus OS (i.e. Windows 10)- Architecture (32 or 64bit) - Make i.e. (HP) - Model (i.e. Slim 800 G2), this worked well as a folder structure for us.
arjanver Posted August 21, 2017 Author Posted August 21, 2017 i don't have special characters in these model names TravelMate B115-MP, TMB115-MP and NB-TMB115-MP-P7X8
arjanver Posted August 22, 2017 Author Posted August 22, 2017 Is this correct? I was wondering if i should add the extra Next command yes or not? ' Get the make, model, and memory from the Win32_ComputerSystem class Set objResults = objWMI.InstancesOf("Win32_ComputerSystem") For each objInstance in objResults If not IsNull(objInstance.Manufacturer) then sMake = Trim(objInstance.Manufacturer) End if If not IsNull(objInstance.Model) then sModel = Trim(objInstance.Model) End if If not IsNull(objInstance.TotalPhysicalMemory) then sMemory = Trim(Int(objInstance.TotalPhysicalMemory / 1024 / 1024)) End if Next If sModel = "TMB115-MP", "NB-TMB115-MP-P7X8" then sModel = "TravelMate B115-MP" End if Next If uCase(sMake) = "LENOVO" then Set objResults = objWMI.InstancesOf("Win32_ComputerSystemProduct") For each objInstance in objResults If not IsNull(objInstance.Version) then sModel = Trim(objInstance.Version) End if Next End If Or this way? ' Get the make, model, and memory from the Win32_ComputerSystem class Set objResults = objWMI.InstancesOf("Win32_ComputerSystem") For each objInstance in objResults If not IsNull(objInstance.Manufacturer) then sMake = Trim(objInstance.Manufacturer) End if If not IsNull(objInstance.Model) then sModel = Trim(objInstance.Model) End if If not IsNull(objInstance.TotalPhysicalMemory) then sMemory = Trim(Int(objInstance.TotalPhysicalMemory / 1024 / 1024)) End if If sModel = "TMB115-MP", "NB-TMB115-MP-P7X8" then sModel = "TravelMate B115-MP" End if Next If uCase(sMake) = "LENOVO" then Set objResults = objWMI.InstancesOf("Win32_ComputerSystemProduct") For each objInstance in objResults If not IsNull(objInstance.Version) then sModel = Trim(objInstance.Version) End if Next End If
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now