PowerShell for Windows Admins

Aug 8 2010   12:51PM GMT

How big’s my dit

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

The ntds.dit file is used to store Active Directory data on a domain controller. Knowing how big this file is getting is a useful piece if information. One way is to log on to each domain controller and test the size using Windows explorer.

A better way is to use WMI

PS> “server02″, “dc02″ | foreach {Get-WmiObject -Class CIM_LogicalFile `

-Filter “Name=’c:\\Windows\\NTDS\\ntds.dit’” -computername $_ }  |

Format-table CSname, FileSize  -AutoSize

CSname        FileSize
——                 ——–
SERVER02   41959424
DC02             41959424

If the file is in different places on different machines then put the server name and the location into a csv file.

 Comment on this Post

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when other members comment.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: