Jump to content

Recommended Posts

Posted

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.

Posted

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%"
Posted
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)

Posted

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

Posted
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.

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...