Automated Printer Install & network drive mapping for Win2K3 Domain clients

Posted on 2006-11-06
Last Modified: 2008-02-01

I manage a medium-size network consists of PCs running WinXP Pro & servers running Win2K3 with Active Directory domain.

I've configured a few network printers & shared folders on the servers.

How can I automate the process of installing the printers & mapping the shared folders for the user whenever they log in.

Thank you.
Question by:harazy
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
  • 4
  • 2
  • 2
  • +2

Author Comment

ID: 17887276
Whenever the user log in to their PC, or any other PC they're permitted to log in.

Expert Comment

ID: 17887326
You can go for login scripts which would map shared folders using Net use command. Look under Group policies.

To the task of installing printers, you may have to configure it to run with Admin priv.

LVL 10

Expert Comment

ID: 17887337
check this utility for shared folders -

you may also use the net share command with a batch file or startup script

if you publish your shared printers in active directory, users logging on to domain will get those printers automatically, no need to install seperately.
Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users


Author Comment

ID: 17887524
Jonybrv, do you have a sample script? I'd like to see it as a guide.

Phadke, if possible, I'd like to stay clear of any third party utility. Glad if you could provide a sample script.

Yes, I publish the shared printers in active directory, but the printers are not shown in the user's printers & faxes folder.

Assisted Solution

Jonybrv earned 25 total points
ID: 17887870

Accepted Solution

hong7cong earned 50 total points
ID: 17887919
For mapping network driver, you just need to create file (using Notepad, for example) with bellow lines

NET USE F: \\Fileservername\Sharename1
NET USE G: \\Fileservername\Sharename2

name the file (like logon.bat) and put the file into the Netlogon folder of your server and put the file name into user account's profile (you might use this logon script for event a OU)

For setting up network printer and you still want to stay with MS, you can have some example from this site. I'm also  using this method for my network.

LVL 10

Expert Comment

ID: 17888506
i have published our printer in AD, whenever user logs on to domain, the printer automatically gets added to his profile
The script given by hong7cong is also good.

Assisted Solution

bobsyeruncle earned 50 total points
ID: 17888675
You can use logon scripts in grou policy.

VB Script to map printer

Dim net
Set net = CreateObject("WScript.Network")
net.AddWindowsPrinterConnection "\\server\printer", "Printer Name"

VB Script to map network drive

Dim objNet
Set objNet = CreateObject("Wscript.Network")
objNet.MapNetworkDrive "S:", "\\server\share"

Author Comment

ID: 17904739
Thank you guys,

I'll try each one, and tell you the result later.


Author Comment

ID: 18119982
Sorry & Thanks to all you guys who helped me.

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Many people tend to confuse the function of a virus with the one of adware, this misunderstanding of the basic of what each software is and how it operates causes users and organizations to take the wrong security measures that would protect them ag…
I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

726 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