Announcement

Collapse
No announcement yet.

How t o create a batch file to add a service on Win XP?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How t o create a batch file to add a service on Win XP?

    I need to add a service that hv the following, description of service:SNMP, name or IP add: the IP add of the system that the service is to be added, ext port num:161, UDP, internal port num:161. Besides that, i need to enable ICMP options that allow incoming echo request, allow incoming timestamp request, allow incoming mask request and allow incoming router request. i hope to create a batch so i do not need to go through lot of steps to do this. any help? Thanks.

  • #2
    Re: How t o create a batch file to add a service on Win XP?

    It sounds like you're trying to create a firewall rule, is that what you meant?

    Comment


    • #3
      Re: How t o create a batch file to add a service on Win XP?

      Thanks for your quick reply, joeqwerty.yup....that is wat i mean...coz i have over hundred of PC to set. so a batch will be helpful

      Comment


      • #4
        Re: How t o create a batch file to add a service on Win XP?

        You can use the netsh firewall commands. I can't give you specifics because I've never done it but you should be able to figure it out with the command help.

        Comment


        • #5
          Re: How t o create a batch file to add a service on Win XP?

          You can also alternatively use Group Policy to define port exceptions.

          http://technet.microsoft.com/en-us/l.../bb490616.aspx
          Andrew

          ** Remember to give credit where credit is due and leave reputation points sigpic where appropriate **

          Comment


          • #6
            Re: How t o create a batch file to add a service on Win XP?

            And with netsh have a read on this;
            http://www.windowsnetworking.com/art...-Firewall.html
            Marcel
            Technical Consultant
            Netherlands
            http://www.phetios.com
            http://blog.nessus.nl

            MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
            "No matter how secure, there is always the human factor."

            "Enjoy life today, tomorrow may never come."
            "If you're going through hell, keep going. ~Winston Churchill"

            Comment

            Working...
            X