Combine AD + ServiceNow pre-population extractors#18
Draft
adamswbrown wants to merge 4 commits into
Draft
Conversation
Pulls CMDB server and client CIs from ServiceNow and writes a denormalized device-to-business-app-and-environment mapping to Excel. Joins via cmdb_rel_ci with an assigned-user ownership fallback for clients that have no direct app relationship.
Implements the nine queries from the AD pre-population spec as a single read-only PowerShell script: master server inventory, computer + service account + gMSA SPNs, sites, subnets, OU distribution, stale servers, domain controllers, and a coverage summary. Adds a derived workload classification CSV that joins all SPN sources against the service-class reference table so SQL/IIS/Exchange/etc. workloads can be picked up without scanning the servers. https://claude.ai/code/session_01Mv4u6bByTyy75mWPzod2Y4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Combines two independent DMC pre-population extractors onto a single branch so they can ship as a unified suite:
ad-pre-population-extractor/— PowerShell extractor pulling server inventory, SPN-derived workload signals, sites/subnets, OU distribution, stale-server detection, and a coverage summary from Active Directory (originates from PR Add AD pre-population extractor for Dr Migrate #17 / branchclaude/ad-pre-population-extractor-JQmg2).servicenow-cmdb-export/— Python CLI exporting CMDB CIs (server-app mapping) from ServiceNow (originates from branchclaude/export-server-app-mapping-Q2gRB).The two tools share a CSV-per-source output convention but otherwise stay independent — no integration code is added in this branch. Merge was conflict-free (paths don't overlap).
Branch composition
14 new files, 0 modified files, 0 conflicts.
Out of scope
claude/dmc-prepopSCCM Phase-1 work is not included here. Easy follow-up if wanted.Test plan
ad-pre-population-extractor/Extract-ADInventory.ps1runs cleanly on PS 5.1 + RSAT against a lab domainservicenow-cmdb-exportruns end-to-end against a ServiceNow developer instance with.envconfiguredhttps://claude.ai/code/session_01Mv4u6bByTyy75mWPzod2Y4
Generated by Claude Code