Hi All,
I am trying to achieve the following using powershell however so far i haven't got much success in doing what i am trying to do.
Here is the scenario. We have a SMTP(part of IIS component) relay service running on Windows Server 2003.
In inetmgr you can see active sessions, ServerName(LocalHost) > Default SMTP Virtual Server > Current Sessions.
Now what i would like to do is the following.
Teminate active sessions from all those IP address which are making more than n(5) number of connections.
- first need to enumerate all the active sessions
- then, need to find a way to group them, for example x.x.x.x is making 5 sessions and y.y.y.y
making 2
- then based on the criteria supplied for example Ip address making more than equal to 5
sessions.
- Terminate the sessions.
Later I would like to make this as schedule job which will check for the active sessions and then terminate it, if citeria mets.

Appreciate if someone can help me out here.
Regards,
v_2nas