Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pushing Print Drivers.

Status
Not open for further replies.

pmidwest

Programmer
Jan 9, 2002
162
US
Is anyone aware of a way of scripting print driver installs?

I have 9 new servers and about 100 different printer drivers I need to get installed on each of them. Is there a way to put them all in one folder and have a script that I can run from my PC push/install the drivers on the remote servers?

Any help with this would be greatly appreciated

Thanks,

P.
 
how do you install one printer driver into windows?
there is a

RUNDLL32.EXE SETUPAPI.DLL,InstallHinfSection DefaultInstall 132 C:\WINDOWS\INF\SHELL.INF

which might help if your drivers are .INF files??

do a

objFolder = FSO.GetFOlder(",.,,,")
For Each aFile In objFolder.Files
If LCase(Right(aFile.Name, 4)) = ".inf" Then
WshShell.Run "rundll32.exe.....etc " & aFile.Name, 1, True
End If
Next

anyway
 
RUNDLL32.EXE SETUPAPI.DLL,InstallHinfSection 132 C:\drivers\hp\lj2430\hpc24x0c.inf

I get an install failed error when using this code. is there something wrong with the code?
 
1. your string is not the same as the one i posted you are missing a DefaultInstall
2. i have never tried this with printer drivers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top