+ Post New Thread
Results 1 to 6 of 6
Windows Server 2008 R2 Thread, Printer Script in Technical; Hi All, I currently have server 2008r2 running, I have a fe XP client machines who require a printer installing, ...
  1. #1

    Join Date
    Mar 2012
    Location
    UK
    Posts
    28
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Printer Script

    Hi All,

    I currently have server 2008r2 running, I have a fe XP client machines who require a printer installing, I written the following script but the printer is not showing for the user?? am I missing anything???


    On Error Resume Next

    Dim Net

    Set Net = CreateObject("WScript.Network")

    Printer1 = "\\rum-ps-01\ASD"

    Net.AddWindowsPrinterConnection Printer1

    Net.SetDefaultPrinter Printer1

    I have created a GPO and set the user logon script to the one above

  2. #2

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    13,630
    Thank Post
    734
    Thanked 1,692 Times in 1,506 Posts
    Rep Power
    434
    Do you have the correct 32bit & 64bit driver installed on the print server?

    Ben

  3. #3
    tosh74's Avatar
    Join Date
    Dec 2006
    Location
    Scotland
    Posts
    136
    Thank Post
    27
    Thanked 43 Times in 27 Posts
    Rep Power
    23
    Try assigning the above script to the machine startup scripts. I am assuming that printers are assigned by room

  4. #4

    Join Date
    Mar 2012
    Location
    UK
    Posts
    28
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    on the print server under print management all i have under enviroment is windows x64

  5. #5
    Duke5A's Avatar
    Join Date
    Jul 2010
    Posts
    819
    Thank Post
    84
    Thanked 136 Times in 116 Posts
    Blog Entries
    8
    Rep Power
    32
    Quote Originally Posted by tosh74 View Post
    Try assigning the above script to the machine startup scripts. I am assuming that printers are assigned by room
    I'm pretty sure this type of printer connection is a per user connection, so it'll have to run under a logon script.

    @rpanchal
    The script looks right. If you take the On Error Resume Next line out does it through up an error code?
    Last edited by Duke5A; 14th September 2012 at 05:17 PM.

  6. #6

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    13,630
    Thank Post
    734
    Thanked 1,692 Times in 1,506 Posts
    Rep Power
    434
    If you are deploying the printer to a 32bit windows xp client and the driver doesn't exist on the client or the server how do you expect it to install the driver?

    Ben



SHARE:
+ Post New Thread

Similar Threads

  1. A Printer Script
    By Ric_ in forum Scripts
    Replies: 164
    Last Post: 1st October 2010, 11:11 AM
  2. Replies: 21
    Last Post: 11th July 2006, 08:37 PM
  3. Printer Scripts
    By Gordie in forum Windows
    Replies: 1
    Last Post: 21st February 2006, 05:35 PM
  4. printer scripts again!
    By chrbb in forum Windows
    Replies: 4
    Last Post: 10th February 2006, 01:19 PM
  5. Add printer script not workling
    By mark in forum Windows
    Replies: 6
    Last Post: 15th September 2005, 11:07 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •