Link to home
Start Free TrialLog in
Avatar of Jason210
Jason210Flag for Sweden

asked on

Problem Sharing a Printer

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
Avatar of Yan_west
Yan_west

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"
SOLUTION
Avatar of adamdrayer
adamdrayer
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jason210

ASKER

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.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi

Yes, we just did it by hostname and it was fine with 0ms highest.
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.