Jump to content


blanalex

OSD: Apply Driver Package from a script

Recommended Posts

In our organization we decided to go with the "control freak" driver management model. However that means we have maintain the computer model list for each task sequence.

 

If we were able to create a single script with all our computer models there, calling Apply Driver Package with the right package, it would be a lot easier. All we would have to do is call this script from all our task sequences. After that, all we would have to maintain is this single script.

 

 

Is it possible (and how?) to call the Apply Driver Package action from a custom .vbs script?

Share this post


Link to post
Share on other sites


may you do a wmi query for the machine model and pass this as argument to your custom.vbs that calls the driver package to install the drivers?

Share this post


Link to post
Share on other sites

Well, I'm not sure I see the point of doing the WMI query outside the script?

 

I was thinking something along those lines: (don't mind the language, I've never worked with vbs, this is a general algorithm)

model=wmi.query("SELECT version FROM Win32_ComputerSystemProduct")

 

if (model like "ThinkPad T510") then

mdt.ApplyDriverPackage("T510")

elseif (model like "ThinkPad T520") then

mdt.ApplyDriverPackage("T520")

endif

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...