|
|
 |
|
|
Pages: 1
Router and Printer Question
(Click here to view the original thread with full colors/images)
Posted by: scj6771
I have 2 questions and since they both pertain to networking I thought I would post them at once.
1. This question I am sure has been posted before, but after working on this problem and doing some research I still have some issues.
What will it take for me to run the Add a Printer Wizard on a remote machine? if I run this "rundll32 printui.dll,PrintUIEntry /il /c\\machine" it will no doubt run the wizard on that machine, however it will not give me the option to install a network printer, only a local printer. As I am sure you all know that when a user logs into a Win XP machine and configure a printer that printer does not stick when the next user logs in, installing printers for every user that uses that same machine becomes quite daunting task.
2. Is there a way for me to find out exactly what ports are open and closed on my DLINK DL-524 router? I know how to open and close them manually but I would like to see a list of all the ports that are used and un-used. Also my daughter like to abuse her AIM rights, what I would like to do is time out that port (5190) after 30 minutes of use. Can that be done? using the GUI interface of my router config page I can either shut down the port or specify a time when that port can be used, since I never know when exactly she will ask to use the computer I would like to just "time out" that port after a certain amount of time has passed if possible. Even if a third party software needs to be addressed I would be interested. Thank you all for your time.
Posted by: scj6771
Wow....maybe I am posting in the wrong spot!!!!!
Posted by: scj6771
Could someone take a look at this (thanks for the link) and see if they can figure it out? not sure what I am doing wrong, put in the destination then print server\printer name.......I get an error that states "Unable to add the per machine printer connection" Or if I simply go this route
"rundll32 printui.dll,PrintUIEntry /ga /in /c\\"destination"\ /n\"PrintServer"\PrinterName" Nothing happens? no error or anything?
@Echo off
REM this command file will add a network printer to a computer remotely
REM the parameters are:
REM 1 - the name of the computer to which the network printer is to be added
REM 2 - the UNC name of the printer to be added
REM for example, to add the printer called ThePrinter that is shared from the computer PrintServer
REM to the computer called TheClient:
REM key this command in a Command Prompt window:
REM addglobalprinterremotely theclient printserver\theprinter
REM add the specified printer to the specified computer
@Echo On
rundll32 printui.dll,PrintUIEntry /ga /c\\%1 /n\\%2
@Echo off
REM stop the print spooler on the specified computer and wait until the sc command finishes
@Echo On
start /wait sc \\%1 stop spooler
@Echo off
REM start the print spooler on the specified computer and wait until the sc command finishes
@Echo On
start /wait sc \\%1 start spooler
Posted by: scj6771
UPDATE:
I did get this command to work:
rundll32printui.dll,PrintUIEntry /ga/c\\"COMPUTERNAME" /n\\"SERVERNAME"\"PRINTERNAME"
I successfully added a printer remotely to another machine, as I stopped and started the print spooler service the printer did show up but I could not print to it, could not get the printer to communicate, said it was offline.
Since we are on the subject, is there a way to find out what printers a user has installed quickly by say perhaps a command line?
|
|
|
|
|