Windows 7 Printer installation via Commandline or powershell
I have two new printers that I will need to install to an office of about 30-40 users. This office does NOT use a print server and my manager has stated he does not wish to use GPO to install the new printers. I have been taking a look for a good way to
install the two printers quickly (without me having to go through the wizard each time). I normally use powershell for most of my automation, however I found the PRINTUI.EXE feature to be much more direct to what I was looking to do. I just can't get it to
work, even using the examples provided in windows when you type in printui. Below is what I have tried:
C:\>rundll32 printui.dll,PrintUIEntry /if /b "BK205B-LJ01" /f c:\drivers\7120\x2GCHAX.inf /r "lpt1:" /m "Xerox 7120 PCL6"
Error: The arguments are invalid
C:\>rundll32 printui.dll,PrintUIEntry /ia /m "Xerox 7120 PCL6" /h "x64" /v "Type 3 - User Mode" /f c:\drivers\7120\x2GCHAX.inf
Error: The arguments are invalid
C:\>PRINTUI.EXE /ia /m "Xerox 7120" /h "x64" /v "Type 3 - User Mode" /f c:\drivers\7120\x2GCHAX.inf
Error: The arguments are invalid
I have made some other similar attempts but I am getting the same issue every time. I have the .inf sitting on a local folder and although this is going to be a tcp/ip printer, I am willing to install it as a local port just to get the wheels rolling and
I can figure it out from there. Any help would be appreciated.
As I have stated above, GPO is not an option per my boss or else I would have gone that route. Please do not suggest that I use GPO or print servers.
January 21st, 2012 4:55pm
If your company has spent so much for this multifunction printer, it would be reasonable procedure to use appropriate technology for managing it.
Have you consider Web-based Print Driver Installer?
Because of special problem I would recommend to address it to Xerox forum here
http://forum.support.xerox.com/
Regards
Milos
Free Windows Admin Tool Kit Click here and download it now
January 22nd, 2012 5:02am
This particular group is outside the norm. This is only a temporary issue, one that we have discussed and decided not to change our GPO for.
In any matter, the issue is now resolved. I have changed the driver to a PS driver and the batch file no longer returns with "The arguments are invalid". I had thought that I had already tried a separate driver before I posted here, but apparently not. In
my hurry I must of forgotten it.
Coded that worked:
rundll32 printui.dll,PrintUIEntry /if /b "Printer Name" /f c:\driverfolder\driver.inf /r "port" /m "Model"
As a note: this code has to use a port that has already been added. It will not create the port for you in the example above.
January 25th, 2012 4:04pm