Solved

change vbs script network printers from letter to A4 format

Posted on 2008-06-25
5
765 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Suggested Solutions

Title # Comments Views Activity
removing Exchange from an old windows 2003 DC 8 64
Trust relationship SBS2011 - > Windows 2003 3 48
Backup DHCP Server 8 126
Connecting two servers 30 90
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…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

679 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