Automation

 View Only
  • 1.  PowerCLI - renaming multiple datatstores at the same time?

    Posted Aug 31, 2020 07:27 PM

    Hello everyone - is it possible to rename multiple datastores? i was able to find one-liner code which can rename datastore one by one. but can someone help me if we can rename multiple datastores at the same time? Thank you!



  • 2.  RE: PowerCLI - renaming multiple datatstores at the same time?
    Best Answer

    Posted Aug 31, 2020 07:45 PM

    No, afaik the base API method RenameDatastore handles 1 datastore at the time.
    That method is available though with the _Task suffix, meaning that it can be run async.
    So you could start a number of rename tasks in the background.



  • 3.  RE: PowerCLI - renaming multiple datatstores at the same time?

    Posted Aug 31, 2020 08:01 PM

    Thanks LucD for the confirmation! this helps!