Solved

Getting an error after printer is added to logon script

Posted on 2008-10-07
3
224 Views
Last Modified: 2012-08-13
Hey Experts!!
I just purchased a new HP P4010 Printer and installed it on the server via the Server Management MMC.  Afterwards, I added it to the script and tested it on my machine.  Everything came up ok.  When my other users came in this morning they said there was an error saying that the operation could not be completed.  
Once again, this works on 2 PC's (the server and mine) but no one else's.  Everyone is running XP Pro SP2

I added this printer and others via a logon script using the code below.  
What is wrong?
Is it because the driver is only present on my machine and the server?

*******UPDATE********
Switched the driver to the Universal PCL 5 instead, because that's what the other HP's on my network use......still nothing. So then I switched back the driver to the PCL 6 driver.  
RunDll32.exe printui.dll,PrintUIEntry /in /y /n \\ATIDC\HP4010

Open in new window

0
Comment
Question by:LZ1
  • 2
3 Comments
 
LVL 1

Expert Comment

by:Eidron1980
ID: 22662067
You must install drivers first. This is done using the /ia command.
See http://support.microsoft.com/kb/189105
0
 
LVL 30

Author Comment

by:LZ1
ID: 22662685
So it is basically finding the path of the drivers on the server, then throwing them into the same line?  
I didn't have to do this for the other printers, is there a reason I have to do it for this one?
0
 
LVL 30

Accepted Solution

by:
LZ1 earned 0 total points
ID: 22663679
Solved
I had spelled the printer name wrong.   I'm sure we've all been there
RunDll32.exe printui.dll,PrintUIEntry /in /y /n \\ATIDC\HPP4010
INSTEAD OF:
RunDll32.exe printui.dll,PrintUIEntry /in /y /n \\ATIDC\HP4010  
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If like me you are one who spends a lot of time working and scripting with cmd.exe, sometimes it is handy to be able to quickly view a calendar for a given month and year. This script will quickly do just that!  Save the code posted below to a .bat …
When you upgrade from Windows 8 to 8.1 or to Windows 10 or if you are like me you are on the Insider Program you may find yourself with many 450MB recovery partitions.  With a traditional disk that may not be a problem but with relatively smaller SS…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question