Hi all,
Here is the situation:
1 VCenter
Multiple Datacenters
Multiple clusters in each DC
Folders for all customers.
I would like to automate the placement of a customer datastore in it's own folder.
However, we use that folder name on each level (VM, DataStore, Network) and sometimes a customer uses multiple clusters, so the Foldername can appear sometimes 8 or 10 times.
I looked at the great functions: Get-FolderPath and GetFolderByPath, but i cannot get it to work.
Error I receive:
Move-Datastore : 18-1-2021 17:15:50 Move-Datastore The specified parameter 'Destination' expects a single value, but your name criteria 'CUST0001' corresponds to multip
le values.
Info:
Get-Folder -Name CUST0001
Name Type
---- ----
CUST0001 Network
CUST0001 Network
CUST0001 Datastore
CUST0001 Datastore
CUST0001 VM
CUST0001 VM
Any help would be greatly appreciated!
TIA - Martijn