Solved

change vbs script network printers from letter to A4 format

Posted on 2008-06-25
5
758 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
well i find out the i should do it for the hould printers key , so it works great, thanks again
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Numerous times I have been asked this questions that what is it that makes my machine log on so slow, there have been cases where computers took 23 minute exactly after taking password and getting to the desktop. Interesting thing was the fact th…
I've always wanted to allow a user to have a printer no matter where they login. The steps below will show you how to achieve just that. In this Article I'll show how to deploy printers automatically with group policy and then using security fil…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

772 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

11 Experts available now in Live!

Get 1:1 Help Now