Featured image of post Automating with PowerShell: Unifi PowerShell module and creating network maps

Automating with PowerShell: Unifi PowerShell module and creating network maps

So this blog is a two for one as I’m on vacation right now and enjoying some time off. First I’d like to tell you about a new module I’ve created and am starting to work on some more. Last week I’ve had a small thread on twitter with a friend that said something like “I’d love a tool that creates a draw.io network map for me” and I figured that would be a pretty cool tool too.

Network mapping with PowerShell

After some figuring out it seems that Draw.io allows you to import data as a CSV. I’ve created a PowerShell module that scans your entire network and creates a cool overview using the draw.io standard CSV. This makes it easy to perform a quick scan and see all devices immediately. It currently does some “Guess-smart” matching on what the device type is, but I’m expanding the module rapidly.

To find this project, check out the github page here. Using it is dead simple, the following creates a network map file in C:\Temp

install-module PsdrawIO
New-Networkmap -Network -Layout organic | out-file "C:\Temp\Example.csv"

Which looks like this as the end result;

ExampleUnifi PowerShell module

Next up is a module that is not mine. A friend of mine asked me for some help in creating his first module and I was glad to help him because it’s a pretty awesome project. The Unifi PowerShell module allows you to connect to any Unifi Controller and extract data easily. This could make monitoring and documenting Unifi infrastructure a whole lot simpler.

If you wanna check out that module, check the github page here. Michael has done an amazing job on this.

And that’s it! as always, Happy Powershelling

All blogs are posted under AGPL3.0 unless stated otherwise
comments powered by Disqus
Built with Hugo
Theme Stack designed by Jimmy