+ Post New Thread
Results 1 to 13 of 13
Wireless Networks Thread, Problem assigning printers at logon - SOLVED in Technical; We have a simple script which we are trying to use to assign printers to pc's when the user logs ...
  1. #1
    richard
    Guest

    Problem assigning printers at logon - SOLVED

    We have a simple script which we are trying to use to assign printers to pc's when the user logs on. When the script is run manually it works fine but if we and run it at logon via a group policy it doesn'y work.

    Anyone got any ideas?

  2. #2
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    5,011
    Thank Post
    120
    Thanked 282 Times in 260 Posts
    Rep Power
    108

    Re: Problem assigning printers at logon

    What is the script?

  3. #3

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,804
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224

    Re: Problem assigning printers at logon

    Are you running it (or a similar script) at machine startup. If not, the PC's wont have the printer drivers loaded on them. Thus the mapping will fail when the users login.

  4. #4
    richard
    Guest

    Re: Problem assigning printers at logon

    Here is the script that we are using:

    Code:
    Option Explicit
    Dim objNetwork, strLocal, strUNCPrinter1, strUNCPrinter2
    strUNCPrinter1 = "\\Server1d\Brother HL-5270DN Library 1"
    strUNCPrinter2 = "\\Server1d\Brother HL-5270DN Library 2"
    Set objNetwork = CreateObject("WScript.Network") 
    objNetwork.AddWindowsPrinterConnection strUNCPrinter1
    objNetwork.AddWindowsPrinterConnection strUNCPrinter2
    objNetwork.SetDefaultPrinter "\\Server1d\Brother HL-5270DN Library 1"
    
    
    WScript.Quit

  5. #5

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,804
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224

    Re: Problem assigning printers at logon

    So are the drivers for the printers on the PCs then?

  6. #6
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    5,011
    Thank Post
    120
    Thanked 282 Times in 260 Posts
    Rep Power
    108

    Re: Problem assigning printers at logon

    It looks ok but have you checked the issues as Geoff has suggested eg does it run as a logon script after you have run it manually? This would suggest it is a permission issue and you will need to add that script as a startup script as well as suggested. Otherwise there should be some error in the event log.

  7. #7
    richard
    Guest

    Re: Problem assigning printers at logon

    The drivers are installed on the server and pulled down when the printer is installed. I'll try it as a startup script instead of running it at the the logon.

  8. #8

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,804
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224

    Re: Problem assigning printers at logon

    Normal users do not have sufficient permissions to install/update printer drivers via login script.

  9. #9
    richard
    Guest

    Re: Problem assigning printers at logon

    Quote Originally Posted by Geoff
    Normal users do not have sufficient permissions to install/update printer drivers via login script.
    Even tried it when I login with my account which has administrator privledges and it still doesn't work.

  10. #10

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,804
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224

    Re: Problem assigning printers at logon

    Is anything logged in the event log?

  11. #11
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    5,011
    Thank Post
    120
    Thanked 282 Times in 260 Posts
    Rep Power
    108

    Re: Problem assigning printers at logon

    Are you sure the script is actually running? Add something like
    Code:
    wscript.echo "Script has run"
    to make sure.

  12. #12
    richard
    Guest

    Re: Problem assigning printers at logon

    Quote Originally Posted by ChrisH
    Are you sure the script is actually running? Add something like
    Code:
    wscript.echo "Script has run"
    to make sure.
    The script is running but it still installing the printers :cry:

  13. #13
    richard
    Guest

    Re: Problem assigning printers at logon - SOLVED

    Result. After doing a bit of trial and error I have got it working by running it from the "Run these programs at user logon" option in the group policy.

    For those how don't know where it is here's the path.

    Computer Configuration - Administrative Templates - System - Logon

    It now works like a charm. Thanks for all your help.

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 15
    Last Post: 2nd November 2009, 05:21 PM
  2. Replies: 50
    Last Post: 19th May 2008, 12:24 PM
  3. Solved one problem, another arises
    By Gambit in forum Windows
    Replies: 4
    Last Post: 31st March 2007, 04:28 PM
  4. XP slow printing to shared printers solved
    By SimpleSi in forum Windows
    Replies: 2
    Last Post: 12th November 2006, 03:20 AM
  5. SIMS.Net - problem importing new reports [SOLVED]
    By Irazmus in forum MIS Systems
    Replies: 31
    Last Post: 12th October 2006, 02:02 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
  •