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…

5

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: 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