Server Management - Systems Insight Manager
Showing results for 
Search instead for 
Did you mean: 

Modifying a Custom List based on Domain Membership

Frequent Advisor

Modifying a Custom List based on Domain Membership

Hi all...I'm trying to create a script that will run from the CMS to do the following.

Based on a selected group of servers, determine their domain, then using that information, create or modify a list for that domain.

What I am trying to achieve is a main list under systems for each domain in our environment.

I have a portion of vbs for getting the domain info, now I just need to figure out how to use that in SIM to edit the lists.

Heres the script I have so far:

strComputer = "computernamehere"

Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colDom = objWMIService.ExecQuery("SELECT * FROM Win32_ComputerSystem")

For Each i in colDom

WScript.Echo i.Domain

Valued Contributor

Re: Modifying a Custom List based on Domain Membership


I've accomplished what I think you're trying for in our environment without using scripts. You just create a custom list in SIM based off of the 'common attributes' using the fully qualified domain name that you want to base the list on.

For example if you want all servers in the domain, then create a list where:
'common attributes' CONTAINS
'system type' IS Server.

You can do this for each domain in your environment. The one caveat here is that DNS is working and configured in your environment and was at the time your systems were discovered by SIM.

Hope this is what you are looking for. Good luck.
Frequent Advisor

Re: Modifying a Custom List based on Domain Membership

That would work, but unfortunately, most of the systems were added via a dump from ad, by hostname only, and not fqdn. Thanks anyways for the reply!

Anyone else have an idea?