/build/static/layout/Breadcrumb_cap_w.png

script to check the last 3 characters of the registry entry

Hi Team,

We are planning to distribute the device drivers according to the model of the machine, from SCCM. Device drivers are placed in the SCCM share.Device driver folders are named in such a way that only model number will be there.eg E6410. So we need a script to check the last 3 characters of the registry [HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\BIOS\SystemProductName.] eg:Dell Latitude E6410 ;Last 3 characters =410. so that it will compare the share and download the corresponding device driver folder to the local machine.

Any thoughts on this..?

regards

Anphi

0 Comments   [ + ] Show comments

Answers (6)

Posted by: anonymous_9363 12 years ago
Red Belt
0
It might be more robust to build collections based on a query for the relevant string in hardware details and have your package targetted at the various collections.
Posted by: anphi 12 years ago
Orange Belt
0
Thanks VBScab for your quick response...

I think collection based query can be done only through SCCM..client wants a content apps kind of procedure so that whenever the client put some additional files, it must be copied to the local machine according to the model number...their main intension is a kind of automation...
Posted by: anonymous_9363 12 years ago
Red Belt
0
I think collection based query can be done only through SCCMEr...We are planning to distribute the device drivers according to the model of the machine, from SCCM. Device drivers are placed in the SCCM share.So....your client is using SCCM but isn't using SCCM. Bizarre...

A scripted solution - or even a proper tool as an EXE - is going to be a nightmare. How will you control failed downloads? Failed installs? It doesn't bear thinking about...
Posted by: anphi 12 years ago
Orange Belt
0
Option Explicit

' Open the WScript.Shell object to read the registry key.
Dim objWS, strKeyValue, strKeySuffix
Set objWS = CreateObject("WScript.Shell")
strKeyValue = objWS.RegRead("HKLM\HARDWARE\DESCRIPTION\System\BIOS\SystemProductName")
' Get last three characters of the key value.
strKeySuffix = Right(strKeyValue, 3)
msgbox strKeySuffix
Posted by: anonymous_9363 12 years ago
Red Belt
0
That takes care of the part dealing with the last 3 characters but what about the driver installation? Where's the rest of the script (didn't you say that the client doesn't want to use SCCM?)
Posted by: anphi 12 years ago
Orange Belt
0
Hi VBScab,

As I mentioned earlier, client wanted to use Content App for the driver, so that in future if a new machine is introduced in the network, it will download the corresponding drivers to a specific location in the local machine.We are using robocopy.exe for downloading the drivers(it will download only if there is any differences in the source location and the target location)

regards

Anphi
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ