| 1. |
Solve : driver store location issues? |
|
Answer» System: XP PRO SP3 C:\WINDOWS\system32\driversWhat is the error you are getting? And can you post the script? Quote from: Spoiler on July 15, 2011, 11:12:12 AM What is the error you are getting? And can you post the script? error: exception calling "put" with "0" argument(s): "not found" script: Code: [Select]$objPrinter = [wmiclass]"Win32_Printer" $objNewPrinter = $objPrinter.CreateInstance() $objNewPrinter.DriverName = "HP Designjet 800PS 42 by HP" $objNewPrinter.PortName = "Rhyne_290A" $objNewPrinter.Shared = $false $objNewPrinter.Location = "Rhyne_290A" $objNewPrinter.DeviceID = "Rhyne_290A" $objNewPrinter.Put() If I check the PNP list from add printer the driver is there but the script errors stating the above. If I install the printer manually the powershell script runs correctly. This error (from what I can tell) is stating the driver could not be located. I am just trying to figure out where windows XP is putting the drivers and relevant files when you install the printer.When you run it manually it works....how ELSE are you trying to run it? Are you trying to run it across a network? Quote from: Spoiler on July 18, 2011, 12:15:28 PM When you run it manually it works....how else are you trying to run it? Are you trying to run it across a network? To get the script to run I need to manually install one of each model printer. once the drivers are in the system ( location I am trying to figure out) the script runs correctly. with windows 7 I am using the pnputil to inject the drivers but that does not work with win xp (not installed and could not find a 32bit xp VERSION). I am not running it across the network. I copy the script locally and run from there. |
|