EdgeTransport.exe.config Cmdlet

In the previous post on this subject I mentioned that I’ve been working on a little project regarding the EdgeTransport.exe.config file. With the advent of PowerShell I decided to look into writing my own Cmdlets and the EdgeTransport file seemed like a good place to start.

To get started you’ll need to download the Cmdlet from here.

Once download you will need to extract it somewhere (in this example I just dropped it in C:\) and then install it by running the following command:
C:\Windows\Microsoft.NET\Framework64\v2.0.50727\InstallUtil.exe C:\NAMOS-HiddenTransportConfig.dll

You should get the following output:
Using InstallUtil to install the cmdlet















Next Load up PowerShell and run the following command:
Get-PSSnapin -registered

You should see something similar to the following:










Now you can either type
add-pssnapin NAMOS-HiddenTransportConfig
into the console each time or create a shortcut similar to the following:
%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -noexit -command add-pssnapin NAMOS-HiddenTransportConfig

If you typed it into your current console you will not get any feedback unless it fails:











Now that the cmdlet is installed you have two commands at your disposal:
get-HiddenTransportConfig

This will get the entire EdgeTransport.exe.config file and format it nicely:




















You can pass a single arguement to get-HiddenTransportConfig which is the name of a key to retrieve the details of just that key:












The other command at your disposal is:
get-HiddenTransportConfigDescription

This takes an arguement of a key name and then queries this website to get the most up to date description of that keys purpose.












Feel free to provide any feedback or suggestions. Please bare in mind that this software is provided AS IS without any warranty whatsoever

Leave a Reply