PDA

View Full Version : AddWindowsPrinterConnection (W2K)



joarne
01-08-2003, 03:52 AM
I have problemes with mapping a printer on a server to LPT2. I tried the following script but it's not working. The script run without errors, but thats all. Has anyone an idea on this problem. We are running AD and terminal server 2000 with Metaframe XP.

Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.AddWindowsPrinterConnection "\\HjortDC01\FS-1600-4etg", "LPT2".

<P ID="edit"><FONT class="small">Edited by joarne on 01/08/03 05:05.</FONT></P>

Jama
01-08-2003, 10:19 AM
try;

Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.AddPrinterConnection "LPT2", "\\HjortDC01\FS-1600-4etg"

Jama