How to Import Microsoft Defender Vulnerabilities into NinjaOne

May 29, 2026

NinjaOne Field CTO, Jeff Hunter, demonstrates how to automate the vulnerability importation from Microsoft 365 into NinjaOne. While this process can be automated using Microsoft Azure Functions or AWS Lambda, for the purposes of this demonstration we will be using an API server. Watch a video on how to setup an API server here: https://www.youtube.com/watch

Learn more about NinjaOne here: https://see.ninjaone.com/NinjaOne01Demos

This same process will work for any vulnerability scanner - here's an example for Tenable: https://github.com/jeffhunterninja/NinjaOne-Scripts/tree/main/Vulnerability%20Import/Tenable

Resources:
Script 1 to retrieve Microsoft 365 vulnerabilities: https://github.com/jeffhunterninja/NinjaOne-Scripts/blob/main/Vulnerability%20Import/Microsoft%20Defender/Retrieve-MicrosoftVulns.ps1
Script 2 to import vulnerabilities into NinjaOne: https://github.com/jeffhunterninja/NinjaOne-Scripts/blob/main/Vulnerability%20Import/Microsoft%20Defender/Import-MicrosoftVulns.ps1

Chapters

00:00 - Intro

00:44 - Entra configuration

02:51 - Custom field setup

05:39 - Import script 1

07:02 - CSV setup

08:23 - Import script 2

09:36 - Final steps

10:11 - Outro