clivebuckwheat Posted August 14, 2012 Share Posted August 14, 2012 (edited) i have two queues a Black and white queue called 2F26-BW and a color queue called 2F26-CLR.I am installing the printers using the following commandnet stop spoolerreg.exe ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Ports" /v \\MyPrinterserver\2F26P-CLR /t REG_SZ /freg.exe ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Ports" /v \\MyPrintserver\2F26P-BW /t REG_SZ /fnet start spoolerrundll32 printui.dll PrintUIEntry /if /b "2F26P-CLR" /r "\\MyPrintserver\2F26P-CLR" /m "HP LaserJet P3011/P3015 PCL6"rundll32 printui.dll PrintUIEntry /if /b "2F26P-BW" /r "\\MyPrintserver\2F26P-BW" /m "HP LaserJet P3011/P3015 PCL6"rundll32 printui.dll PrintUIEntry /y /n "2F26P-BW"Everything is working great, except for the 2F26-BW queue, the driver is defaulting to color, I would like it to be grayscale. I need to do this via command line because I have a lot of stations to run this script on. Edited August 15, 2012 by clivebuckwheat Link to comment Share on other sites More sharing options...
Tripredacus Posted August 15, 2012 Share Posted August 15, 2012 There are 2 things I can think of. First is to monitor the registry for the changes made when you select the grayscale box. Then export those keys and import the .reg into another PC to see if it changes it. As read about here.The other thing is to use wmic to change the color setting. See Win32_PrinterConfiguration's Color object. This is example code, since I don't actually have your printer. I can't test it exactly myself since I do not have a color printer.wmic printerconfiguration where "name='HP Color LaserJet CP 3525'" set Color=1Now the value of "name" should match the name it has in Printers and Devices, otherwise you'll have to check the WMI yourself to see what name it actually has if that doesn't work. Link to comment Share on other sites More sharing options...
clivebuckwheat Posted August 15, 2012 Author Share Posted August 15, 2012 sorry but how do I check the wmi?. Never did that before. Link to comment Share on other sites More sharing options...
Tripredacus Posted August 16, 2012 Share Posted August 16, 2012 This thread here has some programs that can do it.I link to it only because the Microsoft tool doesn't work in all situations. Link to comment Share on other sites More sharing options...
clivebuckwheat Posted August 16, 2012 Author Share Posted August 16, 2012 Thank you Tripredacus. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now