Specifying the location of the cluster with several folders (same name, different hierarchy)

I am able to create a cluster and place it in a folder. However, I don't know how to set it for a specific folder when there are several folders with the same name across different hierarchical depths.

For example, suppose I want to create a cluster in the Department of human resources:

New-Cluster -Name Cluster1 -Location (Get-Folder HR)

Then assume that a HR folder is created on several issues, such as the following:

Datacenter-Corp.-HR
Data Center-NY-HR
Data Center-CA-HR
...

I could then create the cluster in the Department of human resources of NY:

New-Cluster -Name Cluster1 -Location (Get-Folder NY | Get-Folder HR)

But what can I do if this depth is not standardized or changes, such as the following:

Datacenter-Corp.-HR
Data Center-East Coast-NY-HR
Data Center-West Coast-CA-HR
...

Is it possible to see this full path, regardless of the depth of existing clusters?

How can I create a new cluster in a file which can be of various depths and have the same name?

Thanks for any help.

You can go down the road with the following script.

At the end the variable $fld contains the final location of the path and you can make a New-Cluster - location $fld

$folderPath = "Datacenter\West Coast\CA\HR"$fld = $null$folderPath.Split('\') | %{    if($fld){        $fld = Get-Inventory -Name $_ -Location $fld -NoRecursion    }    else{        $fld = Get-Inventory -Name $_ -NoRecursion    }}

$fld

Tags: VMware

Similar Questions

  • Functions defined by the user with several parameters

    I set features three following user using "Define."

    UF1 takes a single patameter;

    UF2 takes two parameters;

    and UFX takes two parameters - with the second is 'X' in the definition.

    Œuvres F1.  F2 is the EVAL of F1 version and it works too.  User functions only seem to work fine.

    F3, a function of two user settings, produces a graph of NaN.

    F4 is the EVAL of F3 version.  Note that 'B 'is not replaced by 1'.  Also produces a NaN chart.

    F5 produces a graph of NaN.

    F6 is EVAL of F5.  The 'X' is not replaced (even with the ' B' above), and even if it looks like 'X * X', it also produces a graph of NaN.

    Is it possible to get defined by the user, with several parameters, features work by tracing the curve?

    Hi!, Fortin:

    If you download and install the ultimate Firmware with the version of the software: 2015 6 17 (8151), with the number of Version: 1.1.2 - 11, you can trace your examples of definition of the function, with curves and values, without NaN.

  • How to connect the Ombudsman with several bpel process

    Hi Please someone tell me how to connect the Ombudsman with several processes bpel in soa 11g

    And here

    http://eoracleapps.blogspot.com/2009/11/how-to-call-synchronous-BPEL-process.html

  • New analysis of data warehouses... at the level of the Cluster with PowerCLI 5?

    Hello

    Since vSphere has been provided (I think) the option to open a new analysis of the HBA on every host in the cluster ESXs is available in the GUI if you click with the right button on the cluster, select analyze again to data warehouses.

    I have read several threads from people requesting this option in Powercli but have not found a solution for this.

    When you do Get-Cluster-name | Get-vmhost | Get-vmhoststorage - RescanAllHBA to do this, the new analysis a host once in the cluster.

    Is there a solution for this now in PowerCLI 5.0?

    BR

    Henrik

    As far as I know, there is still no option to launch the new analysis across the cluster in paralel.

  • Initialize the cluster with data types different (lots of data)

    Hello

    I have data, which are composed of different data types. First of all, I have initialize cluster with these types of data and then "print" to light (photo). In case of photo data carries 8 characters than ja 4 floats. It was easy to initialize, but here's the question: How can I do this even if I have data that look like this (interpreter):

    floating point number

    name char [32]

    Short value [16]

    What I create loooong cluster which have a fleet of 32 characters, 16 short films? Or I can create these 'paintings' in a different way?

    THX once again

    -Aa-

    I suggest using the table-cluster and configuration of the cluster size to match the size of your berries, then package these groups together.  In terms of storage of LabVIEW, there is no difference between a group of

    floating point number

    Name1 tank

    name2 tank

    ...

    short value1

    short value2

    ...

    and a bunch of

    floating point number

    -> cluster shipped from

    Name1 tank

    name2 tank

    ...

    -> cluster shipped from

    short value1

    short value2

    So you can use the cluster table to get the right sizes rather than individually create all these values in a single giant cluster.

  • How to connect the cluster with unbundler the help of scripts of VI

    Hello

    I'm not so known in Labview. I am tring do VI script for you to connect to a digital cluster with a unbundler.

    I could create cluster and unbundler. But I am not able to connect.

    I have attached the VI and the image of the code.

    Help, please...

    Thanks in advance...!

    Sharon

    Same VI compiled to 8.6

    Christian

  • Create several folders with several folders in the rapids

    How can I quickly create several folders with a specific set of folders in each of them?

    for example:
    Folder1-> test1, test2, test3...
    Folder2-> test1, test2, test3...
    Folder3-> test1, test2, test3...
    etc.
    I want to create several folders named specifically with an ID I'll specific, and in each of these cases, I would like to have a set of folders.
    Thank you for your help.

    Hello

    Check out the steps suggested by Steve Winograd and TechHead74 in http://answers.microsoft.com/en-us/windows/forum/windows_xp-files/how-or-can-i-create-numerous-new-folders-instaed/a2a67066-7e97-47b3-aba4-8e8a1a460ca3

    Hope this helps you.

  • Create the cluster with existing Virtual Machines

    This will seem like an easy question, but I have 3 5.0 ESXi hosts managed by vCenter. We recently purchased a SAN and I would like to set up a cluster, can I do it with running on the existing VMS host computers and then to migrate in the SAN that I have create the cluster?

    If the hosts and the BIOS settings are the same there should not be a problem with placing them in a cluster. Displacement of that virtual machine to the San can be made as soon as the hosts are connected to him, it is not the members of classes.

    André

  • Is it possible to 'Load Up' the cursor with several elements of 'Place '?

    It happens quite often that I have a folder with several items that I want to place. I can go back individually and D command to the folder window to choose the order of the day and then place in the document. When there is page after page of items, it would be useful to be able to select multiple items that will go on a single page and then "spit their" so to speak, of the cursor by repeated clicks, machine gun style. Is this possible to do?


    TIA,

    Ken

    Altogether. Select all. If they are not in the right order when you go to the place, use the arrows to scroll and the ESC key to cancel an object.

  • Connection to the AOP with several NIC data store

    I have a situation where I need to have the computer that is running the tiara to be connected to two different networks.  I have two NIC installed in the machine, NIC A and B NIC, we will call them.  The reason for this is that I use Diadem to access the server on a machine of AVL PUMA AO.  If I connect to the local network PUMA, PUMA sometimes breaks down, probably something to do with the IP address.  So PUMA has need to be on a network that is not a router.  My tiara computer must communicate with PUMA, as well as with local shared drives on our corporate network.

    In any case, I have the company LAN hung on A NIC and hung on NIC B PUMA network.  Tiara fails to connect when the two networks are connected, but connects to the data store no problem when that network PUMA is hung. Any ideas how to solve this problem?  It seems tiara is looking for NIC - A instead of NIC B, as appropriate.

    For reference, when the two NIC is connected, I can access other than readers, and separate computers to ping on both networks, without problem, is not a connection problem.

    Any help would be appreciated.

    -Russ

    I guess poth NIC have different IP.

    -Did you use IP instead of the server name.

    -Do you use RPC or CORBA to access the PUMA Server?

    -What version of DIAdem.

    You can create a log file when the connection has failed?

    Greetings

    Andreas

  • Easiest way to convert the cluster with named variables table?

    I have a table of variables, I essentially unbundle this table of named variables.

    I believe that the only way to achieve this is to convert the cluster table (not to mention that the deletion of each item one by one)?

    Is what I've done below the best way to do it? seems a little weird to unbundle and rebundle by name.

    Comments appreciated.

    Altenbach says:

    Maybe a simple catalogued the cluster would work.

    Of course, it does!

  • Open the files in several folders and run

    Hello guys,.

    I have several files in several folders, I would like to know is it possible to automatically open the files in folders and execute action defined in PS.

    Example: I 1-folders12 (folder name will change regularly), I have 5 files in folder 1, 10 in folder2 and 7 in folder3,... and so on.

    I need a script to open the files one by one and perform the action to the PS and nearby, once all the files are processed in the Folder1, the script should search for folder2 and until the last folder. Is this possible? looking for consultant.

    Screen Shot 2016-01-21 at 7.53.49 PM.png

    This should be possible with just using Image Processor, which comes with the PS. Just check the box that says to all subfolders.

  • Committing the order with several UoWs recorded in the external controller of JTA?

    Hello

    Our architecture deals with the J2EE application using multiple mappings (several sessions and UoWs).

    I would like to know if the order of the UoWs are saved in the controller of the outer transaction is the
    even order the UoW are engaged when the validation of the JTA global transaction? Is it guaranteed by TopLink (or spec JTA)?

    Kind regards

    gerardce

    I don't think that there is nothing specifying ordering in the spec. This kind of request of documentation are better serve as a test.

  • Bug in several windows in the finder with several screens

    When you use finder on several screens (with separate spaces) there is a problem when you enter fullscreen.

    Steps to reproduce:

    1. open finder on a screen.

    2. open another window in the finder on a different view.

    3. full screen or finder window (any).  You will be able to observe a Visual problem where the finder window that you do not use maximizes and enters full screen then go back to normal, just before the finder window you use between full screen.

    4. at this point your finder window full screen is missing in the top navigation bar.  To reveal it, open your mission control and the space finder-click and you will see.  Basically, the navigation bar is on the finder space expanded while the rest of the finder is on office space.

    5a. If you try to exit the full screen, your finder window will freeze.

    5. before going back to full screen, if you go to the mission control and drag your space viewfinder on the screen where your other window finder is currently on, you will be able to leave the full screen and the finder window will not freeze.

    Cause of the error:

    Still, the problem occurs if the following conditions are met:

    -You have two or more finder windows (if you have only a window of finder, you can always expand it without any problem)

    -You maximize a window of finder, and it's the only finder window on that office space

    For example, if you have three screens and you have 2 1 1 finder windows in offices respectively, you will encounter the error when you maximize the window of the solitary finder on the monitors of 2nd or 3rd.  Maximize a window in the finder on the first monitor has no questions.

    Please try to reproduce.  I hope that it is easily reproduced on any machine and I hope this will be fixed as soon as possible.

    Can not repeat to aid by end 2013 15 "rMBP and Asus 24" external display connected DisplayPort cable.

  • When I have two open browser windows, the first with several tabs, the second a window from a link (if one tab), and close the second window, I Quit Firefox message, ' do you want to save the tabs...?

    This was happening with FF 3 before moving on to 4 and not going on with FF4.0 until the 4.0.1 update has been applied, the first time, he ran. Same problem on another computer running FF3, so maybe a related problem of the extension.

    If I have three windows open and close the third, I don't get it. Only when two are open and one is closed. I could have three, close one, then the second and get the prompt.

    Non-disabled extensions
    Adblock more
    BugMeNot
    Cooliris
    Download Statusbar
    DownloadHelper
    DowntThemAll!
    FireGestures
    HTML5 Extension for Windows Media Player
    HTTPS everywhere
    Java Console
    Download the PDF
    Session manager
    TinEye Reverse Image Search
    YouTube how Snob

    People with disabilities

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions of the origin of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

Maybe you are looking for