Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1058
  • Last Modified:

Enabling 'This connection uses the following items' under NIC properties

I am using logon script to add some windows firewall ports exception settings on my server 2003 ent edition domain like 'Netsh firewall add portopening tcp XXXX name1" to all my windows xp clients.  For some reason my clients play around with the NIC properties and uncheck 'client for microsoft networks' , 'File and printer sharing' etc What is the command to put into the logon script to enable or check these items which comes under the NIC properites 'This connection uses the following items:
  • 2
1 Solution
Rob WilliamsCommented:
You cannot control that ('client for microsoft networks' , 'File and printer sharing' etc) within a basic logon script, unless possibly with VBS, but you can control it to some degree with Group Policy. Also if the users were not admins of their workstations they should not be able to change NIC options.
User Configuration | Administrative templates | Network | Network connections | Prohibit Enabling/Disabling components of a LAN connection
(there are other similar policies in the same 'folder' you may want to look at)

You can also define the port exceptions within group policy if you like:
Computer configuration | administrative templates | network | network connections | domain Profile | Windows firewall: Define port exceptions
The nice thing about group policy is you can define different domain and standard firewall configurations. Standard are applied when the domain is not available, i.e on laptops when out of the office, and you do not want the port exceptions enabled.
amanzoorNetwork infrastructure AdminAuthor Commented:
Thanks Robwill
I will look into applying the group policy.  Thanks for your time.
Rob WilliamsCommented:
You are very welcome, thank you amanzoor. Good luck with it.

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now