VMware Cloud Community
ganapa2000
Hot Shot
Hot Shot
Jump to solution

Date and Time from Guest

Hi,

Is there a way to get the current time from Guest VM (Windows / CentOS) through PowerCLI ?

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Not that I know off.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

0 Kudos
4 Replies
LucD
Leadership
Leadership
Jump to solution

You mean with Invoke-VMScript?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
ganapa2000
Hot Shot
Hot Shot
Jump to solution

LucD,

I think, I can use Invoke-VMScript as below

Invoke-VMScript -VM (Get-VM <VMname>) -GuestCredential (Get-Credential) -HostCredential (Get-Credential) -ScriptText "Get-Date" -ScriptType PowerShell

But I would like to know, if any PowerCLI cmdlets to get the Guest Time ?

0 Kudos
LucD
Leadership
Leadership
Jump to solution

Not that I know off.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
ganapa2000
Hot Shot
Hot Shot
Jump to solution

Thanks for the update LucD.

0 Kudos