Skip to content

Combine AD + ServiceNow pre-population extractors#18

Draft
adamswbrown wants to merge 4 commits into
mainfrom
claude/dmc-prepop-ad-and-servicenow
Draft

Combine AD + ServiceNow pre-population extractors#18
adamswbrown wants to merge 4 commits into
mainfrom
claude/dmc-prepop-ad-and-servicenow

Conversation

@adamswbrown
Copy link
Copy Markdown
Owner

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 / branch claude/ad-pre-population-extractor-JQmg2).
  • servicenow-cmdb-export/ — Python CLI exporting CMDB CIs (server-app mapping) from ServiceNow (originates from branch claude/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

*   Merge servicenow-cmdb-export CLI
|\
| * Add servicenow-cmdb-export CLI
* Merge AD pre-population extractor
* Add AD pre-population extractor for Dr Migrate (DMC)

14 new files, 0 modified files, 0 conflicts.

Out of scope

  • The separate claude/dmc-prepop SCCM Phase-1 work is not included here. Easy follow-up if wanted.
  • No code integration between the AD PowerShell tool and the ServiceNow Python tool.

Test plan

  • ad-pre-population-extractor/Extract-ADInventory.ps1 runs cleanly on PS 5.1 + RSAT against a lab domain
  • servicenow-cmdb-export runs end-to-end against a ServiceNow developer instance with .env configured
  • Outputs from both tools merge cleanly on hostname (lowercased) per the AD spec's recommended merge order

https://claude.ai/code/session_01Mv4u6bByTyy75mWPzod2Y4


Generated by Claude Code

claude added 4 commits May 1, 2026 04:46
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants