SHARE
TWEET

Set-VMHostsNTP

jmeg8r Feb 15th, 2019 829 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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top