+ Post New Thread
Results 1 to 15 of 15
Windows Thread, unable to print to non default printers in a vb scrpit in Technical; i have a vb script that maps 3 networked printers and also sets one as default they are hp 2300n ...
  1. #1
    projector1's Avatar
    Join Date
    Nov 2005
    Posts
    460
    Thank Post
    70
    Thanked 1 Time in 1 Post
    Rep Power
    18

    unable to print to non default printers in a vb scrpit

    i have a vb script that maps 3 networked printers and also sets one as default
    they are
    hp 2300n
    hp cp 1700
    oki 9600

    The 2300 is set as the default
    If i log onto the workstation with the script assigned with the domain admin account I am able to print to the oki and 1700 and 2300. However if I log on as a standard user I am only able to print to the 2300. In the print queue for the oki and 1700 any job that is sent by the standard users appears as would be expected.

    We only had the oki and 2300 previously and they were mapped at workstation level. All users were able to print them. I have checked the permissions set on the oki and 1700.

    I also use the same script (edited) for other printers and they work without any issues.

    Server = 2000 running as a DC
    Clients = xp pro sp2
    The printer are setup with IP addresses and are shared at server level

    the printers are on the 2000 server and the script is connecting users by \\servername\printersharename


    script =
    the script i am using is

    Set WshNetwork = CreateObject("WScript.Network")
    WshNetwork.AddWindowsPrinterConnection "\\server\rdclaser"
    WshNetwork.AddWindowsPrinterConnection "\\server\rdccolour"
    WshNetwork.AddWindowsPrinterConnection "\\server\rdca3laser"
    WshNetwork.SetDefaultPrinter "\\server\rdclaser"


    i have checked the share permissions of the 2300 laser and the other two, all are set the same

    I set the 1700 as a the default stil no luck

    help!

  2. #2
    apeo's Avatar
    Join Date
    Sep 2005
    Location
    Lost
    Posts
    1,612
    Thank Post
    95
    Thanked 115 Times in 111 Posts
    Rep Power
    41

    Re: unable to print to non default printers in a vb scrpit

    Odd problem you seem to have there it sounds like a permissions problem but as you say you've already checked that... Just out of curiosity, try this(if you havent already) - Login into the workstation remove all the printers added by the script then manually add then in and see if you can print to them. Also try changing the default printer at this point and see if it has any effect (i doubt this would have a different result to be fair but worth a check). You can also temporarily assign local admins rights (on local machine) for the user and see if that has an effect.

  3. #3

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,677
    Thank Post
    3,209
    Thanked 1,030 Times in 955 Posts
    Rep Power
    361

    Re: unable to print to non default printers in a vb scrpit

    how are you applying the script, as a logon script or a startup script because it sounds like you are assigning the script on the domain admin user configuration as a logon / logoff script.

  4. #4
    projector1's Avatar
    Join Date
    Nov 2005
    Posts
    460
    Thank Post
    70
    Thanked 1 Time in 1 Post
    Rep Power
    18

    Re: unable to print to non default printers in a vb scrpit

    the scripts are startup ones.
    i have a few rooms with two or more printers, i have used the same script (modified printername) and they work fine.
    It is rather strange as the they are able to print to the 2300 laser but not the other two that are in the same script.


    apeo
    i will try that at lunchtime and get back top you
    thanks for taking time out to reply.

  5. #5

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,590
    Thank Post
    109
    Thanked 762 Times in 593 Posts
    Rep Power
    180

    Re: unable to print to non default printers in a vb scrpit

    You need to assign the script as a login script - printers are a per user resource and so a startup script isn't ideal.

    You may also find it helpful to scrub the drivers and re-install them. I found I had a similar problem with a OfficeJet K850dn which refused to work for regular users until I had scrubbed the drivers (with the HP uninstall tool) and re-loaded the latest and greatest one.

  6. #6
    projector1's Avatar
    Join Date
    Nov 2005
    Posts
    460
    Thank Post
    70
    Thanked 1 Time in 1 Post
    Rep Power
    18

    Re: unable to print to non default printers in a vb scrpit

    thanks Ric
    did you remove the drivers from the server as well or just workstation level?
    We use cse Network management software and it is there we allow the script to excute on start up.

  7. #7

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,590
    Thank Post
    109
    Thanked 762 Times in 593 Posts
    Rep Power
    180

    Re: unable to print to non default printers in a vb scrpit

    i think it was both... started a fresh so to speak.

  8. #8

    Join Date
    Jul 2005
    Location
    Corby
    Posts
    1,056
    Thank Post
    12
    Thanked 20 Times in 18 Posts
    Rep Power
    24

    Re: unable to print to non default printers in a vb scrpit

    Quote Originally Posted by projector1
    thanks Ric
    did you remove the drivers from the server as well or just workstation level?
    We use cse Network management software and it is there we allow the script to excute on start up.
    We use CSE too, and I would check that the script is applied to the correct groups in Workspace Admin. You can assign the printer script to run for any groups you add there. Have you spoken to Tony at CSE about this problem- I'm sure he would be willing to help out.

    We moved recently to Server 2003 R2 print management, and it seems to be pretty good. Our scripts are now assigned using that tool through computer configuration/startup scripts. So there should be no problem there.

    Paul

  9. #9

    Join Date
    Jul 2005
    Location
    Corby
    Posts
    1,056
    Thank Post
    12
    Thanked 20 Times in 18 Posts
    Rep Power
    24

    Re: unable to print to non default printers in a vb scrpit

    Quote Originally Posted by Ric_
    i think it was both... started a fresh so to speak.
    And we had this problem straight after instaling R2 print management Ric and fixed it by re-installing drivers on the server to the latest and then letting PMC push out the latest to clients. Seems to have worked. Admin users would be able to see the printer but normal users wouldn't- and like I said, updating the drivers fixed that "glitch" nicely. I hope.

    Paul

  10. #10
    projector1's Avatar
    Join Date
    Nov 2005
    Posts
    460
    Thank Post
    70
    Thanked 1 Time in 1 Post
    Rep Power
    18

    Re: unable to print to non default printers in a vb scrpit

    i logged onto all the workstations in the three rooms and used the microsoft printer driver

    cleanup utility to clean the drivers. i then manually installed all three printers and then

    added the unc port for the printer.
    By this method all users are able to print to the three printers.
    This proves that they have permission to print.
    I checked the cse side of things for confirmation. The vbscript was assigned to the correct

    workstations and to the staff and student group.
    The printers are mapped when users log on so the script is being applied. I am also able to

    print to one of the printers so, i am struggling to put my finger on it.
    I also deleted the script and recreated a new one.

  11. #11

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,590
    Thank Post
    109
    Thanked 762 Times in 593 Posts
    Rep Power
    180

    Re: unable to print to non default printers in a vb scrpit

    With the CSE stuff, are you able to apply a logon script to an OU? If you can, you could try that and see if it is the CSE manglement software screwing things up.

  12. #12

    Join Date
    Jul 2005
    Location
    Corby
    Posts
    1,056
    Thank Post
    12
    Thanked 20 Times in 18 Posts
    Rep Power
    24

    Re: unable to print to non default printers in a vb scrpit

    Quote Originally Posted by Ric_
    With the CSE stuff, are you able to apply a logon script to an OU? If you can, you could try that and see if it is the CSE manglement software screwing things up.
    Good suggestion actually. What with CSE autostart scripts not aherm..."autostarting" all the time, that's what I did initially. It works fine. Worth a go though, because each setup is different so there might be some "manglement" at work.

    "Where there's trouble, there's a troll"

    :-)

  13. #13

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,677
    Thank Post
    3,209
    Thanked 1,030 Times in 955 Posts
    Rep Power
    361

    Re: unable to print to non default printers in a vb scrpit

    lol @ ahem

  14. #14
    projector1's Avatar
    Join Date
    Nov 2005
    Posts
    460
    Thank Post
    70
    Thanked 1 Time in 1 Post
    Rep Power
    18

    Re: unable to print to non default printers in a vb scrpit

    what is really annoying is that when users send a job to the 1700 or 9600 they appear in the print queue as

    spooling
    deleting printing

    just as expected.
    Therefore the script must be appllying in order for the jobs to reach the print server.
    We have about 15 autostarting scripts that have never been an issue and the CSE network toolkit is a very reliable product.
    All other scripts are fully functioning and i have edited a working script, added these printers, yet still no luck

  15. #15
    projector1's Avatar
    Join Date
    Nov 2005
    Posts
    460
    Thank Post
    70
    Thanked 1 Time in 1 Post
    Rep Power
    18

    Re: unable to print to non default printers in a vb scrpit

    I added a user to the print operators group and then was able to print, so could it be a permissions issue?
    If so why would the job even register in the print queue?
    Sinking fast!

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 4
    Last Post: 22nd May 2012, 11:43 PM
  2. Replies: 15
    Last Post: 21st July 2009, 04:46 PM
  3. Replies: 4
    Last Post: 6th June 2007, 12:43 PM
  4. Set Default Printer to Machines with Local Printers
    By Heebeejeebee in forum Windows
    Replies: 15
    Last Post: 5th February 2007, 03:00 PM
  5. Print Manager Plus Printers Not Listed
    By indiegirl in forum Windows
    Replies: 11
    Last Post: 19th May 2006, 01:45 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
  •