Skip to main content

Hyper-V Integration Service Audit

Overview

This script queries all Hyper-V virtual machines and looks for any VM where the IntegrationServicesState in:

  • Not enabled (null or blank state)
  • Outdated (UpdateRequired / Update required)
  • Missing (NotPresent)
  • Unknown If any VM meets the above conditions, the script reports them and sets a failure exit code. If all VMs are compliant, it reports UpToDate. If no VMs require Integration Services updates, the script stores UpToDate and exits successfully with code 0. It updates the custom field cpvalHyperVIntegrationServiceStatus accordingly.

Sample Run

Play Button > Run Automation > Script
SampleRun1

Type Hyper-V Integration in the search box and select the Hyper-V Integration Service Audit script SampleRun2

Click Run SampleRun3

Dependencies

Automation Setup/Import

Automation Configuration

Output

  • Activity Details
  • Custom Field

Changelog

2026-06-03

  • Initial version of the document