How To Create a Custom Boolean Field That Answers Whether ADDS Present

Renae_03
Tera Contributor

Client is requesting a custom field that is boolean reflecting whether a device on network is currently running Active Directory. I realize ServiceNow already tracks this via "Installed Software" or "Running Processes" 

 

My thought is to create a WMI probe with a script that returns true if ADDS is present. I also see that there is a possibility of adding "On Classification Script" that could possibly do the same thing and may be simpler once a windows device has been classified. However, I am unsure of how this would be able to feed into the custom attribute or if I can use the existing information in Installed Software or Running Processes. 

 

Any help would be appreciated. 

 

1 ACCEPTED SOLUTION

Pratiksha
Mega Sage
Mega Sage

your client wants a custom field (check box) to update the device have AD. Glide the installed software table. Look for AD and if found then mark the field true else false. 

View solution in original post

7 REPLIES 7

Pratiksha
Mega Sage
Mega Sage

if it is installed software then run a simple script, and update the manual field. 

 

Second option would be adding extension section to windows server pattern. 

 

Regards,

Pratiksha

Thank you for your response Pratiksha. Can you explain what you mean by "update the manual field"? 

Pratiksha
Mega Sage
Mega Sage

your client wants a custom field (check box) to update the device have AD. Glide the installed software table. Look for AD and if found then mark the field true else false. 

They want a custom attribute (custom.host.services.active_directory), I found this article where you commented and that was helpful (Creating custom CI attributes to cmdb_ci_win_serve... - ServiceNow Community). So I'm adding the name in "Added" tab for Server Attributes but getting an error  "Operation against file 'sys_dictionary' was aborted by Business Rule 'Validate Table Name and Element Name'. I need the attribute to be true/false when it is recognized that their is AD present. Would this still require a script or would I need to do something else.  

 

Thank you so much for your help/.