Discussion Locked

Network Printing

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
What is a logon scrip and how should i implement a logon script on all computers on the network to automatically add a default printer on all the computer for all the users. I will not know all the usernames but any one who loges into the network computers can print to that shared printer without having to add it to their profile? The printer must be assessed by the computer name and not by the username.

3 replies

by courtney

What is the operating system? If it is Win2K Server. You could use Group Policys with a login script to install the printer. A login script runs when people log in and will run whatever the programs says to run. Below is a sample of a ASP script that a user sent me to add these defualt printers.

Set WshNetwork = CreateObject("WScript.Network")

' Set printer path
PrinterPath = "\\server\printer"
WshNetwork.AddWindowsPrinterConnection PrinterPath

' set Default printer
WshNetwork.SetDefaultPrinter "\\server\printer"

copy the code into notepad and input as many printers as you want. Save as a .vbs extension.

You can call this from a login script.

This discussion is closed to new replies.