Advertisement
jmeg8r

Set-VMHostsNTP

Feb 15th, 2019
1,422
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ?$VMHosts = Get-VMHost *
  2.  
  3. foreach ($vh in $VMHosts.name)
  4. {
  5.    
  6.     Get-VMHost $vh | Add-VMHostNtpServer -NtpServer ntp.yourdomain.local
  7.    
  8.  
  9.  
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement