Are your Active Directory Partitions Backed Up?

Ever used repadmin /showbackup to check Active Directory backup status? If not, here's what is does:   Right then. It reads the DSASignature attribute from each partition. Actually, it reads replication metadata for the DSASignature attribute which tells us when it was last updated. Let's do the same with PowerShell!   Partition List First, we need to…

0

Use PowerShell to Enter-PSSession from the Active Directory Users and Computers MMC

I'm known for inserting PowerShell into most work-related conversations. I can't help it… there's probably a name for this 'affliction'… Anyway, I was using the Active Directory Users and Computers MMC (dsa.msc) the other day and I recalled some functionality I'd leveraged years ago to insert a HTA into a context menu.     Two things immediately sprang…

3

Use PowerShell to Start Domain Controller Garbage Collection

Garbage Collection runs every 12 hours on a domain controller. So, what is it, and, more importantly, how can we kick it off with PowerShell? What is it?Garbage collection identifies tombstones and recycled-objects that have been kept for at least the tombstone lifetime and then removes them. On a happy DC, there should not be a…

0

One-Liner: Change Account Lockout Threshold

What's the optimal Account Lockout Threshold value? A question that continues to generate a lot of debate! If an account lockout threshold is set, the latest guidance, issued with Windows Server 2012 R2, suggests a value of 10. Visit this post for more information: Configuring Account Lockout   After the new guidance was released, I wanted to quickly and efficiently…

1

One-Liner: Active Directory Schema Version

  Rules rule! What's a directory service without schema?   This week I was asked about the Active Directory schema version for Windows Server 2012 R2.   Here’s how to get hold of it with PowerShell:   Get-ADObject (Get-ADRootDSE).schemaNamingContext -Property objectVersion     The cmdlet in brackets (Get-ADRootDSE) is executed first. The “.”is used to access…

2