Skip to content

OSD: Apply Driver Package from a script

Featured Replies

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?

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?

  • Author

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

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.