VMware Cloud Community
avagham
Enthusiast
Enthusiast
Jump to solution

PowerCLI - renaming multiple datatstores at the same time?

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
Jump to solution

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
Jump to solution

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
Jump to solution

Thanks LucD for the confirmation! this helps!

Reply
0 Kudos