Advertisement
PC_Aide

set-timezone.ps1

Nov 26th, 2018
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <#
  2.     we can do this command with cmd
  3.    
  4.     Important have good timeZone synchronize with DC -> https://imgur.com/w9NLdgl
  5.  
  6.     O/P: http://pix.toile-libre.org/upload/original/1543271928.png
  7.        
  8. #>
  9.  
  10. # /l -> list time zone IDs
  11. tzutil /l
  12.  
  13. # /s -> TimeZoneID
  14.  
  15. # find timeZone knwon
  16. tzutil /l | findstr /i "atlantic standard time"
  17. tzutil /s "atlantic standard time"
  18.  
  19. #Eastern (Montreal)
  20. cmd /c tzutil /s "eastern standard time" && time <hh:mm>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement