+ Post New Thread
Results 1 to 5 of 5
Windows 7 Thread, Batch script to add port exceptions in Windows 7 in Technical; Hi Everyone, We use Impero here as a classroom management tool that needs over 100 port exceptions so in Win ...
  1. #1
    MNHughes's Avatar
    Join Date
    Mar 2008
    Location
    Cornwall
    Posts
    86
    Thank Post
    24
    Thanked 7 Times in 4 Posts
    Rep Power
    20

    Batch script to add port exceptions in Windows 7

    Hi Everyone,

    We use Impero here as a classroom management tool that needs over 100 port exceptions so in Win XP I've made a script that does this automatically however the same script doesn't work in Windows Vista and above, does anybody have an idea?

    Code:
    FOR /L %%I IN (start of port range here,1,end of port range here) DO netsh firewall add portopening TCP %%I "Impero services: port %%I" enable subnet
    Many Thanks,

    Martin

  2. #2

    AngryTechnician's Avatar
    Join Date
    Oct 2008
    Posts
    3,730
    Thank Post
    698
    Thanked 1,214 Times in 761 Posts
    Rep Power
    395
    If you start using the newer ADMX templates for Windows 7 you can configure this in Group Policy.

  3. #3
    MNHughes's Avatar
    Join Date
    Mar 2008
    Location
    Cornwall
    Posts
    86
    Thank Post
    24
    Thanked 7 Times in 4 Posts
    Rep Power
    20
    Quote Originally Posted by AngryTechnician View Post
    If you start using the newer ADMX templates for Windows 7 you can configure this in Group Policy.
    We only have server 2003 at the moment so no ADMX compatibility, I was being an idiot I forgot that unlike windows XP you can add port ranges in Windows 7 so there is no need to use a batch script I can just make it part of our laptop image.

    Big fan of your blog, I especially like the gerbal incident.

  4. #4

    russdev's Avatar
    Join Date
    Jun 2005
    Location
    Leicestershire
    Posts
    6,985
    Thank Post
    735
    Thanked 559 Times in 374 Posts
    Blog Entries
    3
    Rep Power
    206
    Quote Originally Posted by MNHughes View Post
    Hi Everyone,

    We use Impero here as a classroom management tool that needs over 100 port exceptions so in Win XP I've made a script that does this automatically however the same script doesn't work in Windows Vista and above, does anybody have an idea?

    Code:
    FOR /L %%I IN (start of port range here,1,end of port range here) DO netsh firewall add portopening TCP %%I "Impero services: port %%I" enable subnet
    Many Thanks,

    Martin
    Hi Martin

    Usually Impero will add in your port exceptions If using windows firewall strange if windows firewall not allowing Impero client through.

    Russell

  5. #5

    Join Date
    Apr 2010
    Posts
    2,169
    Thank Post
    111
    Thanked 192 Times in 159 Posts
    Rep Power
    85
    We only have server 2003 at the moment so no ADMX compatibility
    You can control Win7 on a 2003 network using RSAT.



SHARE:
+ Post New Thread

Similar Threads

  1. MYSql - Script batch create users & dbs
    By peterdoherty in forum How do you do....it?
    Replies: 9
    Last Post: 15th January 2014, 11:06 AM
  2. Batch script error
    By erloyaamit in forum Scripts
    Replies: 1
    Last Post: 14th October 2010, 02:09 PM
  3. dos batch file to whs script
    By davidm in forum Windows
    Replies: 3
    Last Post: 26th March 2009, 10:37 PM
  4. Batch FTP Script
    By My220x in forum Scripts
    Replies: 2
    Last Post: 23rd March 2008, 08:48 PM
  5. Shutdown batch script stalls if 1 PC is shut down
    By PrimaryTech in forum Scripts
    Replies: 8
    Last Post: 7th July 2007, 07:04 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •