Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Printer logon script doesn't work with Vista

Reply
Thread Tools Display Modes

Printer logon script doesn't work with Vista

 
 
D.P. Roberts
Guest
Posts: n/a

 
      04-30-2008
Domain/AD environment where dcs are Win2k3 and print server is Win 2000
Server. The following logon script is used to map HP Laserjet 4200/4250
printers:

Set WshNetwork = CreateObject("WScript.Network")
Set WshShell = CreateObject("WScript.Shell")
WshNetwork.AddWindowsPrinterConnection \\printserver\printername

This works fine on all our XP clients but not on our Vista clients, even
though the printers have been configured with vista drivers on the print
server. When logging on to a Vista client, the printers are not installed
and the following message is displayed:

"To use the shared printer \\printserver\printername, you need to install
the printer driver on your computer. If you do not recognize or trust the
name and location of the printer, do not install the driver."

The user then has the option to Install the driver, but it requires
administrative access to do so (our users are not admins).


Any suggestions?


 
Reply With Quote
 
 
 
 
Matt S
Guest
Posts: n/a

 
      05-01-2008
First thing I recommend is upgrading your print server to Win2k3 R2... there
is a new Print Management option which allows deployment of printers through
Group Policy. This has been a huge help for me. You can deploy printers to
various groups of people or various groups of computers. It is quite
flexible.

The best thing about deploying printers this way is that Vista automatically
installs the printer when it sees a change in the GPO.

Otherwise, if you don't want to upgrade, it may be a local security policy
setting disallowing certain users to "Install printers". This should be able
to be set from a GPO also.

Good luck


"D.P. Roberts" <> wrote in message
news:...
> Domain/AD environment where dcs are Win2k3 and print server is Win 2000
> Server. The following logon script is used to map HP Laserjet 4200/4250
> printers:
>
> Set WshNetwork = CreateObject("WScript.Network")
> Set WshShell = CreateObject("WScript.Shell")
> WshNetwork.AddWindowsPrinterConnection \\printserver\printername
>
> This works fine on all our XP clients but not on our Vista clients, even
> though the printers have been configured with vista drivers on the print
> server. When logging on to a Vista client, the printers are not installed
> and the following message is displayed:
>
> "To use the shared printer \\printserver\printername, you need to install
> the printer driver on your computer. If you do not recognize or trust the
> name and location of the printer, do not install the driver."
>
> The user then has the option to Install the driver, but it requires
> administrative access to do so (our users are not admins).
>
>
> Any suggestions?
>
>

 
Reply With Quote
 
D.P. Roberts
Guest
Posts: n/a

 
      05-01-2008
Thanks, Matt. We are already deploying printers to groups of people and
computers with Group Policy (via logon scripts configured in GPOs) - are you
talking about something different? If so, where in GP are these settings?

"Matt S" <> wrote in message
news:...
> First thing I recommend is upgrading your print server to Win2k3 R2...
> there is a new Print Management option which allows deployment of printers
> through Group Policy. This has been a huge help for me. You can deploy
> printers to various groups of people or various groups of computers. It is
> quite flexible.
>
> The best thing about deploying printers this way is that Vista
> automatically installs the printer when it sees a change in the GPO.
>
> Otherwise, if you don't want to upgrade, it may be a local security policy
> setting disallowing certain users to "Install printers". This should be
> able to be set from a GPO also.
>
> Good luck
>
>
> "D.P. Roberts" <> wrote in message
> news:...
>> Domain/AD environment where dcs are Win2k3 and print server is Win 2000
>> Server. The following logon script is used to map HP Laserjet 4200/4250
>> printers:
>>
>> Set WshNetwork = CreateObject("WScript.Network")
>> Set WshShell = CreateObject("WScript.Shell")
>> WshNetwork.AddWindowsPrinterConnection \\printserver\printername
>>
>> This works fine on all our XP clients but not on our Vista clients, even
>> though the printers have been configured with vista drivers on the print
>> server. When logging on to a Vista client, the printers are not installed
>> and the following message is displayed:
>>
>> "To use the shared printer \\printserver\printername, you need to install
>> the printer driver on your computer. If you do not recognize or trust the
>> name and location of the printer, do not install the driver."
>>
>> The user then has the option to Install the driver, but it requires
>> administrative access to do so (our users are not admins).
>>
>>
>> Any suggestions?
>>
>>


 
Reply With Quote
 
Matt S
Guest
Posts: n/a

 
      05-01-2008
Hi again,

I am pretty sure I used this site:
http://www.windowsnetworking.com/art...indows-R2.html
as a reference to deploy printers...

There is actually a new feature built into Windows Server 2003 R2. The only
script I use in the process is running the Printer Push Connection
executable at login on my XP machines. Vista has this built in and does it
automatically when GP refreshes. It is very nice!

In an environment where printer deployments start getting complex I think it
is great! We deploy the printer through group policy and then physically
deliver the printer to the department requiring it. If we deploy it days in
advance they will already have the printer deployed to their workstation!

It even successfully deploys to Terminal Services servers.

Good luck, keep asking questions if you need


"D.P. Roberts" <> wrote in message
news:...
> Thanks, Matt. We are already deploying printers to groups of people and
> computers with Group Policy (via logon scripts configured in GPOs) - are
> you talking about something different? If so, where in GP are these
> settings?
>
> "Matt S" <> wrote in message
> news:...
>> First thing I recommend is upgrading your print server to Win2k3 R2...
>> there is a new Print Management option which allows deployment of
>> printers through Group Policy. This has been a huge help for me. You can
>> deploy printers to various groups of people or various groups of
>> computers. It is quite flexible.
>>
>> The best thing about deploying printers this way is that Vista
>> automatically installs the printer when it sees a change in the GPO.
>>
>> Otherwise, if you don't want to upgrade, it may be a local security
>> policy setting disallowing certain users to "Install printers". This
>> should be able to be set from a GPO also.
>>
>> Good luck
>>
>>
>> "D.P. Roberts" <> wrote in message
>> news:...
>>> Domain/AD environment where dcs are Win2k3 and print server is Win 2000
>>> Server. The following logon script is used to map HP Laserjet 4200/4250
>>> printers:
>>>
>>> Set WshNetwork = CreateObject("WScript.Network")
>>> Set WshShell = CreateObject("WScript.Shell")
>>> WshNetwork.AddWindowsPrinterConnection \\printserver\printername
>>>
>>> This works fine on all our XP clients but not on our Vista clients, even
>>> though the printers have been configured with vista drivers on the print
>>> server. When logging on to a Vista client, the printers are not
>>> installed and the following message is displayed:
>>>
>>> "To use the shared printer \\printserver\printername, you need to
>>> install the printer driver on your computer. If you do not recognize or
>>> trust the name and location of the printer, do not install the driver."
>>>
>>> The user then has the option to Install the driver, but it requires
>>> administrative access to do so (our users are not admins).
>>>
>>>
>>> Any suggestions?
>>>
>>>

>

 
Reply With Quote
 
ShowbizJim
Guest
Posts: n/a

 
      05-14-2008


"Matt S" wrote:

> Hi again,
>
> I am pretty sure I used this site:
> http://www.windowsnetworking.com/art...indows-R2.html
> as a reference to deploy printers...
>
> There is actually a new feature built into Windows Server 2003 R2. The only
> script I use in the process is running the Printer Push Connection
> executable at login on my XP machines. Vista has this built in and does it
> automatically when GP refreshes. It is very nice!
>
> In an environment where printer deployments start getting complex I think it
> is great! We deploy the printer through group policy and then physically
> deliver the printer to the department requiring it. If we deploy it days in
> advance they will already have the printer deployed to their workstation!
>
> It even successfully deploys to Terminal Services servers.
>
> Good luck, keep asking questions if you need
>
>
> "D.P. Roberts" <> wrote in message
> news:...
> > Thanks, Matt. We are already deploying printers to groups of people and
> > computers with Group Policy (via logon scripts configured in GPOs) - are
> > you talking about something different? If so, where in GP are these
> > settings?
> >
> > "Matt S" <> wrote in message
> > news:...
> >> First thing I recommend is upgrading your print server to Win2k3 R2...
> >> there is a new Print Management option which allows deployment of
> >> printers through Group Policy. This has been a huge help for me. You can
> >> deploy printers to various groups of people or various groups of
> >> computers. It is quite flexible.
> >>
> >> The best thing about deploying printers this way is that Vista
> >> automatically installs the printer when it sees a change in the GPO.
> >>
> >> Otherwise, if you don't want to upgrade, it may be a local security
> >> policy setting disallowing certain users to "Install printers". This
> >> should be able to be set from a GPO also.
> >>
> >> Good luck
> >>
> >>
> >> "D.P. Roberts" <> wrote in message
> >> news:...
> >>> Domain/AD environment where dcs are Win2k3 and print server is Win 2000
> >>> Server. The following logon script is used to map HP Laserjet 4200/4250
> >>> printers:
> >>>
> >>> Set WshNetwork = CreateObject("WScript.Network")
> >>> Set WshShell = CreateObject("WScript.Shell")
> >>> WshNetwork.AddWindowsPrinterConnection \\printserver\printername
> >>>
> >>> This works fine on all our XP clients but not on our Vista clients, even
> >>> though the printers have been configured with vista drivers on the print
> >>> server. When logging on to a Vista client, the printers are not
> >>> installed and the following message is displayed:
> >>>
> >>> "To use the shared printer \\printserver\printername, you need to
> >>> install the printer driver on your computer. If you do not recognize or
> >>> trust the name and location of the printer, do not install the driver."
> >>>
> >>> The user then has the option to Install the driver, but it requires
> >>> administrative access to do so (our users are not admins).
> >>>
> >>>
> >>> Any suggestions?
> >>>
> >>>

> >


Don't know if you ever fixed this but it just sounds like Vista's UAC that's
causing the problem. If you go into the Local Security Policy in Vista, you
should be able to disable the popup prompt for driver for non-admins.

See Here :-
http://blogs.technet.com/askperf/arc...int-print.aspx
 
Reply With Quote
 
Madison
Guest
Posts: n/a

 
      05-30-2008
Hi D.P. Roberts,

I used the same codes like you to connect to specific printer to print the
job and disconnect the printer. We do not want users to have that printer
connection all the time because this printer has special paper only connected
by running the program. This program works fine with XP window but not Vista
window. Do you have any idea?


"D.P. Roberts" wrote:

> Domain/AD environment where dcs are Win2k3 and print server is Win 2000
> Server. The following logon script is used to map HP Laserjet 4200/4250
> printers:
>
> Set WshNetwork = CreateObject("WScript.Network")
> Set WshShell = CreateObject("WScript.Shell")
> WshNetwork.AddWindowsPrinterConnection \\printserver\printername
>
> This works fine on all our XP clients but not on our Vista clients, even
> though the printers have been configured with vista drivers on the print
> server. When logging on to a Vista client, the printers are not installed
> and the following message is displayed:
>
> "To use the shared printer \\printserver\printername, you need to install
> the printer driver on your computer. If you do not recognize or trust the
> name and location of the printer, do not install the driver."
>
> The user then has the option to Install the driver, but it requires
> administrative access to do so (our users are not admins).
>
>
> Any suggestions?
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Printer logon script doesn't work with Vista D.P. Roberts Windows Vista Networking 5 05-30-2008 01:44 PM
Detect Vista in Logon Script Dave Windows Vista Administration 11 05-25-2008 06:01 PM
Logon script is not visible טל ז Windows Vista Networking 0 08-09-2007 11:18 AM
Logon Script randyh@newsgroups.nospam Windows Vista General Discussion 0 11-22-2006 01:46 PM
Allways allow logon-script Jesper Hauge Windows Vista Administration 1 10-09-2006 04:32 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59