avagham
Enthusiast
Enthusiast

PowerCLI - renaming multiple datatstores at the same time?

Jump to solution

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!

1 Solution

Accepted Solutions
LucD
Leadership
Leadership

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.


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

View solution in original post

2 Replies
LucD
Leadership
Leadership

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.


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

avagham
Enthusiast
Enthusiast

Thanks LucD for the confirmation! this helps!

0 Kudos