Jump to content

Recommended Posts

Posted

I have the dreaded HP 2600n on my network.

Last week, it just stopped working

It is still listed, but offline

 

I have uninstalled and reinstalled following the instructions in the edugeek wiki

It wouldnt let me give it the same share name as before which was a bit odd...but I gave it a new one and successfully changed the logon script appropriately.

And.. I am back where I was. Can see the printer but not print to it. No error messages or anything, just a damning silence.

Can anyone help me?

Posted (edited)

I can ping it fine

I have followed the instructions in the wiki.

Still doesn't work, please can anyone help?

 

Printer allocated by login script - that's working fine. Still get no error messages on workstation, server or printer

But no printing!

 

I can't print to it even from the server.

Tried from a workstation - nothing

Then 10 mns later it printed!

CANNOT get it to do it again

Help!!

Edited by silver
Posted

Right

I have got it going - I reinstalled it all over again, following the various sets of instructions VERY carefully...and it works!!

However, if a user hovers over the print icon it only says 'microsoft image writer' is the only printer, the user has to go to file, print. Is this normal?(printers are allocated by logon script)

And...

In the printer list when the user does go to file, print, the newly installed printer has the designation \\server in front of its name, whereas the other one, also a network printer, does not. Both have the correct share names.

How can I sort this out?

Posted
Right

I have got it going - I reinstalled it all over again, following the various sets of instructions VERY carefully...and it works!!

However, if a user hovers over the print icon it only says 'microsoft image writer' is the only printer, the user has to go to file, print. Is this normal?(printers are allocated by logon script)

What it's saying is that the default printer is the MS image writer, not that it's the only one. The printer icon you're referring to sounds like the Quick print type which means, print to my default printer for speed. Any other printers need to be selected, as you said, via the file > print... menu.

 

You can set the default printer using the login script too so I'd check the scripting threads for info/examples for that.

 

In the printer list when the user does go to file, print, the newly installed printer has the designation \\server in front of its name, whereas the other one, also a network printer, does not.

Printer #1 (with the \\server) has been added to your workstation using a login script and has obviously been connected via the server share

 

Printer #2 (without the \\server) sounds like it has been added as a direct connection rather than through the server so any documents printed to that printer that way will not be spooled on \\server and won't appear on that queue.

 

It sounds like you need to edit your login script to connect to the printers via the \\server shared connection or similar.

Posted

Hmmm.. and we are back to the logon script issue:

Both logon scripts (staff and pupils) have exactly the same info about the printer:

objNetwork.AddWindowsPrinterConnection "\\server\hpit"

and

objNetwork.AddWindowsPrinterConnection "\\server\hpstaff"

and yet on a client the first one shows as '\\server\hpit and the other one shows as hpstaff.

Does this mean the the staff printer is picking up its info from somewhere else?

I will look and see how to set a default printer in vbs

Thanks for your help

Posted

Dim objShell, objFSO, msg, createfolder, strComputerName, objRegExp

Dim RoomName, strDrive, strNetShare, strPrinterPath

dim ppath

 

set objShell = WScript.CreateObject("WScript.Shell")

set objFSO = CreateObject("Scripting.FileSystemObject")

set objNetwork = CreateObject("WScript.Network")

set objRegExp = New RegExp

set objPrinters = objNetwork.EnumPrinterConnections

 

strComputerName = objNetwork.ComputerName

 

On Error Resume Next

 

'Remove any mapped printers

For nF = 0 To objPrinters.Count - 1 Step 2

objNetwork.RemovePrinterConnection objPrinters(nF + 1)

Next

 

'Map room specific printers

 

If CheckRoom("MATHS WORKROOM") Then

MapPrinter("\\MFG-MATHS\HPLJMATHS")

objNetwork.SetDefaultPrinter ("\\MFG-MATHS\HPLJMATHS")

End If

 

If CheckRoom("R11") Then

MapPrinter("\\R11-2747\R11_HP9800")

objNetwork.SetDefaultPrinter ("\\R11-2747\R11_HP9800")

End If

Posted
Both logon scripts (staff and pupils) have exactly the same info about the printer:

objNetwork.AddWindowsPrinterConnection "\\server\hpit"

and

objNetwork.AddWindowsPrinterConnection "\\server\hpstaff"

and yet on a client the first one shows as '\\server\hpit and the other one shows as hpstaff.

Does this mean the the staff printer is picking up its info from somewhere else?

It would look that way... Is it an "automatically added" type printer? or just one that's already been added in manually perhaps?

 

 

I will look and see how to set a default printer in vbs

objNetwork.SetDefaultPrinter ("\\SERVER\Printer_share")

 

... that'd do the trick..

 

 

@Dom: verbose code with examples that were helpful to anyone with a clue but less helpful without some comment as to why you were posting and/or which bits were relevant. Just a thought.

Posted

He said he was looking for a way to make a printer default - that's our printer script. I assumed he'd recognise most of it or just adapt it for what he needs.

 

Does your current script remove previously mapped printers? (you could have manually added the ones without the \\server and they just aren't being removed/re-added by the script)?

Posted
Are you using the HP Tcp/ip port or the standard Microsoft one. I used to have nothing but trouble with the HP one.
Posted

Thanks for the vote of confidence, domino, but I don't really understand the script!

I got the default bit going OK

I would really like to get rid of the \\server bit though - any ideas?

Posted

thanks, but I am SO thick - which bit do I actually put in the script?

Here's the script:

On Error Resume Next

Set objNetwork = CreateObject("WScript.Network")

objNetwork.AddWindowsPrinterConnection "\\server\hpit"

objNetwork.SetDefaultPrinter "\\server\hpit"

objNetwork.MapNetworkDrive "R:","\\server\resources"

objNetwork.MapNetworkDrive "Z:","\\server\public"

If err.number <> 0 Then

wscript.echo err.message

End If

thanks a lot

Posted
Dim objShell, objFSO, msg, createfolder, strComputerName, objRegExp

Dim RoomName, strDrive, strNetShare, strPrinterPath

dim ppath

 

set objShell = WScript.CreateObject("WScript.Shell")

set objFSO = CreateObject("Scripting.FileSystemObject")

set objNetwork = CreateObject("WScript.Network")

set objRegExp = New RegExp

set objPrinters = objNetwork.EnumPrinterConnections

 

strComputerName = objNetwork.ComputerName

 

On Error Resume Next

 

'Remove any mapped printers

For nF = 0 To objPrinters.Count - 1 Step 2

objNetwork.RemovePrinterConnection objPrinters(nF + 1)

Next

 

'Map room specific printers

 

If CheckRoom(" ROOM NAME ") Then

MapPrinter("\\SERVER\PRINTER")

objNetwork.SetDefaultPrinter ("\\SERVER\PRINTER")

End If

 

If CheckRoom(" ROOM NAME ") Then

MapPrinter("\\SERVER\PRINTER")

objNetwork.SetDefaultPrinter ("\\SERVER\PRINTER")

End If

 

Use the whole thing. Change the red bits to suite yourself (if you need more just copy from 'if checkroom... to ...End if)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...