Configure NTP on iLO via HPE Scripting Tools for Windows PowerShell

HPE Scripting Tools for Windows PowerShell is a powerful set of utilities that can be used to perform various configuration tasks on HPE Servers. Windows PowerShell is Microsoft’s task automation framework, consisting of a command-line shell and associated scripting language built on the .NET Framework. 

HPE Scripting Tools for Windows PowerShell provides a simplified and consistent infrastructure management experience. They follow the standard PowerShell syntax and scripting model, making it easy for customers to incorporate these functions into their administrative scripts.

In order to keep synchronize iLO time with NTP server or time server, you have to enable NTP configuration and add proper NTP server address. Configuring NTP on more than one server is a difficult task for any administrator, because you have to do it via iLO command line or web based GUI manually. At this post I want to share an example for NTP configuration as a PowerShell script.


You need to download and install HPE Scripting Tools for Windows PowerShell, also HPE Scripting Tools for Windows PowerShell has requirements for installation that please read related documents before installation.

In order to run the script you need to logon as an administrator account to iLO, so make sure about your iLO’s account privilege.

Sample Script

The above script is so simple, just you have to replace “iLO1 IP”,”iLO2 IP”,”iLO..N IP” with IP addresses or FQDN. Script will ask your username and password to use it on all iLO connections (You have to define same username on all servers for this script).

Replace “Etc/UTC” with proper time zone and also “NTP Server Address” with proper NTP server address.

See Also

HP Scripting Tools for Windows PowerShell

Microsoft HPC Pack

Davoud Teimouri

Davoud Teimouri is as a professional blogger, vExpert 2015/2016/2017/2018/2019/2020/2021/2022, vExpert NSX, vExpert PRO, vExpert Security, VCA, MCITP. This blog is started with simple posts and now, it has large following readers.

Leave a Reply

Your email address will not be published. Required fields are marked *