- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
But you should use the hidden folder called "vm" (like in my code).
Then your new blue folder will be created directly under the datacenter.
The code you found is doing exactly the same (that vmfolder is in fact the hidden "vm" folder I mentioned), but it goes the long way round of following pointers
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference