MBSA (Microsoft Baseline Security Analyzer) is a free tool provided by Microsoft. Its purpose is to scan systems to determine the systems security posture. Most people run it as a gui, but it also has a cmdline option which allows for scripting and automation of tasks. In this post I’ll show you how to run mbsacli the cmdline version of mbsa.