Good Afternoon,
As the title implies, this is what I'm trying to do, but when I create the folder it is set to the 'Hosts and Clusters' type.
Is there a way to create or modify it for VM usage? I can't seem to find any reference for doing so in the PowerCLI docs.
Thanks.
You will have to provide the hidden parent folder 'vm' on the location.
If you just provide a Datacenter as Location it will create a folder of type Hosts & Clusters
See the New-Folder cmdlet.
Get-DataCenter -Name MyDC | Get-Folder -Name vm |
New-Folder -Name MyFolder
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
You will have to provide the hidden parent folder 'vm' on the location.
If you just provide a Datacenter as Location it will create a folder of type Hosts & Clusters
See the New-Folder cmdlet.
Get-DataCenter -Name MyDC | Get-Folder -Name vm |
New-Folder -Name MyFolder
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Worked perfectly, thanks Luc.