Solved

enabling duplex printing in VB script

Posted on 2008-10-30
8
1,533 Views
Last Modified: 2012-05-05
I am trying to enable duplex printing as part of our green initiative.  We use a vbscript that adds the printers for the users who logon to their machines. The environment is Server 2003 and XP.  Is there something I can add to the script to enable duplexing?  The printers/copiers are Xerox WorkCentre 175s.

Thanks,
0
Comment
Question by:ddbla
  • 4
  • 4
8 Comments
 
LVL 5

Expert Comment

by:zabu99
ID: 22845730
You can set the option for duplex from the print server. The settings you apply there will also be the default settings when a new printer is added.

Printer settings can be found in WIN32_PrinterConfiguration. One of the properties, Duplex, will be either True or False, but I don't think that you can set it there. I believe that it can be set in the registry, but I don't have time to look at that right now.

Given that new printer installs take on the defaults that you set on the print server that might be enough for your purposes.
0
 

Author Comment

by:ddbla
ID: 22846003
Thanks for the info, but I've made the change on the print server and it doesn't reflect on the user when the script runs and installs the printer.

The WIN32_PrinterConfiguration you mention, can this be added to the script?

Thanks
0
 
LVL 5

Expert Comment

by:zabu99
ID: 22850119
Weird about the print server thing (as it worked for me). Sorry to lead you in a wrong direction then.

As far as I can tell WIN32_PrinterConfiguration is for read only (so no changes). There has got to be a way to do it though. I'll check into it and maybe someone else will come up with an easy solution in the meantime.
0
Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

 

Author Comment

by:ddbla
ID: 22854975
thanks, i'll keep researching too
0
 
LVL 5

Expert Comment

by:zabu99
ID: 22868576
When you allowed duplex on the print server, did you set it as the default setting?

After some research, I don't think that it can be done directly with a script. Two other, less desirable, options are available.
1) Set the computer for single sided printing. Export the registry. Set the computer to duplex and export the registry. Compare the two files. You could use a registry patch or script to make the appropriate changes to the registry.
2) Use whatever software that Xerox provides to make the charges to the printer directly. I am not sure what this involves though.

Sorry that I don't have a good answer for you.
0
 

Author Comment

by:ddbla
ID: 22881409
let me get into contact with Xerox and find out what they say.

Thanks for the duplexing registry export.  I'll look into that as well.
I'll post again with results,

Thanks,
0
 

Accepted Solution

by:
ddbla earned 0 total points
ID: 22908658
i had overlooked this, it was the advanced tab that was where the 2 sided should be set. i was making the change on the printer preferences button only.

thanks for all your help!
0
 
LVL 5

Expert Comment

by:zabu99
ID: 22925038
Good, it's nice when there is a simple solution.

Have a great day.
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

685 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