+ Post New Thread
Results 1 to 6 of 6
Scripts Thread, Mapping to a IP address printer via Script in Coding and Web Development; Hello At present I am using a script through GP to all users, the script simply connects a printer that ...
  1. #1

    Join Date
    Jan 2010
    Location
    Chester
    Posts
    3
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Mapping to a IP address printer via Script

    Hello

    At present I am using a script through GP to all users, the script simply connects a printer that is shared through the server, ie

    maps \\server\hpprinter

    However the print spooler seems to be stopping on the server

    I would like to change it so that each computer maps direct to the printer (as it has a network card)

    Is there anyway of doing this?

    Thanks

  2. #2

    Join Date
    Aug 2005
    Location
    London
    Posts
    3,154
    Thank Post
    114
    Thanked 527 Times in 450 Posts
    Blog Entries
    2
    Rep Power
    123
    Should be able to do it with a combination of prnport.vbs and prnmgr.vbs (both in the standard windows build). First will add the port and the second can connect a printer to it.

    I really, really, wouldn't do this - it's a nightmare to maintain if ever the printer changes and it would be much better to find out what's wrong on the server!

    Can you (even temporarily) put this particular printer on a different server?? that might help you to isolate the fault.

  3. #3
    Gerry's Avatar
    Join Date
    Jun 2007
    Location
    North Wales
    Posts
    431
    Thank Post
    60
    Thanked 38 Times in 35 Posts
    Rep Power
    24
    Spooler service could be affected by the printer driver - I've had problems in the past with some HP PCL drivers, but fine with the PS equivalent. I've had to use older drivers in same cases too. Also, by default, I think services are set to twice restart after 1 minute, but subsequent failures are set to "Take No Action", which resets after 1 day.

  4. #4

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    11,095
    Thank Post
    857
    Thanked 2,680 Times in 2,273 Posts
    Blog Entries
    9
    Rep Power
    769
    I agree with the others that it is a much better solution to fix the issue on the server if you can. The quick dirty fix is to have a scheduled task stop and start the print spooler service every half hour or so but it is probably a dodgy driver so the first step would be to upgrade all of the printer drivers to the latest versions and see if that helps.

    If you do decide to go ahead with the local printer mapping there is another thread here An odd one... shared printer > IP port? which details a simmilar solution.

  5. #5
    MicrodigitUK's Avatar
    Join Date
    May 2007
    Location
    Wiltshire
    Posts
    332
    Thank Post
    37
    Thanked 54 Times in 50 Posts
    Rep Power
    24
    Quote Originally Posted by Gerry View Post
    Spooler service could be affected by the printer driver - I've had problems in the past with some HP PCL drivers, but fine with the PS equivalent. I've had to use older drivers in same cases too. Also, by default, I think services are set to twice restart after 1 minute, but subsequent failures are set to "Take No Action", which resets after 1 day.
    I had this problem with a HP Color LaserJet CP1510 Printer series where the PCL6 driver would just crash the spooler on the server and desktops but the PostScript driver was fine. Every now and then we get the ode print where the fonts are different but the users can live with that. I did loge a call with HP about the PCL6 driver and was basically told the printer was not designed for large network use and aimed at small biasness and home market, that was that.

  6. #6
    BatchFile's Avatar
    Join Date
    Aug 2007
    Location
    Cumbria
    Posts
    948
    Thank Post
    544
    Thanked 128 Times in 106 Posts
    Rep Power
    60
    For a while I had an (awful) Xerox network printer that did this - my pragmatic solution was to have a scheduled task running that restarted the spooler service every 10 mins IIRC...

    in the end it ended up connected to a workstation - then as soon as the warranty expired it died anyway

SHARE:
+ Post New Thread

Similar Threads

  1. Printer Mapping as x
    By nicklec in forum Scripts
    Replies: 3
    Last Post: 7th October 2008, 12:29 PM
  2. Help with drive mapping script edit
    By Andie in forum Scripts
    Replies: 2
    Last Post: 6th October 2008, 09:05 AM
  3. Replies: 13
    Last Post: 20th February 2008, 04:29 PM
  4. Logon script & Printer script question.
    By Galway in forum Windows
    Replies: 3
    Last Post: 29th August 2007, 11:00 AM
  5. Echnage 2003 address mapping
    By Dos_Box in forum Windows
    Replies: 7
    Last Post: 18th January 2006, 07:44 PM

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
  •