This was posted on another site as well, but with no responses I'm getting desperate. I'm hoping the MS gurus can hook me up :-D
We are adding Windows 7 into the mix this summer, and I need to create a VBS script to properly load our Ricoh 3500 printers (most departments have one in their suite or nearby). We skipped Vista altogether, and have been completely XP up until this year. Previously my little scripts have looked like this:
rundll32 printui.dll,PrintUIEntry /ia /m "Ricoh Aficio MP C3500 PCL 6" /h "Intel" /v "Windows 2000 or XP" /f \\server\XP\3500\OEMSETUP.INF
cscript prnport.vbs -a -r IP_XX.XX.XX.XX -h XX.XX.XX.XX -o raw -n 9100
cscript prnmngr.vbs -a -p "Ricoh Aficio MP C3500" -m "Ricoh Aficio MP C3500 PCL 6" -r "IP_XX.XX.XX.XX"
rundll32 printui.dll,PrintUIEntry /Sr /n "Ricoh Aficio MP C3500" /a "\\server\XP\3500\file.dat" u
printui.exe /q /ia /m "PCL6 Driver for Universal Print" /f \\server\Win7\3500\OEMSETUP.INF
cscript \\server\Win7\3500\prnport.vbs -a -r IP_XX.XX.XX.XX -h XX.XX.XX.XX -o raw -n 9100
cscript \\server\Win7\3500\prnmngr.vbs -a -p "Ricoh - Helpdesk" -m "PCL6 Driver for Universal Print" -r "IP_XX.XX.XX.XX"
printui.exe /Sr /n "Ricoh - Helpdesk" /a \\server\Win7\3500\settings.dat r
It worked on my machine and there was much rejoicing. I set up a test box with Windows 7, to see how it reacted on that. That's when things went badly. On a test machine, with me having admin rights, UAC turned off, and permissions to the appropriate servers, I receive this error:
"Operation could not be completed (error 0x00000709) Double check the printer name and make sure that the printer is connected to the network."
in the DOS box in the background I see this error:
"Unable to add printer Ricoh - Helpdesk Error 0x80041001 Generic Failure
Provider Win32 Provider
Description The printer driver is unknown
Win32 Error Code 1797"
So someone splain to me - why is one Windows 7 machine fine with it, but another (actually 2 others) give me this error. I am confused
You know... Group Policy Preferences allow you to setup printer connections... Might be the better way to go (and yes it does allow for granularly assigning different printers to different people based on different criteria) than trying to figure out how to do it with this script...
Hi there! Sadly I wish I could go this route, but the way our Active Directory is currently set up (out of my control) it is not an option! Plus we have many people who have numerous different Ricohs installed, based on nothing in particular (they have meetings here and there frequently, and want to be able to load and unload on the fly)
I just finished loading a bunch of HP, Brother and Ricoh printers via batch/scripting:
Cscript Prnport.vbs -a -r IP_10.0.0.74 -h 10.0.0.74 -o raw -n 9100
Cscript Prnport.vbs -a -r IP_10.0.0.75 -h 10.0.0.75 -o raw -n 9100
Cscript Prnport.vbs -a -r IP_10.0.1.75 -h 10.0.1.75 -o raw -n 9100
Cscript Prnport.vbs -a -r IP_10.0.0.78 -h 10.0.0.78 -o raw -n 9100
Cscript Prnport.vbs -a -r IP_10.0.0.73 -h 10.0.0.73 -o raw -n 9100
Cscript Prnport.vbs -a -r IP_10.0.0.72 -h 10.0.0.72 -o raw -n 9100
cscript prnmngr.vbs -a -p "Ricoh Front" -m "Ricoh Aficio 3228C PCL6" -r "IP_10.0.0.74"
cscript prnmngr.vbs -a -p "Ricoh Back" -m "Ricoh Aficio 3228C PCL6" -r "IP_10.0.0.75"
cscript prnmngr.vbs -a -p "Ricoh Engineering" -m "Ricoh Aficio 3235C PCL6" -r "IP_10.0.1.75"
cscript prnmngr.vbs -a -p "HP Cait" -m "HP Color LaserJet CP2020 Series PCL6" -r "IP_10.0.0.78
cscript prnmngr.vbs -a -p "RonBrother" -m "Brother MFC-9840CDW" -r "IP_10.0.0.73"
cscript prnmngr.vbs -a -p "VVBrother" -m "Brother MFC-9840CDW" -r "IP_10.0.0.72"
BUT - BUT - I first forced a driver download from Windows Update. Otherwise the Ricoh and Brother drivers aren't present.