PowerCLI to Generate Nested VM Folder Structure

From roonics
Revision as of 11:10, 10 August 2021 by Jlambert (talk | contribs)
Jump to navigation Jump to search

First create a txt file named folders.txt with the folder structure as below.

Note: You must have the first line:

TestDataCenter\VM
TestDataCenter\WebApp
TestDataCenter\SQL
TestDataCenter\WebApp\Prod
TestDataCenter\WebApp\Stage
TestDataCenter\WebApp\Uat
TestDataCenter\SQL\Prod
TestDataCenter\SQL\Stage
TestDataCenter\SQL\Uat