How many $Target/Host or $Target/Host/Host ... etc do you need to go

Hello
Can someone please help me with the following question as I am learning authoring at the moment, thanks
I see from Brian videos that some times you need to use just $Target/Property... and other times $Target/Host/Property...
or even $Target/Host/Host/Property... and so on.
I get the idea (or at least I think I do), in as much as the further you are away from the Host (e.g. the deeper down embedded in the XML) you have to step back up using Host or Host/Host etc. a bit like when transversing a file system using ..\.. or ..\..\..
So for a registry discovery you would say $Target/Host/Property... e.g. use Host one time.
My question is.
is this always the case for a discovery?
How do I know when I should use $Target/Property and when to use $Target/Host and $Target/Host/Host etc.. is there any easy well to tell?
Thank you
AAnotherUser__
AAnotherUser__

Just a little modified previous script:
function Get-SCOMClassHostElement {
param(
[Microsoft.EnterpriseManagement.Configuration.ManagementPackClass]
[Parameter(Mandatory = $true)]
$ManagementClass,
[Switch]
[Parameter(Mandatory = $false)]
$KeyOnly
function Get-SCOMClassKeyProperty {
param(
$ManagementClass,
$MPElementPath
$ManagementClass.PropertyCollection | ? {$_.Key} | % {$MPElementPath + "Property[Type=`"" + $_.Identifier.Domain[0]+"!"+$ManagementClass.Name+"`"]/"+$_.Name+"`$"}
If ($ManagementClass.Hosted) {
Get-SCOMClassKeyProperty -ManagementClass $ManagementClass.FindHostClass() -MPElementPath ($MPElementPath + "Host/")
If ($ManagementClass.Base) {
Get-SCOMClassKeyProperty -ManagementClass (Get-SCOMClass $ManagementClass.Base.Id) -MPElementPath $MPElementPath
function Get-SCOMClassAllProperty {
param(
$ManagementClass,
$MPElementPath
$ManagementClass.PropertyCollection | % {$MPElementPath + "Property[Type=`"" + $_.Identifier.Domain[0]+"!"+$ManagementClass.Name+"`"]/"+$_.Name+"`$"}
If ($ManagementClass.Base) {
Get-SCOMClassAllProperty -ManagementClass (Get-SCOMClass $ManagementClass.Base.Id) -MPElementPath $MPElementPath
$MPElementPath = "`$Target/"
[Array]$ManagementClassProperty = Get-SCOMClassKeyProperty -ManagementClass $ManagementClass -MPElementPath $MPElementPath
If (!$KeyOnly) {
[Array]$ManagementClassProperty += Get-SCOMClassAllProperty -ManagementClass $ManagementClass -MPElementPath $MPElementPath
$ManagementClassProperty | Select-Object -Unique
New-SCOMManagementGroupConnection
$ManagementClassName = "Microsoft.SQLServer.Database"
$ManagementClass = Get-SCOMClass -Name $ManagementClassName
Get-SCOMClassHostElement -ManagementClass $ManagementClass
Vladimir Zelenov | http://systemcenter4all.wordpress.com

Similar Messages

  • All of a sudden my itunes wont come up when i hit the desktop icon. un and re installed many times, tried new users, it finally gave me "you need to reinstall sqmapi.dll " im a noob and i have know idea what that is or where i can get it. i cant open any

    all of a sudden my itunes wont come up when i hit the desktop icon. un and re installed many times, tried new users, it finally gave me "you need to reinstall sqmapi.dll " im a noob and i have know idea what that is or where i can get it. i cant open any file or library that has anything to do with itunes except safari and quicktime are fine. im about to pull out whats left of my hair.

    Okay, that's got one thing ruled out at least.
    Can you check something for me, big? I'd like to see if iTunes launches with the Bonjour Service disabled.
    In your Start menu, right-click Computer and select "Manage".
    Expand "Services & Applications".
    Open "Services". (Perhaps maximise the screen to better see what's going on.)
    Right-click the Bonjour Service and select "Properties".
    In the General tab, set the Startup type to "Disabled":
    ... and click OK.
    Restart the PC and try launching iTunes. Does it open this time?

  • How many single apps do I have to download if I need to upload into 100iPads? Any legality issues?

    Nd to Upload a single apps for 100 iPads using a single account. How many apps shld I purchase in order no to infringe in any legality issue.
    Do note that volume purchase is not an options as I'm situated out of US.
    Rgds
    Kleon.C

    J D McIninch wrote:
    You download the app once per iTunes account and each account can install the app on up to 5 devices.
    However, apps are for individual use, so if it's a company or a school (why else would you have 100 iPads?) , there will need to be one license/purchase for each device.

  • Poll:  How many users on your apps and what hardware are you using?

    I am curious about the collective experience and performance of others APEX applications and how much "horsepower" your hardware has.
    I have a need to support 20-30 users and am using a Windows XP machine with 1.99 Gig of RAM and a 2.8 GHz Pentium 4 CPU.
    Any thoughts on this?

    For my personal use, I'm renting a Celeron 2.4ghz with 1Gig RAM running CentOS, Oracle XE and Apex 3.2 at a data center 1200 miles away. Seems to work fine. I find the biggest issue is network bandwidth. I originally had a 10Mb link to the datacenter's backbone, now have a 100Mbit. The difference was night and day.
    For work (speaking only of our Apex servers), we've got:
    One Dell 2way P4 with 4G RAM and 10,000 RPM drives.
    It runs 2 10G instances and several Apex apps and it also runs Enterprise Manager Grid Control for 40+ databases. No issues.
    Multiple prod/dev/test servers.
    All are VIRTUAL running on VMWare ESX3.5. Each database VM has 2 gig of RAM and 2 "CPUs" running 11g/Apex3.2 on Oracle Linux. They all work fine.
    I find that a poorly written app can crush just about any hardware you can throw at it. Luckily we don't have any of those ;).
    I suspect that your hardware would be fine, particularly if running Linux. I cannot speak to Oracle/Apex on XP. I suspect you might be disappointed, mostly because it is tuned for interactive use rather than background applications (services). Not trying to be a Windows vs Linux troll here, just saying that if you are running a workstation with Oracle/Apex and you on it and expect to support 20-30 other people, you are all likely to be disappointed. Apex/Oracle should be on dedicated server hardware with a server OS.
    You also aren't giving us much info on your hardware; 7200RPM IDE/SATA drives aren't going to be as fast as 15KRPM SCSI or SAS, etc.
    It wouldn't surprise me if your well written application was able to support 20-30 users with the hardware you are describing (though I won't vouch for the OS).
    Google for "apex.oracle.com" and "poweredge 1950" that will take you to this link:
    http://joelkallman.blogspot.com/2009/06/who-says-application-express-cant-scale.html
    The whole thing apparently serves up 6 million page hits a week with a 1.5Gig SGA. That's a lot of work on a pretty small box.

  • How many computers can I use Lion on? Do I need to use them on one ID?

    Hello,
    My house has exactly 5 Mac's in it and I wish to upgrade all of these to Lion.  In the past whenever I did an OS update I purchased the family pack instead of the standard edition which covered all 5 of the Mac's we own.
    Am I correct that now the 10.7 Lion edition in the Mac App Store for $29 covers 5 computers or is there a separate family pack available?  Is there now just one version which covers 5 computers?
    The other question is how to go about the install.  Two of the computers are in my home office but the other two belong to our children and when it comes to using the Mac App Store on all of those computers they are login into my Apple ID (me.com).
    The 5th computer is my wife's though and that computer is using her Apple (me.com) ID since she makes her own purchases from the Mac App Store, iTunes, and has her own me.com email on it so her computer is the one that is unique.
    Will the above present any problems?  Will I be able to buy Lion and install it on the 4 computers on my ID and then have her buy her own copy for her computer or is there a way that I can get one version that goes on all 5 computers even though her computer is using a different ID for the Mac App Store?
    Thank you for your help.

    You can install Lion on all of your computers, you may want to have your wife download the app again on her account or you can make a Lion install DVD by following these instructions.  http://reviews.cnet.com/8301-13727_7-20080989-263/how-to-create-an-os-x-lion-ins tallation-disc/

  • TS1702 it says that i have to pay again to download a game from itunes.. how can i get the game in my itunes and phone? do I accept the charges and it will be re-embersed? what should I do? I have the order confirmation number etc. if you need.

    it says that i have to pay again to download it from itunes.. how can i get the game in my itunes and phone? do I accept the charges and it will be re-embersed? what should I do? I have the order confirmation number etc.

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • Bought the Moto G Friday night hoping to god I'd have a phone before next week and it appears that I can't use my debit card to purchase prepaid refil online because I have updated my payment method too many times or some crap like that? Verizon you need

    Why can't I use my debit card to make payments *** verizon?

    Why can't I use my debit card to make payments *** verizon?

  • How many applications do i get?

    I purchased LR2 for my desktop and then upgraded online.  Can I now put the upgrade on my new laptop or do I have to pay again?  I find the adobe tech support next to impossible to reach (or understand when I do reach them). How do it do it? thnx.

    Ya know...not sure you took the trouble to check the forum headers but this forum is the Feature Request forums...NOT the "how many licenses does my EULA give me". Really, you need to pay attention to the base level info, then you might actually find out about a thing called the "End User License Agreement" which, when you BOUGHT the *******' software you agreed to, give you the right to install 2 installations on two separate computers, not to be used at the same time...
    But really, don't pollute the request forums to ask basic *******' Q&A questions....

  • How many sessions can open at a time for 10g DB

    Hi,
    My App Server is connects with min 200 users , But from last week onwards
    we are facting automatically disconnecting to the app server.
    What was the problem we don't know .
    Let me know how many sessions can open at a time ?
    Thanks,

    You need to capture any connection errors from the app server.
    Otherwise we're just guessing.
    The SESSIONS parameter restricts the number of open sessions (select * from v$parameter).
    Presumably you're using DEDICATED server connections rather than SHARED server connections?

  • How many LUNs does an Solaris Host can support ?

    Hi ,
    Anyone can share, how many storage LUNs does an Solaris Host can support? There is any limits on this.?
    Regards
    Siva

    It probably depends at least some on the type of HBAs, the driver, topology, and most likely other things as well. Instead of dealing with thousands of LUNs on the OS side, I would highly recommend you have your SAN team start provisioning meta devices instead, to cut down on the number of devices (if you are lucky enough to have a SAN team that is). My company allows me to be the EMC and Solaris engineer, and in return all they ask is that I only collect pay for one of the two....

  • Can someone pls Help me: How to create a Fake target table(Dummy)  in DAC

    Hi There,
    Can someone pls Help me in creating a Fake target table(Dummy) in DAC?
    Thanks,
    Raghu

    Raghu
    You need to create a task so that you can hook sources and targets together.
    First, Design --> Tables tab --> New --> Below 'Edit' -->Table Type (Source) for your source tables.
    Design --> Tables tab --> New --> Below 'Edit' -->Check warehouse and Table Type (Fact or Fact Temporary) for your target tables.
    Points if helpful
    Kris

  • How many server licences do i need

    I am designing a small data center with physical servers connected to a SAN which is then backed up to a NAS for backup. The physical server will be running 13 critical application using VMware for high availability. How many window server licences would
    i need to purchase. Is it one per physical server? or would i need one for each VM also. 
    Thanks 

    Hello,
    if one VMWare host should run more then 2 VMs you need a Windows Server 2012 R2 Datacenter edition (unlimited versions from Windows VMs on the host) from Windows or 7 Windows Standard licenses (max. 14 VMs).
    Keep in mind that processors count into the license requirements.
    "...using VMware for high availability..."
    This means that you should have at least 2 VMWare hosts which have the RAM and processors to run in caseof hardware problem from the other host ALL VMs.
    So you are now need at least 2 Windows Server 2012 R2 Datacenter licenses or 14 Standard editions.
    Best regards
    Meinolf Weber
    MVP, MCP, MCTS
    Microsoft MVP - Directory Services
    My Blog: http://blogs.msmvps.com/MWeber
    Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.
    Twitter:  

  • SP500 tape library - how many server/SAN FC interfaces do I need?

    How many server or FC switch interfaces do I need to connect SL500 FC tape library? Let's say we have two FC tape drives installed. Does it mean I need to reserve 3 FC interfaces (one for robot and one for each drive)? Or there is some kind of internal hub/switch which permits to use one FC port to connect them all in a way which is implemented in SL48 library?

    Hello,
    if one VMWare host should run more then 2 VMs you need a Windows Server 2012 R2 Datacenter edition (unlimited versions from Windows VMs on the host) from Windows or 7 Windows Standard licenses (max. 14 VMs).
    Keep in mind that processors count into the license requirements.
    "...using VMware for high availability..."
    This means that you should have at least 2 VMWare hosts which have the RAM and processors to run in caseof hardware problem from the other host ALL VMs.
    So you are now need at least 2 Windows Server 2012 R2 Datacenter licenses or 14 Standard editions.
    Best regards
    Meinolf Weber
    MVP, MCP, MCTS
    Microsoft MVP - Directory Services
    My Blog: http://blogs.msmvps.com/MWeber
    Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.
    Twitter:  

  • How many times can you install iLife 09 onto your Macs?

    My teacher for Video Production wants to update to '09, and we have 5 Macs at our school.
    He doesn't want to have to buy 5 separate discs, and was wondering how many times the CD Key can be used when you buy just one program.

    BabsUvulaWho wrote:
    My teacher for Video Production wants to update to '09, and we have 5 Macs at our school.
    He doesn't want to have to buy 5 separate discs, and ...
    sure, he wants 5 cars, but wants to pay only once..
    http://en.wikipedia.org/wiki/Theft

  • How many devices can sync to one apple ID?

    How many devices can sync to one apple ID?  I need to get all my music from an old computer to my new computer.  I just purchased an album on my new computer and it's not syncing with my iPhone 5 and I don't want to pay $25 for the Cloud.

    You can sync as many idevices as you like to one computer/library
    The iphone will sync with one and only one computer at a time.  Syncing to another will erase the current content fro the iphone.

Maybe you are looking for

  • Help JavaScript Browser Detection for CSS

    Hi Guys, I have developed this online catalogue using php/mysql. The site works 100% in firefox and chrome but does not seem to work in IE, any version. I used spry dropdown menu and the menu works but the menu css gets dropped by IE. I am looking fo

  • How to recover previously purchased songs

    I had previously had an iPod. I used to buy song directly off the iPod. The iPod had never been plugged into a computer. Since then that iPod has been wiped clean. My QUESTION is: is there a way to get those previously purchased songs on my new iPod.

  • Itunes freezes when synching genius

    Help!  iTunes freezes my PC when I launch it.  I've repaired it, uninstalled and reinstalled. I think there may be a registry key I need to remove in order to truly wipe if off my PC. I am unable to access my iTunes Library.  It launches but when the

  • Calling business delegate object from client

    Hi guys, I want to know how can I use Business Delegate Pattern in my client program(e.g JSP for that matter). I would really be thankful if u plz illustrate ur point thru code. One more doubt.... Can a Normal Java Bean be a Business Delegate Object?

  • Restricted & Calculated Key figures and Structures

    Hello Gurus, I'm using a BW Query to create my universe and all I see is a class called Key Figures and few objects. I don't see my restricted and Calculated Key figures. Also I want to understand how are the Structures in BW Query brought into Unive