Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 252940

Retrieving Current time and UTC

$
0
0

Hey all,

i have several ESX hosts in different location worldwid, and im writing a powercli script that is supposed to

Retrieve both the current time on the ESX (Adjusted by the timezone) and the UTC time (the universal time).

 

I can retrieve the current time by this:

 


$connect = Connect-VIServer $ESXServer -User $ESXUser -Password $ESXPassword

 

"Time" + "#" + $connect.ExtensionData.ServerClock

 


 

 

 

but i couldn't find any general view or Powershell variable that contains the UTC time.

I need both for monitoring reasons.

 

Any idea?

 

Thanks..


Viewing all articles
Browse latest Browse all 252940

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>