Will the script on a legacy Win 95 system also?
Main Topics
Browse All TopicsI have this script that I located on web that will install a network printer on a Win2K or XP machine and make it the default printer.
Script contents:
Set WshNetwork = CreateObject("WScript.Netw
PrinterPath = "\\server_name\printer_sha
PrinterDriver = "Full_Printer_Name"
WshNetwork.AddWindowsPrint
WshNetwork.SetDefaultPrint
End of script
However, the script will not run correctly on Win9x clients. Can anyone explain why and offer a resolution?
Thank you.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Thank you Anthony_E. Just using the the 3 lines resolved the issue. I also believe that I do not use the SetDefaultPrinter statement, this will only install the printer and leave the currently installed default printer alone.
For example, the user has a local Epson printer as default. I run the script to install the network printer. Now the user has the local Epson still as the default, but now also has the Xerox300 available.
Is this correct?
Business Accounts
Answer for Membership
by: Anthony_EPosted on 2005-03-02 at 17:19:22ID: 13445845
Well Microsoft's site says this script works, maybe just use these 3 lines which u already have in your script.. echnet/scr iptcenter/ scripts/ pr inting/cli ent/prclvb 01.mspx
- ork") erConnecti on "\\PrintServer1\Xerox300" er "\\PrintServer1\Xerox300" -
Script from here: http://www.microsoft.com/t
--------------------------
Set WshNetwork = CreateObject("WScript.Netw
WshNetwork.AddWindowsPrint
WshNetwork.SetDefaultPrint
--------------------------