Get Host Service Information (VMware)

This Automation Manager object will retrieve the list of services installed on a specific ESXi host. This can be run on both an ESXi host and a vCenter server, however the host name must be provided in either case.

Install VMware.PowerCLI

Before using this VMware Automation Manager Object, you must install the PowerShell module VMware.PowerCLI.

This VMware Automation Object runs on 64-bit PowerShell, and the module must also be added to 64-bit PowerShell.

Input Parameters

Name Type Required Description
Session ID String Yes The session ID that is generated by the VMware connection object.
This is required for this object to work.
Destination Host Name String Yes The name of the ESXi host from which the list of services will be retrieved.

Output Parameters

Name Type Description
Service List Collection The list of services returned as an array.

ItemTypeDescription
KeyStringThis returns the ID of the service.
Service NameStringThis returns the display name of the service.
Startup PolicyStringThis returns ON if the service is set to Auto Restart on Reboot, and OFF if it is not set to restart automatically.
RuniingBooleanThis returns True if the service is running, and False if it is stopped.
UninstallableBooleanThis returns True if the service can be removed.
UidStringThis returns the UID of the service.
Records Found Number The number of services found on the server.
Result Number Returns a success value of zero or any value other than zero to indicate failure.
Result String String Object execution error details.

Example Input Parameters

Name Type Required Example
Session ID String Yes "ab4c55c1273cb609678a2bb6a15104e927ac8dec", 10.199.2.23
Host Name String Yes Esxhost1