+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 30
Windows Server 2000/2003 Thread, Print scripts very annoying issue in Technical; Good Afternoon I have used vb scripts for everyjob i have done in schools and in the nhs, i came ...
  1. #1

    Join Date
    Apr 2012
    Posts
    95
    Thank Post
    2
    Thanked 2 Times in 2 Posts
    Rep Power
    5

    Print scripts very annoying issue

    Good Afternoon

    I have used vb scripts for everyjob i have done in schools and in the nhs, i came to this school and now im having so much issues with vb scripts.

    This is the script i'm using

    Code:
    Set WshNetwork = CreateObject("WScript.Network")
    PrinterPath = "\\SERVERNAME\Sharp_MXM450N"
    PrinterDriver = "Sharp_MXM450N"
    WshNetwork.AddWindowsPrinterConnection PrinterPath, PrinterDriver
    WshNetwork.SetDefaultPrinter "\\SERVERNAME\Sharp_MXM450N"
    this has worked for all printer in the school except HP prints. Im so confused why it will not work with HP printings.

    This is the error i got

    error.jpg

    Can anyone help me out here!

    Thank you

    Ryan
    Last edited by Ryan233; 18th May 2012 at 01:23 PM.

  2. #2

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,582
    Thank Post
    107
    Thanked 761 Times in 592 Posts
    Rep Power
    179
    Missing drivers on the print server/client?

  3. #3

    Join Date
    Apr 2012
    Posts
    95
    Thank Post
    2
    Thanked 2 Times in 2 Posts
    Rep Power
    5
    The printer drivers are installed. i have tried to uninstall and then reinstall them but its still not working

  4. #4
    Mcshammer_dj's Avatar
    Join Date
    Feb 2007
    Location
    Portsmouth
    Posts
    908
    Thank Post
    35
    Thanked 154 Times in 125 Posts
    Rep Power
    54
    is this 64bit 32 bit issue??
    If you are using a 64bit server have you installed the 32 bit drivers for clients

  5. #5

    Join Date
    Apr 2012
    Posts
    95
    Thank Post
    2
    Thanked 2 Times in 2 Posts
    Rep Power
    5
    This is a 32 bit issue

    We are using 32 bit server and 32 bit cilents

  6. #6
    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
    I discovered in the past that the HP printer drivers are very picky about the names. Take alook in the inf file to see what the driver is actually being called or try the HP universal driver if it will support the printers you have. I had a hell of a job with the HP printers and once I got it working I didn't ever try an update of the driver just in case it broke it all again ;-)

  7. #7
    Mcshammer_dj's Avatar
    Join Date
    Feb 2007
    Location
    Portsmouth
    Posts
    908
    Thank Post
    35
    Thanked 154 Times in 125 Posts
    Rep Power
    54
    what type of HP printer are you having the problem with??

  8. #8

    Join Date
    Apr 2012
    Posts
    95
    Thank Post
    2
    Thanked 2 Times in 2 Posts
    Rep Power
    5
    Quote Originally Posted by cromertech View Post
    I discovered in the past that the HP printer drivers are very picky about the names. Take alook in the inf file to see what the driver is actually being called or try the HP universal driver if it will support the printers you have. I had a hell of a job with the HP printers and once I got it working I didn't ever try an update of the driver just in case it broke it all again ;-)
    I will have a look at this nd get back to you

  9. #9

    Join Date
    Apr 2012
    Posts
    95
    Thank Post
    2
    Thanked 2 Times in 2 Posts
    Rep Power
    5
    Hp Laserjet 3600/2600 and CP1525N

  10. #10

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    12,977
    Thank Post
    587
    Thanked 1,496 Times in 1,342 Posts
    Rep Power
    398
    Don't bother with specifying the driver just use:

    WNet.AddWindowsPrinterConnection PrinterPath

    Ben

  11. Thanks to plexer from:

    mac_shinobi (18th May 2012)

  12. #11

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,217
    Thank Post
    2,769
    Thanked 935 Times in 875 Posts
    Rep Power
    343
    Quote Originally Posted by plexer View Post
    Don't bother with specifying the driver just use:

    WNet.AddWindowsPrinterConnection PrinterPath

    Ben
    That's what I was going to say

  13. Thanks to mac_shinobi from:

    plexer (18th May 2012)

  14. #12

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    12,977
    Thank Post
    587
    Thanked 1,496 Times in 1,342 Posts
    Rep Power
    398
    It'll then install the driver associated with the shared printer.

    Ben

  15. Thanks to plexer from:

    mac_shinobi (18th May 2012)

  16. #13

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,217
    Thank Post
    2,769
    Thanked 935 Times in 875 Posts
    Rep Power
    343
    Quote Originally Posted by plexer View Post
    It'll then install the driver associated with the shared printer.

    Ben
    Bazinga !!

  17. #14

    Join Date
    Oct 2008
    Location
    Leeds
    Posts
    215
    Thank Post
    21
    Thanked 17 Times in 17 Posts
    Rep Power
    14
    Quote Originally Posted by mac_shinobi View Post
    That's what I was going to say
    ditto (me too)

  18. #15

    Join Date
    Apr 2012
    Posts
    95
    Thank Post
    2
    Thanked 2 Times in 2 Posts
    Rep Power
    5
    Well i tried using the suggests above and none of them worked for the HP Printers

    i tried using WNet.AddWindowsPrinterConnection PrinterPath instead and believe it or not it came up with the following error

    error.jpg

    I have tried installing different drivers and universal drivers, with no luck

SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Print script not playing ball
    By bondbill2k2 in forum Scripts
    Replies: 3
    Last Post: 21st June 2011, 10:37 AM
  2. IE8 Not Printing script
    By swordfish215 in forum Scripts
    Replies: 0
    Last Post: 18th May 2011, 12:39 PM
  3. 64bit print server, 32bit clients....issues - Fixed
    By Ambient in forum Windows Server 2008
    Replies: 7
    Last Post: 15th April 2011, 10:04 AM
  4. Smartboard - very odd issue
    By biotechlady in forum Hardware
    Replies: 11
    Last Post: 3rd December 2009, 04:42 PM
  5. Replies: 0
    Last Post: 9th September 2008, 08:17 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
  •