Jump to content

Detect System Make and download drivers


viralp

Recommended Posts

Hi All,

at my workplace most of the systems are dell. What I want is run a script, detect the system make, OS and download the drivers to the desktop accordingly (assuming that Network card drivers are installed by OS itself and the system is on the network)

Here's the script I have written to detect the system make

set svc = createobject("wbemscripting.swbemlocator").connectserver(".","root\cimv2")

for each comp in svc.execquery("select manufacturer, model from win32_computersystem")

sysinfo = "Model=" & comp.model & vbcrlf

next

wscript.echo sysinfo

For example, the output for this script will be

Microsoft ® Windows Script Host Version 5.6

Copyright © Microsoft Corporation 1996-2001. All rights reserved.

Model=OptiPlex GX280

Let's assume that the OS running is Windows XP Professional SP2.

For Dell GX280, only Sound and Video drivers will be missing for the OS Winxp Professional SP2.

So, it should detect the OS as Windows XP Professional and download the Video and Sound drivers from the following URL to the desktop.

Sound = http://ftp.us.dell.com/audio/R78477.EXE

Video = http://ftp.us.dell.com/video/R96000.EXE

If the OS running will be Server 2003, then it should also download Intel INF Chipset Utility from http://ftp.us.dell.com/chipset/R79695.EXE

Like this, we are having atleast 10-12 catagories of desktop makes.

Hope someone will reply to this post.

Thanks in advance

Edited by viralp
Link to comment
Share on other sites


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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...