viralp Posted October 2, 2005 Share Posted October 2, 2005 (edited) 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 makeset svc = createobject("wbemscripting.swbemlocator").connectserver(".","root\cimv2")for each comp in svc.execquery("select manufacturer, model from win32_computersystem")sysinfo = "Model=" & comp.model & vbcrlfnextwscript.echo sysinfoFor example, the output for this script will beMicrosoft ® Windows Script Host Version 5.6Copyright © Microsoft Corporation 1996-2001. All rights reserved.Model=OptiPlex GX280Let'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.EXEVideo = http://ftp.us.dell.com/video/R96000.EXEIf the OS running will be Server 2003, then it should also download Intel INF Chipset Utility from http://ftp.us.dell.com/chipset/R79695.EXELike this, we are having atleast 10-12 catagories of desktop makes.Hope someone will reply to this post.Thanks in advance Edited October 2, 2005 by viralp Link to comment Share on other sites More sharing options...
orion2 Posted October 3, 2005 Share Posted October 3, 2005 Just one question, what if the manufacturers website is down or unavailable, it's going to throw errors up with running the script. Link to comment Share on other sites More sharing options...
sektor1952 Posted October 7, 2005 Share Posted October 7, 2005 Is that a server based script or local??, Also it may be a good idea to download the drivers to a repository someplace on your network just to avoid the manufacturers site being down. Looks like a good idea though. Link to comment Share on other sites More sharing options...
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