A useful bit of code if you're automating deployments.
Use Case: A forwarder with multiple network cards. If you want to force Logscape to use a certain LAN for example, you have to set the -Dnet.iface parameter with the ETH device number - which on Windows Hosts is found using the NetworkList.bat script found in the scripts folder.
This PowerShell simply runs that script, compares it to the LAN name you wish to use and then sets the value in the boot.properties file.
Text in red should be altered for your deployment: which NetAdapter you want as well as the Logscape path.