Print Drivers via GPO

  • Thread starter Thread starter Kyle
  • Start date Start date
Assign the follow VB script with in a GPO as startup or logon script

HOW TO: Assign Scripts in Windows 2000:
http://support.microsoft.com/default.aspx?scid=kb;en-us;322241

Script Code from TechNet Script Center

strComputer = "."
Set objWMIService = GetObject("winmgmts:" & _
"{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set objDriver = objWMIService.Get("Win32_PrinterDriver")

objDriver.Name = "NewPrinter Model 2900"
objDriver.SupportedPlatform = "Windows NT x86"
objDriver.Version = "3"
objDriver.FilePath = "C:\Scripts"
objDriver.InfName = "C:\Scripts\PrnDrv.inf"

intResult = objDriver.AddPrinterDriver(objDriver)
WScript.Echo intResult
-- Regards,
Christoffer Andersson
No email replies please - reply in the newsgroup
If the information was help full, you can let me know at:
http://www.itsystem.se/employers.asp?ID=1
 
Back
Top