Solved

Problem Sharing a Printer

Posted on 2004-09-07
8
166 Views
Last Modified: 2010-03-18
Hi

I am using Windows 2K Server, and a Windows XP workstation.

The printer is installed locally on the server, and shared as a resource on the network.

The printer is automatically installed on W2K machines via NETLOGON through use of the setprint.vbs script.

While it works fine on Win2K, unfortunately it does not seem to work on the XP workstation. The printer is not installed. Any idea why?

Jason
0
Comment
Question by:Jason210
  • 4
  • 3
8 Comments
 
LVL 15

Expert Comment

by:Yan_west
ID: 11996561
Hmm.. is this the syntax used in the script?

'// Name: setprint.vbs
'// Description: Add a network printer and make it the default

Set WshNetwork = CreateObject("WScript.Network")

'// Adds the printer. Substitute your server name and printer share.
WshNetwork.AddwindowsPrinterConnection "\\Server\printer"

'// Makes the specified printer the default.
WshNetwork.SetDefaultPrinter "\\Server\printer"
0
 
LVL 15

Assisted Solution

by:adamdrayer
adamdrayer earned 250 total points
ID: 11996574

Check to see if ICF is enabled:

Go into the Network Connections
Right Click the proper connection
Click Properties
Goto the Advanced Tab

Is there a check next to "Protect my computer and network by limiting or preventing access to this computer from the Internet"?

This can be preventing the printer install.  I don't recommend disabling it, however, unless you have another software firewall running.  Just do it for testing.  The better thing to do is to add the server to the list of trusted computers.  You can access this by going into Internet Explorer and clicking "Tools" -> "Internet Options" -> "Security".  Click "Trusted Sites" and then the "Sites" button.
0
 
LVL 11

Author Comment

by:Jason210
ID: 11996815
Yan west - the script is the same as the ones used on the Win2K workstation - same folder in netlogon on the server that is.

adamdrayer - you mean to say I can add the server as a internet trusted site? What do I type in then? "servername", or "domain.local" or what?

Thanks for the help all.
0
 
LVL 15

Assisted Solution

by:adamdrayer
adamdrayer earned 250 total points
ID: 11996845

Well I would first verify that it is indeed an ICF problem.  Then yes, you should add the computer to the list of trusted sites.  I believe the best way would be to use the IP address.
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 11

Author Comment

by:Jason210
ID: 11996855
Adamdrayer - there was no check next to "Protect my computer and network by limiting or preventing access to this computer from the Internet"?

This is a new laptop, and everything is therefore a clean install, so settings should be default.

Don't no if it helps, but net send is not working properly either. I can send a message to all (*) but when I choose a specific computer name it doesn't work. Says can't find message alias or something. I wonder if this is related?

/jason
0
 
LVL 15

Accepted Solution

by:
adamdrayer earned 250 total points
ID: 11998199
can you ping the W2K server by hostname?
0
 
LVL 11

Author Comment

by:Jason210
ID: 11998481
Hi

Yes, we just did it by hostname and it was fine with 0ms highest.
0
 
LVL 11

Author Comment

by:Jason210
ID: 12028682
Thanks everybody. I guess this kind of problem could have been any one of a hundred things, and your comments were ineterestimng and I learned a lot from it.

Actually, the problem turned out to be something in Windows XP. I ran the network connection setup wizard once more, just for the hello of it (normally I don't like to use wizards) and bumpff as if my magic everything worked fine again.

Question now is what to do wit the points? Thanks for your contribution Yan West, but I think Adam Slayer deserves the points - he used a lot of his time and his suggestions were very good. He didnt find the solution, but helped a lot, so a grade 'B' I think is appropriate in this case.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Greetings, Experts! First let me state that this website is top notch. I thoroughly enjoy the community that is shared here; those seeking help and those willing to sacrifice their time to help. It is fantastic. I am writing this article at th…
This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
A short film showing how OnPage and Connectwise integration works.
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

929 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

10 Experts available now in Live!

Get 1:1 Help Now