I knew it would’nt take much code to do this, but there was still a little fiddling around and some odd errors along the way. Anyhow if you want to do this here is some helpful tips
Sometimes you need to include exceptions to your local desktop firewall but you only have pseudo localadmin access. Well if you enable your regedit programs by using one of my previous posts Enabling or Disabling Regedit. Then all you have to do is add your exception values in these registry key locations.
For Example , the registry key location for program exceptions is here
So to enable a firewall exception for xming.exe add a string value like below
The registry key location for port exceptions is here
So to enable TCP traffic on port 2081 add a string value like below to this location
Have immense fun 🙂
Thanks to Doug Knox for this bit of useful code if your regedit or regedt32 programs become disabled by your administrator. Save this vbs code and run.