Results 1 to 2 of 2

Thread: Map network printer to remote PC

  1. #1
    Join Date
    Sep 2008
    Posts
    1

    Map network printer to remote PC

    I am trying to get a vbs script that will map a network printer to a specific computer and user name. The domain has 4000+ users, 5000+ computers and 1500 printers. I would like to create a VBS script that would ask the USER to:
    -Enter computer name:
    -Enter user name
    -Enter Network printer address
    (For example: \\server\printer name)
    - Type yes or no to make the printer the default.

    I found a vbs script that does some of the above, but only on a local pc. Is there any way to change the code to incorporate all of the above:

    Code:
    Set WshNetwork = CreateObject("WScript.Network")
    
    strFullPath = Inputbox("Please enter the full path of your network printer here:","")
    'Use the above line if you have multiple print servers. Use the following 2 lines if you always
    'print from the same print server. Just type in your server name below and save before running.
    strPrintSrvrPath = ""
    'strPrinterName = Inputbox("Please enter the name of your network printer here:","")
    
    If strFullPath = "" Then
    strFullPath = strPrintSrvrPath & strPrinterName
    End If
    WshNetwork.AddWindowsPrinterConnection strFullPath
    Msgbox "Printer " & strFullPath & " Installed"

  2. #2
    Join Date
    Dec 2007
    Posts
    2,291
    the Microsoft Technet Script Center Repository may assist you for this :-)
    http://www.microsoft.com/technet/scr....mspx?mfr=true

Similar Threads

  1. Printer Script Issue on my Network Printer
    By loll in forum Networking & Security
    Replies: 1
    Last Post: 17-01-2011, 11:31 PM
  2. Replies: 5
    Last Post: 17-01-2011, 10:14 PM
  3. Replies: 3
    Last Post: 14-01-2011, 10:58 PM
  4. Replies: 4
    Last Post: 08-12-2010, 10:08 AM
  5. RDP w/ Network Printer on Remote Client
    By Rosewood in forum Vista Help
    Replies: 4
    Last Post: 08-09-2010, 07:45 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,100,101.59738 seconds with 17 queries