CMD prompt help

Associate
Joined
4 Apr 2006
Posts
171
Location
Hertfordshire
Im looking to make a simple script for users of my network as i plan to add a domain controller to my network.

at the moment i have got the commands to add the network drives but i have a HP Printer which has a jetirect card in it.

I have seen scripts to add locally attached printers (i.e. plugged into a LPT port) but not ones for network ones (for adding ports/printers like this: IP_192.XXX.XXX.XXX) :confused:

Does anyone know how to do this? i also want it to make the printer the default one when its added, which overides all other defaults.

Cheers :cool:
 
Look on google for vbs scripts which do this.

If you force default printer for everyone, then any default printer they set will be changed each time they log on. You could be in for some complaints if you did that.
 
get the con2prt.exe command from the Windows resource kit.

then it's something like:
con2prt.exe /cd \\server\printername


use groups and "ifmember" to seperate users into the different printer groups

.
 
At the moment every one adds the printer anyway. so no complaints. if anything they will be a bit happier with it, because it will mean that no matter what pc they use it will go to this printer. They complain more about it going to the print to file thing! lol

Look on google for vbs scripts which do this.

I've tried looking on google but I dont fully understand VBS so I have no idea which bit is right or wrong.

get the con2prt.exe command from the Windows resource kit.

then it's something like:
con2prt.exe /cd \\server\printername

I need to add the port to the computer first though, as the printer is not attached to a server like that.

Thinking about it will it be better to have the printer installed on the 'soon-to-be' domain controller and have that control the print queue? and least that would make adding the printer in CMD easier.

wha'd'ya think?
 
the more i think about it the it makes sense to have it installed on the server, as it makes it searchable as well if some one comes into the network who isnt usually on it, or i add yet another computer to it.

Its growing fast this thing!

Cheers guys.
 
Back
Top Bottom