Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

netbox-windows-dhcp-plugin

A NetBox plugin that keeps Microsoft Windows DHCP servers in step with the data modelled by netbox-plugin-dhcp, in both directions, over WinRM or SSH.

Documentation: https://thomaschristory.github.io/netbox-windows-dhcp-plugin/

Status: pre-release. Every v1 feature is built and tested against an in-memory fake server and PowerShell stubs. A first, partial lab run against Windows Server 2025 checked part of the cmdlets and its findings are fixed. The cmdlets it did not reach are still marked # unverified: in the code until the rest of the lab tests run (see the roadmap and limitations). Try it on a lab server first.

Features

  • Import from Windows, on demand or every import_interval minutes. With netbox-branching each import lands in a branch (plus a change request with netbox-change-control); without it, in an import proposal whose items you apply or dismiss.
  • Push to Windows: a reconcile per server when a branch is merged, or a few seconds after a save without branching, plus "Sync now" and "Dry run". A push only deletes Windows objects NetBox manages; objects made by hand on Windows are left alone until imported.
  • IPv4 scopes, superscopes, exclusion ranges, reservations, option definitions and values, user and vendor classes, vendor class options, policies, failover relationships (with replication to the partner) and MAC filters.
  • DHCPv6 scopes, reservations (DUID and IAID), user classes and option values.
  • A Leases tab on the subnet page, read live from Windows in a background job.
  • WinRM (NTLM, Kerberos, Basic; HTTPS by default) or SSH, as in terraform-provider-windowsddi. Credentials live in named profiles in the plugin configuration, limited to allowed_hosts, never in the database.
  • REST API and GraphQL for every model; all Windows I/O in background jobs.

Compatibility

Plugin NetBox netbox-plugin-dhcp netbox-branching Python
0.1.x 4.7 0.2.x 1.2.2+ (optional) 3.12 to 3.14

Windows Server 2016 or later with the DHCP Server role.

Quick start

pip install --pre netbox-windows-dhcp-plugin   # or ==0.1.0rc5; --pre is needed until 0.1.0 is out
# extras: [kerberos] for Kerberos (needs system GSSAPI libraries), [branching] for branching and change control
PLUGINS = ["netbox_dhcp", "netbox_windows_dhcp_plugin"]

PLUGINS_CONFIG = {
    "netbox_windows_dhcp_plugin": {
        "credentials": {
            "dhcp-admin": {
                "username": "CORP\\svc-netbox-dhcp",
                "password_env": "DHCP_ADMIN_PASSWORD",
                "allowed_hosts": ["dhcp*.corp.example"],
            },
        },
    },
}

Run python manage.py migrate, restart NetBox and its worker, then add a Windows server under Windows DHCP > Windows servers, click Test connection and Import now (Import with netbox-branching). The first sync walkthrough covers the rest.

Documentation

The same pages are in the docs/ folder of the repository.

Development

Requires uv and Docker.

make lint        # ruff check and format check
make test        # unit tests, no NetBox needed
make dev         # NetBox, netbox-plugin-dhcp, branching and change control in docker
make test-netbox # NetBox integration tests inside the dev stack
make docs        # build the documentation site
make dist        # build and check the wheel and sdist

See Development for the lab tests against a real Windows server.

License

Apache-2.0, see LICENSE.

Metadata

Release files for netbox-windows-dhcp-plugin 0.1.0rc5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for netbox-windows-dhcp-plugin 0.1.0rc5
File Size Uploaded Provenance
netbox_windows_dhcp_plugin-0.1.0rc5.tar.gz 170.9 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for netbox-windows-dhcp-plugin 0.1.0rc5
File Interpreter ABI Platform
netbox_windows_dhcp_plugin-0.1.0rc5-py3-none-any.whl Python 3 none any Details

Total release size: 369.1 kB

Release files / netbox_windows_dhcp_plugin-0.1.0rc5.tar.gz

Download URL netbox_windows_dhcp_plugin-0.1.0rc5.tar.gz
Size 170.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d9ee90d0341924cba92ec2b4d4eb35f9fbe157636d201e7ce7c1d25a1e1e85cb
BLAKE2b-256 checksum
How to use checksums
3092d81f1f60f88343fa4d46e166fb48c97c0aa1d28c679b8f8b4231bbc29b85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.

Transparency log

Release files / netbox_windows_dhcp_plugin-0.1.0rc5-py3-none-any.whl

Download URL netbox_windows_dhcp_plugin-0.1.0rc5-py3-none-any.whl
Size 198.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1b848f5e1911db7c4774a6cc2addf6ed819213f139e15e3fad0cedb90a56a35d
BLAKE2b-256 checksum
How to use checksums
135103f690f425eb4e35b1405387f668fb18bde386aee5118e93ad586eb3a7e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.

Transparency log

Security for netbox-windows-dhcp-plugin 0.1.0rc5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for netbox_windows_dhcp_plugin-0.1.0rc5.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page