Solved

change vbs script network printers from letter to A4 format

Posted on 2008-06-25
5
774 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Enroll in July's Course of the Month

July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

Organizations create, modify, and maintain huge amounts of data to help their businesses earn money and generally function.  Typically every network user within an organization has a bit of disk space to store in process items and personal files.   …
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

627 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