Get the Active Directory forest functional level Script : import-module activedirectory Get-ADForest | select forestmode My Powershell script categories Active Directory Cluster Database Exchange Files and folders Hardware Network Operating System PKI SCCM Service and process Tips VMWare Reference Get-ADForest
Get Enabled or Disabled Computer Accounts
Get distribution lists and “Managed by” username
With this script you will be able to get distribution lists and “Managed by” username. Script (with Microsoft Active Directory module loaded : import-module activedirectory) : get-adgroup -filter ‘groupCategory -eq “Distribution”‘ -Properties distinguishedname, managedby | ` select distinguishedname, managedby Script