Appendix: Scripts

Applies To: Operations Manager 2007

The following table describes the scripts that are included in the Hyper-V Management Pack.

Script Name Workflow that uses this script Functionality

DiscoverHyperV2008ServerRole.vbs

Hyper-V 2008 Server Role Discovery

Discovers the Hyper-V role.

DiscoverHyperV2008VirtualMachine.vbs

Hyper-V 2008 Virtual Machine Discovery

Discovers Hyper-V virtual machines and virtual hardware components.

DiscoverHyperV2008VirtualMachineReferencesComputer.vbs

Hyper-V 2008 Virtual Computer Relationship Discovery

Discovers the reference relationship between virtual machines and Windows computers.

DiscoverHyperVVirtualNetworkContainsNetworkAdapter.vbs

Hyper-V 2008 Virtual Network Relationship Discovery

Discovers the containment relationship between the virtual network and the network adapter.

Note

On computers running a Server Core installation of Windows Server 2008 or Windows Server 2008 R2, the relationship between virtual external networks and network adapters will not be discovered.

DiscoverHyperVVirtualNetworks.vbs

Hyper-V 2008 Virtual Network Discovery

Discovers the virtual external and internal networks.

GetDiskPartitionSpace.vbs

Virtual Drive Free Space Monitor

Monitors the free space remaining on the logical disk that contains the virtual drive.