Solved

Group Policies

Posted on 2004-04-21
2
237 Views
Last Modified: 2010-03-18
Hey guys:

Have another one;  I need to push all 5 of my network printers to all user on the network (tired of installing them manually).  I know there is a way to do this with scripts and/or group policies.  How do I go about this please?  Any Ideas.

thanks to diggisaur for helping out last time!!
0
Comment
Question by:unvega
2 Comments
 
LVL 3

Accepted Solution

by:
following earned 50 total points
Comment Utility
Here's 2 ways to do it:

 - assign a logon script in the properties of each individual user

 - put the users in an OU and configure a logon script in a GPO for that OU

I like to use vbscript for logon scripts.  Here's a sample script for installing a network printer using vbscript:

Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.AddWindowsPrinterConnection "\\PrintServer\Printer1"
WshNetwork.AddWindowsPrinterConnection "\\PrintServer\Printer2"
WshNetwork.SetDefaultPrinter "\\PrintServer\Printer1"

You can get fancy with vbscript and use the Select...Case statement or If...Then statements to set the default printer based on the name of the computer, etc.

Hope this helps,
-jdm

0
 
LVL 30

Expert Comment

by:Gareth Gudger
Comment Utility
Yea logon scripts are the only way to really do it.

I wish Microsoft would allow you to assign printers like you can software via GPO. :)
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

A brief overview to explain gateways, default gateways and static routes OR NO - you CANNOT have two default gateways on the same server, PC or other Windows-based network device. In simple terms a gateway is formed when a computer such as a serv…
I'm a big fan of Windows' offline folder caching and have used it on my laptops for over a decade.  One thing I don't like about it, however, is how difficult Microsoft has made it for the cache to be moved out of the Windows folder.  Here's how to …
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now