Announcement

Collapse
No announcement yet.

Logon script cannot map network printers to Windows7 clients.

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Logon script cannot map network printers to Windows7 clients.

    Hello everyone,

    We have met a little problem when trying to map network printers to windows 7 clients by using .vbs logon script from group policy.

    We are using SBS 2003 as DC and printer server, and one GPO was created for logon script. The script was working fine on windows XP clients, but doesn't work on windows 7 clients. Our clients are all running 32bits OS both for winXP and Windows 7. The model of the printers that we are using are: HP laserjet P2055dn, HP laserjet P2035n and DELL laser printer 1700n, all the drivers for printers has been installed on the SBS server correctly.

    I have disable the UAC for the user and add the user into local administrators group, but it still doesn't work. When a user logon to the windows 7 client, there were no network printer icon shown in 'devices and printers' except the default ones which are created by OS.

    Please check our script below, it's very simple:

    Code:
    Option Explicit
    Dim objNetwork, strUNCPrinter1, strUNCPrinter2, strUNCPrinter3
    strUNCPrinter1 = "\\192.168.30.20\Public"
    strUNCPrinter2 = "\\192.168.30.20\Office laser_01"
    strUNCPrinter3 = "\\192.168.30.20\Admin laser"
    Set objNetwork = CreateObject("WScript.Network") 
    objNetwork.AddWindowsPrinterConnection strUNCPrinter1
    objNetwork.AddWindowsPrinterConnection strUNCPrinter2
    objNetwork.AddWindowsPrinterConnection strUNCPrinter3
    objNetwork.SetDefaultPrinter strUNCPrinter1
    WScript.Quit
    Does anybody had the problem? How did you resolve it?

    Please help me on this issue, thanks a lot!
    Last edited by biggles77; 30th March 2012, 14:24. Reason: Wrap script with CODE tag

  • #2
    Re: Logon script cannot map network printers to Windows7 clients.

    If you run the script manually, does it give any errors?
    Tom Jones
    MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
    PhD, MSc, FIAP, MIITT
    IT Trainer / Consultant
    Ossian Ltd
    Scotland

    ** Remember to give credit where credit is due and leave reputation points where appropriate **

    Comment


    • #3
      Re: Logon script cannot map network printers to Windows7 clients.

      Originally posted by Ossian View Post
      If you run the script manually, does it give any errors?
      Thanks for your reply.

      There are no error when I run it manually.

      Comment


      • #4
        Re: Logon script cannot map network printers to Windows7 clients.

        One update: I found that the script can run on those windows 7 clients which are already have the network printer drivers installed.

        I suppose that the problem is SBS server cannot 'push' the drivers to those new windows 7 clients, but I already installed all needed drivers on SBS server.

        How could that happed?

        Comment


        • #5
          Re: Logon script cannot map network printers to Windows7 clients.

          i had experience this before. turned out, i setup another 2008 server dedicated for 64bits driver for Win7 clients.

          Comment

          Working...
          X