Solved

Default Printer

Posted on 2006-11-05
4
321 Views
Last Modified: 2010-04-18
I need a VB script that will configure the default printer depending upon the loaction of the client computer.
0
Comment
Question by:jontyplatt
[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
  • 2
4 Comments
 
LVL 48

Accepted Solution

by:
Jay_Jay70 earned 250 total points
ID: 17877657
depending on location is certainly going to get interesting for you, here is a resource that i regularly use

http://www.computerperformance.co.uk/ezine/ezine17.htm
0
 
LVL 9

Expert Comment

by:SamuraiCrow
ID: 17879571
If these are windows xp computers you can use the built in prnmngr.vbs file:

prnmngr -t -p "\\server\printer"

to assign a default printer.  Now all we need to do is build some intellegence into it.

A few questions:

Are locations determined by IP Address (multi site / multi network) or in the same building (single site / single network or single site / multi network)?
0
 
LVL 9

Expert Comment

by:SamuraiCrow
ID: 17879599
The basics of setting a printer based on IP (in case that is what you are looking for) can be found here:
http://www.microsoft.com/technet/scriptcenter/resources/qanda/jul06/hey0719.mspx

The operation will have to be tuned to meet you needs of course.
0
 

Author Comment

by:jontyplatt
ID: 17888009
These machines do not have static IP's although I could assign thema dn reserve the addresses on the DHCP server. This is a stingle site with a single server running active directory. I would really like to create a group of computers so that I can determine the default that way. Then I could just add and remove to teh groups as necessary.
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

This may not be a text book method to resolve VSS backup issues but it seemed to have worked on few of the Windows 2003 servers we had issues while performing a Volume Shadow Copy backup. If you have issues while performing a shadow copy backup usin…
Learn about cloud computing and its benefits for small business owners.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

739 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