Windows OS Info – Custom Fields

By | August 30, 2022

I wanted a way to query individual values from the Windows Operating System to build better groups in Ninja. The default OS field is not very easy to work with, so this is what I did.

In Ninja, you need to create 4 text fields and add them to your roles. (This assumes you know how to create Custom Fields in Ninja.)

  • windowsOsName
  • windowsOsInstallDate
  • windowsOsVersion
  • windowsOsBuildNumber

Then import this script and add it either to a task or scheduled scripts: