Solved

Default Printer

Posted on 2006-11-05
4
315 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
  • 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

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…
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

707 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

9 Experts available now in Live!

Get 1:1 Help Now