PowerCLI

 View Only
  • 1.  How to change the BIOS date / time of a VMWare machine via script

    Posted Dec 10, 2013 07:38 PM

    Hi

    we do have a large VMWare environment that we use for time shifts. Currently we must change the date in the BIOS of every involved virtual machine manually to do a timeshift.

    Because  the number of machines involved is increasing we're searching for a method to do this via script.


    Is it possible to change the BIOS date of a virtual machine via PowerCLI (or something similar)?

    I already searched the web and this forum and did not find anything "useful" - except an old message from 2008 that says it's not possible to do that . But now it's 2013 ..

    If that is not possible:

    Can we configure a virtual machine so that VMware sets the BIOS date of  the virtual machine from an NTP server ? (Note: all  VMWare server involved use always the current time)

    Or  can we do the change by editing the xml file for the virtual machine?

    regards


    Bernd



  • 2.  RE: How to change the BIOS date / time of a VMWare machine via script

    Posted Jan 02, 2014 06:13 PM

    Here you can use plain powershell, enable psremoting on VM to connect and execute below command. (You can get the list of windows VMs using either from powercli or AD)

    Invoke-Command -ComputerName RemoteServer -ScriptBlock {Set-Date 01/2/2014}



  • 3.  RE: How to change the BIOS date / time of a VMWare machine via script

    Posted Jan 04, 2014 04:23 PM

    Hi

    thanks for the answer -- that's to change the date on the VMWare server I think -- but that's not what I want:

    I want to change the BIOS date for a (not running) virtual machine on a VMWare server.

    Or did I missunderstood your answer?

    regards


    Bernd