Hello! Over the years I've had much luck lurking about here and finding the information I need, but now I need to post one myself. 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
And for Windows XP all was happy. I just had to plop in the right IP address and all worked fine. However Windows 7 has been nothing but a humongous struggle. We had wanted to change a couple of things (rename the printers to the appropriate location, to make it easier on users) and in testing on my own windows 7 machine, I finally found what I thought was the answer. This code:
|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