Computer Hope
Microsoft => Microsoft Windows => Windows XP => Topic started by: wbrost on July 13, 2011, 07:47:22 AM
-
System: XP pro SP3
I am having a weird XP issue where the driver for a printer is in the "C:\WINDOWS\system32\DRVSTORE" location, shows up in the driver list when manually searching but, I can not get a script to install the printer.
If I manually install the printer (using the driver from the list) it works. If I then remove the printer and run the script again. It will add the printers correctly. But, I am trying to automate the install process for over 100 computers.
thanks,
wbrost
-
100 printers for a hundred computers??? I doubt you would be printing 100 pages simultaneously...
http://uis.georgetown.edu/software/documentation/winxp/winxp.network.printer.html
maybe a networked printer is what you need-I think setting 10 printers on a few master pcs, then enabling all the client PCs via the network is WAY more cost-effective...
This is how to convert a standard printer into a network printer-http://www.ehow.com/how_5825303_convert-usb-printer-network-printer.html
-
Try this link for mapping or redirecting printer file -> http://social.technet.microsoft.com/wiki/contents/articles/event-id-1111-terminal-services-printer-redirection.aspx (http://social.technet.microsoft.com/wiki/contents/articles/event-id-1111-terminal-services-printer-redirection.aspx)
-
ok I guess I did not make my request very clear....... :)
The print servers are being taken away and we have been told not to make cilent/desktop print servers (yes this is stupid and I agree it is a mistake). The solution to this is to add all printers (around 10 of them) via IP. I have a script that works with win 7 but not with XP. I am asking if any one knows the location that windows puts the print drivers after they are installed on the system or a way to add the drivers to the PNP list so I can utilize the drivers.
thank you,
wbrost
-
Is this what you need?
C:\WINDOWS\system32\drivers
-
Moved the files for the driver to the below location and still getting error. I checked and the driver shows up twice in the PNP list now.
C:\WINDOWS\system32\drivers
-
What is the error you are getting? And can you post the script?
-
What is the error you are getting? And can you post the script?
error:
exception calling "put" with "0" argument(s): "not found"
script:
$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?
-
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.