CharuK
Contributor
Contributor

Hi LucD,

PowerCLI Version

----------------

   VMware PowerCLI 10.0.0 build 7895300

---------------

Component Versions

---------------

   VMware Cis Core PowerCLI Component PowerCLI Component 10.0 build 7893915

   VMware VimAutomation VICore Commands PowerCLI Component PowerCLI Component 10.0 build 7893909

======================================================================================================

Yes, I have adjsuted value as per my environemnt.

There is no other error before last line.

=======================================================================================================

/>>$spec | format-custom -Depth 2

class ScheduledTaskSpec

{

  Name = Snapshot

  Description = Take a snapshot of VMname

  Enabled = True

  Scheduler =

    class OnceTaskScheduler

    {

      RunAt =

        class DateTime

        {

          Date = 12/12/2018 12:00:00 AM

          Day = 12

          DayOfWeek = Wednesday

          DayOfYear = 346

          Hour = 23

          Kind = Unspecified

          Millisecond = 0

          Minute = 0

          Month = 12

          Second = 0

          Ticks = 636802524000000000

          TimeOfDay = 23:00:00

          Year = 2018

          DateTime = Wednesday, December 12, 2018 11:00:00 PM

        }

      ActiveTime =

      ExpireTime =

      DynamicType =

      DynamicProperty =

    }

  Action =

    class MethodAction

    {

      Name = CreateSnapshot_Task

      Argument =

        [

          VMware.Vim.MethodActionArgument

          VMware.Vim.MethodActionArgument

          VMware.Vim.MethodActionArgument

          VMware.Vim.MethodActionArgument

        ]

      

      DynamicType =

      DynamicProperty =

    }

  Notification = abcd@xyz.com

  DynamicType =

  DynamicProperty =

}

=====================================================================

Reply
0 Kudos