Login script won't map printers on Windows 7

marjontrav
marjontrav used Ask the Experts™
on
I have a login script that we use to map drives and printers on the domain.  It works fine on XP machines but not on Windows 7 clients.  Here is a what  code I am using in the VB Script:

'Install Printers
WSHNetwork.AddWindowsPrinterConnection "\\server1\KM-4035-3"
WSHNetwork.AddWindowsPrinterConnection "\\server1\KM-4035-2"
WSHNetwork.AddWindowsPrinterConnection "\\server1\BrotherH"
WSHNetwork.AddWindowsPrinterConnection "\\server1\LexmarkC522"
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
Windows 7 is touchy about adding printers, where I work we had to create a gpo that allowed proper premissions to take place for windows 7 to install printers. The gpo is as follows:
Computer Configuration\Policies\Administrative Templates\Printers
Point and Print Restrictions Enabled  
Users can only point and print to these servers: Disabled
Enter fully qualified server names separated by semicolons  
Users can only point and print to machines in their forest Enabled
 
Security Prompts:
When installing drivers for a new connection: Do not show warning or elevation prompt
When updating drivers for an existing connection: Do not show warning or elevation prompt
This setting only applies to:
Windows Vista and later
 

Author

Commented:
Yeah, with Vista it would at least prompt to install the printer driver but then again, I didn't install many vista machines on my network.  Thanks!

Commented:
One last thought, Another thing to try is using GPO preferences to deploy your printers. User side config or a computer side config I believe. This helps elminate scripts and it's incrediably easy to manage.

Author

Commented:
Actually looking in GP I don't have that path.  Our DC is running 2003, can this be done in 2003?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial