General discussion

Locked

Mapping a networked printer

By NateH ·
Hi all.

I just added a color laser printer to a Win2000 Server/Domain and is set as shared.

I added a line to the login script
"net use lpt1: \\server\printername"

The problem is that the printer does not show up in the client (all WinXP Pro machines). I can print using a DOS command "dir > lpt1:", however, if I use the control panel to see all the printers, it does not show. So the user does not even know it is there.

Any ideas/suggestions how to do this?

Thanks

Nate

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Mapping a networked printer

by Onalos In reply to Mapping a networked print ...

Try this:

' VBScript.
Dim net
Set net = CreateObject("WScript.Network")
net.AddWindowsPrinterConnection "\\ServerName\PrinterName"

Copy and paste the example above (or below) into notepad.exe

IMPORTANT change the variable ServerName toa computer on your network.

Change the PrinterName to the name of a real printer.

Save the script with a .vbs extension, and double click the file to test it.

You should be able to use this in your logon script. If not then all you haveto do is have the user double click it and theres nothing they need to do. It takes about a second. Here is another piece of code to make a printer a default printer.

' VBScript.
Dim net
Set net = CreateObject("WScript.Network")
net.SetDefaultPrinter "\\ServerName\PrinterName"


onalos

Collapse -

Mapping a networked printer

by NateH In reply to Mapping a networked print ...

Poster rated this answer

Collapse -

Mapping a networked printer

by NateH In reply to Mapping a networked print ...

This question was closed by the author

Back to Windows Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums