Networks Router and Printer Question

Discussion in 'Hardware' started by scj6771, 31 Aug 2005.

  1. scj6771

    scj6771 What's a Dremel?

    Joined:
    10 Dec 2004
    Posts:
    73
    Likes Received:
    0
    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.
     
  2. Glider

    Glider /dev/null

    Joined:
    2 Aug 2005
    Posts:
    4,173
    Likes Received:
    21
    On 1, if you do it with an account with administrator priviledges it does for me...

    On 2, I'm clueless :)
     
  3. trigger

    trigger Procrastinator

    Joined:
    22 Mar 2004
    Posts:
    1,098
    Likes Received:
    31
    2. Install nmap on your PC, then run a quick scan of your router's IP address, and thus you shall see all internal open ports. I've never heard of timing out a port though I'm afraid.
     
  4. scj6771

    scj6771 What's a Dremel?

    Joined:
    10 Dec 2004
    Posts:
    73
    Likes Received:
    0
    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
     
  5. scj6771

    scj6771 What's a Dremel?

    Joined:
    10 Dec 2004
    Posts:
    73
    Likes Received:
    0
    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.
     
Tags:

Share This Page