<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Creating a Folder only executes in the Hosts and Clusters view in vSphere Update Manager PowerCLI Discussions</title>
    <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Creating-a-Folder-only-executes-in-the-Hosts-and-Clusters-view/m-p/412781#M39</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what you mean, the code I gave will create a blue folder directly under datacenter MyDC, in VMs and Templates.&lt;/P&gt;&lt;P&gt;Do you mean the "vm" folder when you say "&lt;EM&gt;... a "blue" folder which already exists&lt;/EM&gt;"&lt;/P&gt;&lt;P&gt;The hidden "vm" folder is always there directly under each datacenter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Oct 2014 18:28:12 GMT</pubDate>
    <dc:creator>LucD</dc:creator>
    <dc:date>2014-10-23T18:28:12Z</dc:date>
    <item>
      <title>Creating a Folder only executes in the Hosts and Clusters view</title>
      <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Creating-a-Folder-only-executes-in-the-Hosts-and-Clusters-view/m-p/412778#M36</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create folders [as I had done via the fat client] under the view VMs and Templates &amp;gt; Datacenter "x" and [these are blue folders] with VMs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yet, when use the PowerCLi command: Get-Datacenter "x" | New-Folder -Name "testing" [ these are yellow color ] &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;It will ONLY create the folder under the View Hosts and Clusters $toplevel. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which command ( if possible ) would allow me to create folders under the same Datacenter, yet VIEW of VMs and Templates.?? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can elaborate if necessary. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 15:25:00 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Creating-a-Folder-only-executes-in-the-Hosts-and-Clusters-view/m-p/412778#M36</guid>
      <dc:creator>chicagovm</dc:creator>
      <dc:date>2014-10-23T15:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Folder only executes in the Hosts and Clusters view</title>
      <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Creating-a-Folder-only-executes-in-the-Hosts-and-Clusters-view/m-p/412779#M37</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The blue folders start under the hidden "vm" folder.&lt;/P&gt;&lt;P&gt;So you could do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="text-align: Left; font-family: Segoe UI; font-style: normal; font-weight: normal; font-size: 12; color: #000000;"&gt;&lt;P style="font-family: Lucida Console; margin: 0 0 0 0; background-color: #ffffff;"&gt;&lt;SPAN style="font-size: 16;"&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;&lt;SPAN&gt;$location&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9;"&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;SPAN&gt;Get-Datacenter&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;&lt;SPAN&gt;-Name&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #8a2be2;"&gt;&lt;SPAN&gt;MyDC&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9;"&gt;&lt;SPAN&gt;|&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;SPAN&gt;get-folder&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;&lt;SPAN&gt;-Name&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #8a2be2;"&gt;&lt;SPAN&gt;vm&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Lucida Console; margin: 0 0 0 0; background-color: #ffffff;"&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;SPAN&gt;New-folder&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;&lt;SPAN&gt;-Name&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #8a2be2;"&gt;&lt;SPAN&gt;MyBlueFolder&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;&lt;SPAN&gt;-Location&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;&lt;SPAN&gt;$location&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Lucida Console; margin: 0 0 0 0; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 17:27:16 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Creating-a-Folder-only-executes-in-the-Hosts-and-Clusters-view/m-p/412779#M37</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2014-10-23T17:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Folder only executes in the Hosts and Clusters view</title>
      <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Creating-a-Folder-only-executes-in-the-Hosts-and-Clusters-view/m-p/412780#M38</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks lucD.. but ALMOST.. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So, what you provided was how to create a subfolder under a "blue" folder which already exists. That worked. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;How does one create the top level "blue folder" under that Datacenter.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #555555; font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px;"&gt; _ because as per get-help from new-folder, this will result in creating a “yellow” host and cluster folder.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 18:14:54 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Creating-a-Folder-only-executes-in-the-Hosts-and-Clusters-view/m-p/412780#M38</guid>
      <dc:creator>chicagovm</dc:creator>
      <dc:date>2014-10-23T18:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Folder only executes in the Hosts and Clusters view</title>
      <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Creating-a-Folder-only-executes-in-the-Hosts-and-Clusters-view/m-p/412781#M39</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what you mean, the code I gave will create a blue folder directly under datacenter MyDC, in VMs and Templates.&lt;/P&gt;&lt;P&gt;Do you mean the "vm" folder when you say "&lt;EM&gt;... a "blue" folder which already exists&lt;/EM&gt;"&lt;/P&gt;&lt;P&gt;The hidden "vm" folder is always there directly under each datacenter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 18:28:12 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Creating-a-Folder-only-executes-in-the-Hosts-and-Clusters-view/m-p/412781#M39</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2014-10-23T18:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Folder only executes in the Hosts and Clusters view</title>
      <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Creating-a-Folder-only-executes-in-the-Hosts-and-Clusters-view/m-p/412782#M40</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your command only creates a folder under an already created "blue folder". It does not create a new folder directly under the Datacenter when the you are in view - VMs and Templates. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &amp;gt; $location = Get-Datacenter -Name CHI | get-folder -Name test&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would mean there is already a folder name "test"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to be able to create the folder named "test". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #555555; font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px;"&gt;Because as per get-help from new-folder, this will result in creating a “yellow” host and cluster folder. I'm finding online that in order to create a vm folder i have to use method CreateFolder(string)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Found this.. &lt;/P&gt;&lt;P&gt;&lt;CODE class="plain powershell" style="font-size: 12px; margin: 0 !important; padding: 0 !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; color: black !important; background-position: initial !important;"&gt;(&lt;/CODE&gt;&lt;CODE class="functions powershell" style="font-size: 12px; margin: 0 !important; padding: 0 !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; color: #ff1493 !important; background-position: initial !important;"&gt;get-view&lt;/CODE&gt;&lt;SPAN style="color: #555555; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;CODE class="plain powershell" style="font-size: 12px; margin: 0 !important; padding: 0 !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; color: black !important; background-position: initial !important;"&gt;(&lt;/CODE&gt;&lt;CODE class="functions powershell" style="font-size: 12px; margin: 0 !important; padding: 0 !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; color: #ff1493 !important; background-position: initial !important;"&gt;get-view&lt;/CODE&gt;&lt;SPAN style="color: #555555; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;CODE class="color1 powershell" style="font-size: 12px; margin: 0 !important; padding: 0 !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; color: gray !important; background-position: initial !important;"&gt;-ViewType&lt;/CODE&gt;&lt;SPAN style="color: #555555; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;CODE class="plain powershell" style="font-size: 12px; margin: 0 !important; padding: 0 !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; color: black !important; background-position: initial !important;"&gt;datacenter&lt;/CODE&gt;&lt;SPAN style="color: #555555; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;CODE class="color1 powershell" style="font-size: 12px; margin: 0 !important; padding: 0 !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; color: gray !important; background-position: initial !important;"&gt;-Filter&lt;/CODE&gt;&lt;SPAN style="color: #555555; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;CODE class="plain powershell" style="font-size: 12px; margin: 0 !important; padding: 0 !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; color: black !important; background-position: initial !important;"&gt;@{&lt;/CODE&gt;&lt;CODE class="string powershell" style="font-size: 12px; margin: 0 !important; padding: 0 !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; color: blue !important; background-position: initial !important;"&gt;"name"&lt;/CODE&gt;&lt;CODE class="plain powershell" style="font-size: 12px; margin: 0 !important; padding: 0 !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; color: black !important; background-position: initial !important;"&gt;=&lt;/CODE&gt;&lt;CODE class="string powershell" style="font-size: 12px; margin: 0 !important; padding: 0 !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; color: blue !important; background-position: initial !important;"&gt;"myDC"&lt;/CODE&gt;&lt;CODE class="plain powershell" style="font-size: 12px; margin: 0 !important; padding: 0 !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; color: black !important; background-position: initial !important;"&gt;}).VmFolder).CreateFolder(&lt;/CODE&gt;&lt;CODE class="string powershell" style="font-size: 12px; margin: 0 !important; padding: 0 !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; color: blue !important; background-position: initial !important;"&gt;"myTopLevelFolder"&lt;/CODE&gt;&lt;CODE class="plain powershell" style="font-size: 12px; margin: 0 !important; padding: 0 !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; color: black !important; background-position: initial !important;"&gt;)&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 18:41:13 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Creating-a-Folder-only-executes-in-the-Hosts-and-Clusters-view/m-p/412782#M40</guid>
      <dc:creator>chicagovm</dc:creator>
      <dc:date>2014-10-23T18:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Folder only executes in the Hosts and Clusters view</title>
      <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Creating-a-Folder-only-executes-in-the-Hosts-and-Clusters-view/m-p/412783#M41</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But you should use the hidden folder called "vm" (like in my code).&lt;/P&gt;&lt;P&gt;Then your new blue folder will be created directly under the datacenter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 18:43:15 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Creating-a-Folder-only-executes-in-the-Hosts-and-Clusters-view/m-p/412783#M41</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2014-10-23T18:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Folder only executes in the Hosts and Clusters view</title>
      <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Creating-a-Folder-only-executes-in-the-Hosts-and-Clusters-view/m-p/412784#M42</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would your command be dependant on which vCenter version I am trying to use it against? I have both 5.0 and 5.5&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 18:46:25 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Creating-a-Folder-only-executes-in-the-Hosts-and-Clusters-view/m-p/412784#M42</guid>
      <dc:creator>chicagovm</dc:creator>
      <dc:date>2014-10-23T18:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Folder only executes in the Hosts and Clusters view</title>
      <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Creating-a-Folder-only-executes-in-the-Hosts-and-Clusters-view/m-p/412785#M43</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah! It worked. I must not have copied your cmd correctly. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So, It's odd that -Name vm is considered a hidden folder.. I guess I'm confused, but regardless.. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Many&amp;nbsp; thanks.!! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 18:50:06 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Creating-a-Folder-only-executes-in-the-Hosts-and-Clusters-view/m-p/412785#M43</guid>
      <dc:creator>chicagovm</dc:creator>
      <dc:date>2014-10-23T18:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Folder only executes in the Hosts and Clusters view</title>
      <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Creating-a-Folder-only-executes-in-the-Hosts-and-Clusters-view/m-p/412786#M44</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The hidden folder "vm" has been there since quite some time.&lt;/P&gt;&lt;P&gt;Btw, there a couple of other interesting folders like host,datastore and network.&lt;/P&gt;&lt;P&gt;I assume you can guess to which root they each point :smileygrin:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 18:52:59 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Creating-a-Folder-only-executes-in-the-Hosts-and-Clusters-view/m-p/412786#M44</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2014-10-23T18:52:59Z</dc:date>
    </item>
  </channel>
</rss>

