?
Solved

Enable Advanced Printing Feature via registry or script

Posted on 2007-10-02
4
Medium Priority
?
3,614 Views
Last Modified: 2008-01-09
We have a print server (Windows 2003) and a third party printer quota software package.

Every time we reboot our server this software package resets the "Enable Advanced Printing Feature" setting on all of our printers.

Does anyone know of a way of setting this to enabled?
Suitable soultions include
- Registry hacks
- VBscript
- command line tools

We do not want to run any macro or key generation tools. Altering the printer directly is the preferred option.

We may have just missed an obvious registry key but we are stumped.
0
Comment
Question by:Beldoran
  • 2
  • 2
4 Comments
 
LVL 29

Accepted Solution

by:
Alan Huseyin Kayahan earned 1500 total points
ID: 20005350
    Hi Beldoran
          Download RegMon
          http://www.microsoft.com/technet/sysinternals/utilities/regmon.mspx
          After you install it, navigate the printer properties and check "Enable Advanced printing". Watch Regmon and see which registry entries change how.
          Then export these changes and do a startup batchfile to import after every restart

Regards
0
 
LVL 29

Expert Comment

by:Alan Huseyin Kayahan
ID: 20005418
     and another option (risky a little bit)
          *Create a system restore point
          *Check the "Enable advanced printing" box.
          *Create a user in computer with admin rights.
          *After you tracked down the registry values that change when you check and apply "enable advanced printing", navigate to the registry key (the folder that contains it in left folder), right-click it, then click permissions.
         *Add the new admin user with full rights here, then note down the other user entries like System (ignore administrators)
        * Click "advanced" in permissions window, and remove the inheritance checkbox. When prompted, choose copy.
       * Now back to permissions window, remove administrators group, then give only "read" permission to all entries except the new admin you created.
       * Restart the computer and see if "Enable advanced printing" is gone or not.

Regards
0
 
LVL 4

Author Comment

by:Beldoran
ID: 20010702
Thankyou for the response. As this server is also our main domain controller with other mission critical functions as well, I have been reluctant to 'play' with it. We reboot it only once a month maybe less depending on the severity of the updates needed.

I did try to use regmon on a workstation but did not get what I was after. It may be that I was doing something wrong. I will try again and post the results tomorrow.

0
 
LVL 4

Author Comment

by:Beldoran
ID: 20018597
Well, after using Regmon again I remember why I did not find what I wanted in the past (thousands of keys get changed or updated with each apply). This time I persisted and tracked it down to two important keys. It seems that one bit of one key was what was needed but the other key was a changeId key.

If I manually change the bit I need the changeID does not update and it seems that the clients will not see the change because the cahngeID has not updated.

After further research I narrowed it down to using the spooler API and a structure called "PRINTER_INFO_2" with the field being an INT32 field called Attributes (Only one bit needs changing 0x1000). Once I had this I did a few more searches I found that "printui.dll" can be used to alter the printer info structure. Unfortunatelty the help for this did not seem to include the ability to enable the advance printing. So I tried the settings that were available just in case.

Doing this I found that turning off the "RawOnly" attribute actually enables the advanced printing features! I really love it when things are so obvious, so as a help for anyone else with this issue I have included the relevant commands below.

To Enable Advanced Printing Features
RUNDLL32 PRINTUI.DLL,PrintUIEntry /Xs /n "printer name" attributes -RawOnly

To Disable Advanced Printing Features
RUNDLL32 PRINTUI.DLL,PrintUIEntry /Xs /n "printer name" attributes +RawOnly

Thanks for setting me back on the path MrHusy
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Have you considered what group policies are backwards and forwards compatible? Windows Active Directory servers and clients use group policy templates to deploy sets of policies within your domain. But, there is a catch to deploying policies. The…
This article is the result of a quest to better understand Task Scheduler 2.0 and all the newer objects available in vbscript in this version over  the limited options we had scripting in Task Scheduler 1.0.  As I started my journey of knowledge I f…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

850 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