The script below will query the status of the VMware Virtual Center Server (vpxd) and vCenter Inventory Service (vimQueryService) services on the specified server hosting an instance of VMware vCenter Server 5.0.
<#
.SYNOPSIS
This script will provide the status of the VMware Virtual Center Server (vpxd) and vCenter Inventory Service (vimQueryService) services on VCENTER01.ROOT.SYSADMIN.NET.
.DESCRIPTION
This script will automate the process of providing the status of the VMware Virtual Center Server (vpxd) and vCenter Inventory Service (vimQueryService) services on VCENTER01.ROOT.SYSADMIN.NET.
.EXAMPLE
N/A.
.AUTHOR
Written by Noel Enrique Alvarez on Friday, March 25, 2016.
#>
#Query the status of the VMware Virtual Center Server and vCenter Inventory Service services on VCENTER01.ROOT.SYSADMIN.NET
Get-Service -ComputerName VCENTER01 | Where-Object {$_.name -eq “vpxd”}
Get-Service -ComputerName VCENTER01 | Where-Object {$_.name -eq “vimQueryService”}