Hi,
is there any way to create a datastore folder with a location? I can create a folder with the commandlet New-Folder in the root for datastores but not in a subfolder.
I read that this can be a bit tricky but.
If you use Get-Folder and then pipe it to "New-folder" could work.
Something like: Get-Folder
-name "test"
|
New-Folder "test"
Otherwise, check this post I found that it can be helpful: PowerCLI to Generate Nested VM Folder Structure - Notes of a scripter
I read that this can be a bit tricky but.
If you use Get-Folder and then pipe it to "New-folder" could work.
Something like: Get-Folder
-name "test"
|
New-Folder "test"
Otherwise, check this post I found that it can be helpful: PowerCLI to Generate Nested VM Folder Structure - Notes of a scripter