MSFN Forum: The best way to map printers - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

The best way to map printers Rate Topic: -----

#1 User is offline   Phyridean 

  • Complacently Indifferent
  • PipPip
  • Group: Members
  • Posts: 243
  • Joined: 07-April 04

Posted 11 October 2004 - 03:08 PM

What has everyone found to be the best way to add certain printers on client computers automatically according to group membership?

I've tried vbscripts and modifying printui.dll with a batch file, but both of these require admin privileges, which I don't want to give my users.

Ideas?


#2 User is offline   Rtano 

  • Newbie
  • Group: Members
  • Posts: 14
  • Joined: 10-October 04

Posted 11 October 2004 - 04:04 PM

i've written a logon-script that map a network printer....

Tomorrow when i get to work i post it.


You dont need to be an admin to connect a printer (i believe :D).

The method is in thw WSHnetwork object.

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

Option Explicit
Dim objNet

Set objNet = CreateObject("WScript.Network")

bjNet.AddWindowsPrinterConnection "\\SERVER_NAME\PRINTER1"
objNet.AddWindowsPrinterConnection "\\SERVER_NAME\PRINTER2"

//////////////////////////////////////////////////

#3 User is offline   Phyridean 

  • Complacently Indifferent
  • PipPip
  • Group: Members
  • Posts: 243
  • Joined: 07-April 04

Posted 12 October 2004 - 01:41 PM

Thanks a lot Rtano, I will test this.

#4 User is offline   Phyridean 

  • Complacently Indifferent
  • PipPip
  • Group: Members
  • Posts: 243
  • Joined: 07-April 04

Posted 12 October 2004 - 02:21 PM

I get an error in line 4, character 1 (Permission denied)...and I'm no VB expert. Help?

#5 User is offline   Rtano 

  • Newbie
  • Group: Members
  • Posts: 14
  • Joined: 10-October 04

Posted 12 October 2004 - 02:30 PM

maybe it's THE permission problem talked before....try running this script as an Admin.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy