question

JanPastyk-6752 avatar image
0 Votes"
JanPastyk-6752 asked JanPastyk-6752 commented

PowerShell script to create Cluster dynamic group

Hello Community,

I would like to ask for help about VSAE. I am using Kevin Holman´s fragments. In one of them we have alredy filtered Windows Computers based on AD filter. We also find relations using this hostnames to verify if any hostname participate in cluster group. We have also cluster group name filtered in array.

  • the think is about defining discovery to create dynamic group containing cluster name.... cluster name is only short one. No FQDN but discovery block for Microsoft.Windows.Computer require full name...

    $instance = $DiscoveryData.CreateClassInstance("$MPElement[Name='Windows!Microsoft.Windows.Computer']$")
    $instance.AddProperty("$MPElement[Name='Windows!Microsoft.Windows.Computer']/PrincipalName$", $clustername)
    $instance.AddProperty("$MPElement[Name='System!System.Entity']/DisplayName$", $clustername)
    $DiscoveryData.AddInstance($instance)

Can somebody help me how to solve this?

thank you
Jan



msc-operations-manager
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Does anybody know?

0 Votes 0 ·

Hi JanPastyk,

It seems this is a customization issue and not suitable to be handled in the community. It is suggested to open a ticket with MS so that a dedicated engineer may help on this.

https://support.microsoft.com/en-us/help/13948/global-customer-service-phone-numbers

Alex

0 Votes 0 ·

Hello Alex,

we already did. But information was, that this is a part of non-supported functionality.

Jan

0 Votes 0 ·

0 Answers