Check Hyper-V Settings for Time Synchronization Status for a Virtual Machine Hosted on a Hyper-V Host

Check Hyper-V Settings for Time Synchronization Status for a Virtual Machine Hosted on a Hyper-V Host

 

I Ran the same function From within the Virtual Machine in my test LAB, and saw that the Time Synchronization was in disabled state for my VM :

Please follow and like us:

Share this post

2 thoughts on “Check Hyper-V Settings for Time Synchronization Status for a Virtual Machine Hosted on a Hyper-V Host

  1. Just a tip: Using text output for functions is not very "powershell." This does not lend itself well to using composable pipelines. Consider returning a Boolean (i.e. $true or $false) and renaming your command to Test-VMTimeSync. The "Test" verb is associated with Boolean returns. This way, you can use Test-VMTimeSync as a condition in an "if" clause to some other action, like Enable-VMTimeSync (or Disable-*)

    Reply

Post Comment