+ Post New Thread
Results 1 to 4 of 4
Windows Thread, printer problems in Technical; not sure whether to put this in here or scripts but i think its a windows error rather than the ...
  1. #1

    Join Date
    Feb 2009
    Posts
    74
    Thank Post
    0
    Thanked 6 Times in 6 Posts
    Rep Power
    12

    printer problems

    not sure whether to put this in here or scripts but i think its a windows error rather than the script. I'm trying to add a printer to the room, sounds simple enough right.
    But i make a new policy group named f9 printer then add the script. If i add the script to the user configuration logon part the policy is filtered out. If i add the script to the computer configuration startup part the policy is in the policy list as loaded but i get no printer on login. Where am i going wrong?! here are the scripts i'm using

    printui -

    rundll32 printui.dll,PrintUIEntry /y /q /n\\fs2\f9-hl2040
    rundll32 printui.dll,PrintUIEntry /in /q /n\\fs2\f9-3600n

    VB

    ' Printers.vbs - Windows Logon Script.
    Set objNetwork = CreateObject("WScript.Network")
    objNetwork.AddWindowsPrinterConnection "\\fs2\f9-hl2040"
    objNetwork.AddWindowsPrinterConnection "\\fs2\f9-3600n"

    I'm obviously not using both scripts at the same time but i've tried both and get the same results. Also if i execute them manually when i log in they both add the printers.

    thanks

  2. #2
    cromertech's Avatar
    Join Date
    Dec 2007
    Location
    Cromer by the coast
    Posts
    731
    Thank Post
    177
    Thanked 109 Times in 97 Posts
    Rep Power
    53
    Quote Originally Posted by jason2234 View Post
    printui -

    rundll32 printui.dll,PrintUIEntry /y /q /n\\fs2\f9-hl2040
    rundll32 printui.dll,PrintUIEntry /in /q /n\\fs2\f9-3600n
    I don't have much experience with these but you may need a /ga switch in there to make it a machine added printer. i would also put them the other way round i.e. add printer then set as default

  3. #3


    Join Date
    Mar 2009
    Location
    Leeds
    Posts
    6,210
    Thank Post
    218
    Thanked 812 Times in 694 Posts
    Rep Power
    274
    best way ive found of doing per computer printers is to make a startup script that copies a shortcut to you printer script (obviously located on a shared network location with auth users read/execute) to the pcs all user startup folder that way everyime someone logs into that pc they get that pcs printers

  4. #4
    Gerry's Avatar
    Join Date
    Jun 2007
    Location
    North Wales
    Posts
    431
    Thank Post
    60
    Thanked 38 Times in 35 Posts
    Rep Power
    23
    This is the general format of a VBS script we use to set-up printers through AD:
    Code:
    Set WshNetwork = CreateObject("WScript.Network")
    on Error Resume Next
    
    Printer1="\\servername\printername"
    
    'Deletes all network printers
    Set clPrinters = WshNetwork.EnumPrinterConnections
    On Error Resume Next
    For i = 0 to clPrinters.Count - 1 Step 2
    WshNetwork.RemovePrinterConnection clPrinters.Item(i+1), true
    Next
    
    'Sets up printers
    WshNetwork.AddWindowsPrinterConnection Printer1
    WshNetwork.SetDefaultPrinter Printer1
    If you don't want to set one of the network printers as default (perhaps a USB printer is connected), then comment out or delete the last line.

    The only problem we have is if the printer driver isn't already on the PC, we have to log-in using a domain admin account to allow the driver to install. It's been making us scratch our heads for a while, but not a big problem so we haven't pursued it much.

SHARE:
+ Post New Thread

Similar Threads

  1. Printer Problems
    By HCHSAdmin in forum Hardware
    Replies: 12
    Last Post: 10th March 2009, 02:04 PM
  2. 3 separate Printer problems..
    By Little-Miss in forum Hardware
    Replies: 1
    Last Post: 3rd October 2008, 06:19 PM
  3. usb Printer Problems
    By ltunstall in forum Thin Client and Virtual Machines
    Replies: 0
    Last Post: 12th March 2008, 09:44 AM
  4. HP 1300 printer problems
    By agarrett5 in forum Hardware
    Replies: 2
    Last Post: 25th June 2007, 09:38 AM
  5. Printer Problems
    By Ric_ in forum Hardware
    Replies: 3
    Last Post: 6th September 2005, 12:57 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
  •