Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding Printers using GP

Status
Not open for further replies.

netwalker1

Programmer
Feb 5, 2000
1,241
EG
Adding Printers Using GP to Active Directory users :
We used VBscript for installing printers, But we need to have Windows Scripting Host v5.6 installed on our workstations otherwise we will receive an error when the script runs. Windows service pack 3 installs v5.6

1. Create VBscript using the following syntax...

Set Network = CreateObject("Wscript.Network")
Network.AddWindowsPrinterConnection "\\Server_Name\Printer_Share_Name"
Network.SetDefaultPrinter "\\Server_Name\Printer_Share_Name"


Once we have the necessary printer connections listed save this to a file with a vbs extension.

2. We now need to create a GPO (Group Policy Object).
1-Open a New GP
2-Go to User Configuration - Windows Settings - Scripts - and Double click on Logon.
3-Click Add and browse to the file created in step 1. Once it is added click OK and close all windows.


Mohamed Farid
Know Me No Pain , No Me Know Pain !!!
 
Do you try with KiXtart?. You can use it in netlogon without any installation and have functions to manipulate printers, key register and a lot of many helpful.



Certifications:
CCNA, BSCI, BCRAN, BCMSN, MCP

In Progress:
CCNP - Troubleshooting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top