Solved

change vbs script network printers from letter to A4 format

Posted on 2008-06-25
5
762 Views
Last Modified: 2010-04-21
Hi xperts,

I need you to help me in order to add any necesary config in order to change all my network printer config from letter to A4 in my vbs script that i use to manage users printers.please easy help for a non script guy.
In need to be sure that all printers in the script will print in A4
thanks in advance
0
Comment
Question by:diegomirner
  • 3
  • 2
5 Comments
 
LVL 38

Expert Comment

by:Shift-3
ID: 21865665
Printer settings such as paper size are governed by entries under the registry key HKEY_CURRENT_USER\Printers\DevMode.  To get the desired values, manually set each printer to use A4 and then export that registry key.

You can then set the values using a logon script such as the one in this article:
http://www.microsoft.com/technet/scriptcenter/resources/qanda/feb05/hey0224.mspx
0
 

Author Comment

by:diegomirner
ID: 21865862
I don't see any details about Paper format A4 in the registry , i can see al lprinters in connections section of it, any help ?
0
 
LVL 38

Accepted Solution

by:
Shift-3 earned 500 total points
ID: 21866695
The key HKEY_CURRENT_USER\Printers\DevMode doesn't store information in friendly easy-to-read strings.  It uses long and unfriendly binary values.  Thus my suggestion that you make the settings changes manually on one machine, then export the values and set corresponding ones using a logon script.

You can test this by exporting the key to a .reg file, then changing the paper setting.  Importing the first .reg file will change the paper setting back.
0
 

Author Comment

by:diegomirner
ID: 21873128
so i  find in the regitry the next key :

devmodeperuser
devmodes2

so i have manually apply necesary changes in on each printer , i have export the devmodes2 folder keys , but still same problem , no reflection on the changes on the new pc where i have restore this keys.
any idea ?
0
 

Author Closing Comment

by:diegomirner
ID: 31470530
well i find out the i should do it for the hould printers key , so it works great, thanks again
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

813 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now