Powershell 如何在Vcenter上检查NTP设置

Powershell 如何在Vcenter上检查NTP设置,powershell,vmware,powershell-4.0,powercli,vcenter,Powershell,Vmware,Powershell 4.0,Powercli,Vcenter,我想检查Vcenter上的NTP设置是否设置为“正在运行” 我正在使用以下cmdlet,但它正在返回NTP服务器的IP地址 Get-VMHostNtpServer -VMHost abc.com 如何检查状态是否设置为“正在运行?”返回实例,其中包含正在运行的属性 来自的此示例显示了使用Running属性返回的服务列表(包括ntpd): C:\PS>Get-VMHostService -Refresh Key Label Policy Running Required --- ----

我想检查Vcenter上的NTP设置是否设置为“正在运行” 我正在使用以下cmdlet,但它正在返回NTP服务器的IP地址

Get-VMHostNtpServer -VMHost abc.com
如何检查状态是否设置为“正在运行?”

返回实例,其中包含
正在运行的属性

来自的此示例显示了使用
Running
属性返回的服务列表(包括
ntpd
):

C:\PS>Get-VMHostService -Refresh

Key Label Policy Running Required
--- ----- ------ ------- --------
ntpd NTP Daemon automatic False False
sshd SSH Server automatic True False
vmware-vpxa VMware VirtualCenter Agent automatic True False