• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 747
  • Last Modified:

Automated Printer Install & network drive mapping for Win2K3 Domain clients


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.
  • 4
  • 2
  • 2
  • +2
3 Solutions
harazyAuthor Commented:
Whenever the user log in to their PC, or any other PC they're permitted to log in.
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.

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.
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

harazyAuthor Commented:
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.
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.


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.
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"
harazyAuthor Commented:
Thank you guys,

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

harazyAuthor Commented:
Sorry & Thanks to all you guys who helped me.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 2
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now