Question : Add Port, Delete Port and Assign Port to printer ( script  please)

I need to achieve the following A.S.A.P

I need a script for the following:

Add 60 TCP/IP printer port  
Assign in the new TCP/IP Ports to 60 printers
Delete 60 TCP/IP printer port  

This is a windows 2000 environment.

Thanks.

Answer : Add Port, Delete Port and Assign Port to printer ( script  please)

This also works in a simple batch file..

rem Install the printer
rundll32 printui.dll,PrintUIEntry /in /n "\\yourserver\printshare"

rem Set printer to default printer
rundll32 printui.dll,PrintUIEntry /y /n "\\yourserver\printshare"

Greets and please reply or let me know that your problem is fixed :)
Rikke
Random Solutions  
 
programming4us programming4us