Windows Firewall eventscript working for both Xp and Windows 7
We have been having problems with Windows FW. rules not working. After a lot of testing and reading old threads in this forum we finaly got it working.
I have added an updated working example of our post activate powershellscript that detects witch layer RO and RW is located in. And another Pre Deactivate script that delete the firewall entrys if the pacage is deactived so the registry does not get messy.
For older SWV agents the important thing is to use small letters inside the brackets so SWV won't rewrite them in the registry(that will break everything).
Hope this will help other if they have the same problems we had.