Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Windows Server » Create and Delete AD DS Partition with NTDSUTIL.EXE
  • windows 1 1
    Generation 2 VM: Set up a HyperV VM through PXE boot Virtualization
  • Stellar Exchange
    Exchange Recovery: Repair EDB Files and Recover Mailboxes Reviews
  • Enable autologon and autostart for user session
    Enable Autologon and Autostart for user session Windows
  • Enable or disable SA acocunt
    How to enable an SA account that has been disabled Oracle/MSSQL/MySQL
  • SUBVERSION FEATURE
    How to Install Apache Subversion on a Linux System Linux
  • dasfdg
    Unable to execute: The application GUID not found in the application list Windows Server
  • How to Disable Automatic Opening of Previous files in Notepad on Windows 11
    How to Disable Automatic Opening of Previous Files in Notepad on Windows 11 Windows
  • Fix Secure Boot certificate expiration
    Enable Secure Boot: Fix Secure Boot certificates expiration Windows

Create and Delete AD DS Partition with NTDSUTIL.EXE

Posted on 26/01/202209/04/2024 Imoh Etuk By Imoh Etuk No Comments on Create and Delete AD DS Partition with NTDSUTIL.EXE
Slide2-1

AD DS partition Windows Server serves as a platform for building and deploying infrastructure within the corporate environment. This infrastructure deployment usually consists of applications, networks, user accounts, and web services. In this article, we shall learn Create and Delete AD DS Partition with NTDSUTIL.EXE. Ntdsutil.exe is a command-line tool that provides management facilities for Active Directory Domain Services (AD DS). Please see how to create, configure and apply Group Policy Objects on Windows Servers , and how to Install Windows Admin Center on Windows 10 & 11.

The NtdsUtil.exe tool not only allows you to create a custom AD DS partition but also enables you to perform several other AD DS-related management tasks actively. These tasks include NTDS database maintenance, creating snapshots, relocating database files, and offline defragmentation.

Caution: NTDSUTIL tool is a high level tool and is intended for use by experienced administrators. This steps applies to 2012, 2016, 2019 and 2022 versions.

Here is an excellent guide on Laps in Windows: How to Reset Directory Services Restore Mode (DSRM) Password.

What is NTDS?

Microsoft Windows Server uses NTDS (Windows NT Directory Services) as the directory service for storing data generated by Active Directory Domain Services (AD DS). Every Domain Controller in the domain saves the AD DS database in a file.

The AD DS database is stored in the ntds.dit file located in the NTDS folder of the system root, usually C:\Windows\NTDS. AD DS partition uses a concept known as multi-master replication to ensure that the datastore is consistent on all DCs. The AD DS refers to this process of ensuring data consistency and accuracy across all DCs as replication.

Active Directory Domain Services Partition

You see from the screenshot above that the AD DS database is just one file named NTDS.dit. NTDS.dit holds multiple partitions (config, schema, domain, app), each with unique data. Replication occurs within each partition’s topology.

Why do We Need a Custom AD DS Partition?

The reason why it is necessary to create an AD DS partition is some applications might need to store their data in the AD DS database. The idea of creating a custom AD DS partition usually occurs if there is a plan by an organization to develop an in-house suite of business applications.

Please see how to Manage Azure Virtual Machines with Windows Admin Center and Serial Console, and how to install and configure Active Directory Domain Services on Windows Server 2022

Creating AD DS Custom Partition using NTDSUTIL.exe Tool

We are going to go through the short steps of creating and deleting the AD DS custom partition through the following:

1: Run the command prompt (cmd) with elevated permission by Right-clicking it and clicking “Run as Administrator”.

Active Directory Partitioning

In the Command Prompt Window, type ntdsutil.exe

AD Domain Services Partition

2: You can also assess the Ntdsutil tool through the Run command dialog box by pressing Windows Key + R, the Run dialog box shows up type ntdsutil.exe

Domain Controller Partition

Now we are right in the NSDTUTIL.exe terminal console.

Run-NTDSUTIL-directly
NTDSUTIL.EXE Tool

2. Confirm that the Active Instance is set to NTDS by running the command below

ac in ntds
Confirm-the-active-instance
NTDS Active Instance

3. Set the target to partition management, and establish server connection to the domain by running partition management, AD DS partition and Enter followed by typing connection.

This brings up server connection. From here type {connect_to_server_domain_name} and press the Enter key. Ensure you type the commands exactly as shown in the screenshot below, with parentheses and underscores.

Server-Connection
Partition Management and Server Connection

4. Next step is to quit the Server connection by typing quit within the Ntdsutil.exe console. From here, let’s run the list command to list out all the existing AD DS partitions within the NTDS.dit file.

List-Partitions

5. Create a new AD DS partition by running the command below within the partition management. Remember to replace the details with your details.

create nc dc=AppPartition,dc=tectdirectarchi,dc=com techdirectarchive.com
Added-a-New-Partition
Create New AD DS Partition

Increased Number of Partitions: A Comparison

Upon comparing the above and previous screenshots, you’ll notice an increase in partitions from 4 to 5.

6. The last step is to delete and quit the partition management as well as quit the entire NTDSUTIL.exe tool. Let’s do this by running the command below. This will delete the newly created AD DS partition. you can use the list command to confirm the deletion.

delete nc dc=AppPartition,dc=tectdirectarchive,dc=com
Deletion-is-successful2
Delete AD DS Partition
Note that when typing commands within the NTDSUTIL.exe terminal console, there no space between them. 

7. Now have done creating and deleting the, let’s go ahead and quit the NTDSUTIL.exe tool by typing quit in the terminal console.

In this article, you have been taken through the steps of “Create and Delete AD DS Partition with NTDSUTIL.EXE”. You learned about the NTDS directory service, its purpose, and the partitions within the NTDS.dit file.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
Windows Server Tags:Active Directory, Domain, Domain Controller, Microsoft Windows, Windows Server 2016

Post navigation

Previous Post: All You Need to Know About Symbolic Links in Linux
Next Post: Fix Error 853: The remote access connection completed, but authentication failed because the certificate that authenticates the client to the server is not valid

Related Posts

  • ad lds 832x400 1
    Active Directory Lightweight Directory Services [AD LDS] Windows Server
  • screenshot 2020 03 31 at 22.22.43
    How to create, edit and delete a scheduled task via the Command Prompt Windows Server
  • Setup FSx File System 1
    Create and mount FSx File System: Join EC2 instance to AWS Managed AD AWS/Azure/OpenShift
  • How to fix Windows Update Fails with Error 0x80092004
    How to fix Windows Update Fails with Error 0x80092004 Windows
  • image 130
    How to fix the Security Database on the Server does not have a Computer Account for this Workstation Trust Relationship on Windows Server [Part 2] Scripts
  • 1 WeXxkEX0JG3oB781HD8Hrg
    Error 0x204: Unable to Connect to Remote PC [Part 1] Windows Server

More Related Articles

ad lds 832x400 1 Active Directory Lightweight Directory Services [AD LDS] Windows Server
screenshot 2020 03 31 at 22.22.43 How to create, edit and delete a scheduled task via the Command Prompt Windows Server
Setup FSx File System 1 Create and mount FSx File System: Join EC2 instance to AWS Managed AD AWS/Azure/OpenShift
How to fix Windows Update Fails with Error 0x80092004 How to fix Windows Update Fails with Error 0x80092004 Windows
image 130 How to fix the Security Database on the Server does not have a Computer Account for this Workstation Trust Relationship on Windows Server [Part 2] Scripts
1 WeXxkEX0JG3oB781HD8Hrg Error 0x204: Unable to Connect to Remote PC [Part 1] Windows Server

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a
 
  • windows 1 1
    Generation 2 VM: Set up a HyperV VM through PXE boot Virtualization
  • Stellar Exchange
    Exchange Recovery: Repair EDB Files and Recover Mailboxes Reviews
  • Enable autologon and autostart for user session
    Enable Autologon and Autostart for user session Windows
  • Enable or disable SA acocunt
    How to enable an SA account that has been disabled Oracle/MSSQL/MySQL
  • SUBVERSION FEATURE
    How to Install Apache Subversion on a Linux System Linux
  • dasfdg
    Unable to execute: The application GUID not found in the application list Windows Server
  • How to Disable Automatic Opening of Previous files in Notepad on Windows 11
    How to Disable Automatic Opening of Previous Files in Notepad on Windows 11 Windows
  • Fix Secure Boot certificate expiration
    Enable Secure Boot: Fix Secure Boot certificates expiration Windows

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,841 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.