Custom script for fsutil command

Custom script for fsutil command

I want to monitor the fsutil dirty bit on all the drives of a cluster server, with Opmanager script monitor.

I can check this manually with the following commands:
fsutil dirty query C:
fsutil dirty query F:
fsutil dirty query G:

and so on for each drive.

I get a response of either:
Volume - C: is Dirty
or:
Volume - C: is NOT Dirty

I want an alert for any drive that returns a dirty query, I'm ok with setting up a separate script template for each drive, but I'm not great with scripting. Any suggestions would be helpful.

Thanks,
                New to ADManager Plus?

                  New to ADSelfService Plus?