Solved

mapping printers in win2003 enviroment

Posted on 2004-04-12
8
256 Views
Last Modified: 2010-03-18
Server : win2003 active directory
clients : XP Pro Roaming mandatory profiles enabled.

I am doing some work for a school and cannot find any answers to the following problem. Basically we want the users when logging on to  a computer in the ICT suite to be default to the network laser printer, but when they log onto the computers in thier classes we want to default to the local printer but still have the option to print to the laser.

Is there a way of doing this ??
0
Comment
Question by:premierfarnell
  • 3
8 Comments
 
LVL 23

Accepted Solution

by:
rhandels earned 125 total points
ID: 10804473
Hi,

You can install printers in the login script by using the

net use lpt1 \\servername\printername

command to create a share to a printer. You can alo use Kixstart to add a printer connection to a user. You can even make a printer the default printer for a user.

I think you'd have to create a group of computers where the default printer of the ICT users are installed. It should be something like.

If "computername" is "part of pc group" Then

Addprinterconnection \\servername\printername
setdefaultprinter \\servername\printername

But if you would to pull this one off, you have to use Kixtart. Just go to the link below to see how Kixtart works..

http://www.kixtart.org
0
 

Author Comment

by:premierfarnell
ID: 10804716
Is there a way to do this with VB rather than kixscript ?? also what would be the impact of this with roaming profiles ?
0
 
LVL 23

Expert Comment

by:rhandels
ID: 10805043
I don't know how vbscript works in a startup script or logon script.

We use Kixtart and it works fine with Romaing profiles. The only thing the roaming profiles keeps track of is the connection with the printer.

I guess that this is possible in VB, but don't ask me how, i'm no VB specialist.

Also, besides adding printers through the login script, you can also delete the printers through the login script..
I'm sure you'll have your reasons why to work with VB, but in my opinion Kixtart is the way to go. It's free and especially written for Microsoft. It's also easy to use for everyone. Hell, i can't actually code a lot, but i can figgure out Kixtart..
0
 
LVL 9

Assisted Solution

by:jamesreddy
jamesreddy earned 125 total points
ID: 10805432
Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.AddWindowsPrinterConnection "\\PrintServer1\Xerox300"
WshNetwork.SetDefaultPrinter "\\PrintServer1\Xerox300"

Pretty simple.  Keep the following link handy if you do VB scripting:

http://www.microsoft.com/technet/community/scriptcenter/default.mspx


Under that link there are a whole host of scripts you can use for just printing for various purposes.  I posted that link below as well:

http://www.microsoft.com/technet/community/scriptcenter/printing/default.mspx

Hope that helps.

James
0
 
LVL 23

Expert Comment

by:rhandels
ID: 11372762
Agree
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
get-aduser and get-adcomputer lastLogon and LastLogonDate 3 297
Surface Pro 4 wifi 4 37
Need network only 1 user? 10 88
802.1X auth setup and configuration 3 35
A brief overview to explain gateways, default gateways and static routes OR NO - you CANNOT have two default gateways on the same server, PC or other Windows-based network device. In simple terms a gateway is formed when a computer such as a serv…
This is the first one of a series of articles I’ll be writing to address technical issues that are always referred to as network problems. The network boundaries have changed, therefore having an understanding of how each piece in the network  puzzl…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
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 …

685 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