All the examples of Add-VMHostNtpServer I can find in documentation and Blogs show how to add a Time Server.
But I can't find anyone successfully scripting the extra argument of "version 3"
Example entry with argument.
/etc/ntp.conf
...
server 192.168.0.10 version 3
Ideas?
Afaik you can't do that with any CLI.
The reason is the the underlying UpdateDateTimeConfig method has no option to specify the NTP version.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Just heard back from a co-worker who did some testing for me.
He says:
Just tested in my lab, and add-vmhostntpserver just stuffs whatever is in the ntpserver argument into the ntp.conf file without any checking, so you can add in the extra info like this.
Add-VmHostNtpServer -NtpServer "<new ntp server> version 3"
So apparently you can add this entry from PowerCLI.
Will leave this open for a few days to see if anyone else can confirm and/or provide extra details.