Windows 2008 Server Powershell for ADUsers export

PS C:\Users\Administrator> Get-Module -listavailable

ModuleType Name ExportedCommands
———- —- —————-
Manifest ActiveDirectory {}
Manifest ADRMS {}
Manifest AppLocker {}
Manifest BestPractices {}
Manifest BitsTransfer {}
Manifest GroupPolicy {}
Manifest PSDiagnostics {}
Manifest ServerManager {}
Manifest TroubleshootingPack {}

PS C:\Users\Administrator> Get-Module ActiveDirectory,AppLocker,BestPractices,BitsTransfer,GroupPolicy,PSDiagnostics,ServerManager,TroubleshootingPack

ModuleType Name ExportedCommands
———- —- —————-
Manifest servermanager {Remove-WindowsFeature, Get-WindowsFeature, Add-WindowsFeature}
Manifest activeDirectory {Set-ADOrganizationalUnit, Get-ADDomainControllerPasswordReplicationPoli…
Manifest applocker {Get-AppLockerPolicy, Get-AppLockerFileInformation, Test-AppLockerPolicy…
Manifest Bestpractices {Get-BpaModel, Set-BpaResult, Invoke-BpaModel, Get-BpaResult}
Manifest bitstransfer {Start-BitsTransfer, Remove-BitsTransfer, Resume-BitsTransfer, Get-BitsT…
Manifest grouppolicy {Get-GPStarterGPO, Get-GPOReport, Set-GPInheritance, Restore-GPO…}

Now I can collect more information with the help of PowerShell.

PS C:\Users\Administrator> Get-ADDomain

AllowedDNSSuffixes : {}
ChildDomains : {}
ComputersContainer : CN=Computers,DC=fabrikam,DC=local
DeletedObjectsContainer : CN=Deleted Objects,DC=fabrikam,DC=local
DistinguishedName : DC=fabrikam,DC=local
DNSRoot : fabrikam.local
DomainControllersContainer : OU=Domain Controllers,DC=fabrikam,DC=local
DomainMode : Windows2003Domain
DomainSID : S-1-5-21-985056464-632562855-848957522
ForeignSecurityPrincipalsContainer : CN=ForeignSecurityPrincipals,DC=fabrikam,DC=local
Forest : fabrikam.local
InfrastructureMaster : WIN2K8SVR1.fabrikam.local
LastLogonReplicationInterval :
LinkedGroupPolicyObjects : {CN={31B2F340-016D-11D2-945F-00C04FB984F9},CN=Policies,CN=System,DC=fabrikam,DC=lo
cal}
LostAndFoundContainer : CN=LostAndFound,DC=fabrikam,DC=local
ManagedBy :
Name : fabrikam
NetBIOSName : FABRIKAM
ObjectClass : domainDNS
ObjectGUID : 6f81b43c-4048-4106-a8f9-4f44ec2b01bf
ParentDomain :
PDCEmulator : WIN2K8SVR1.fabrikam.local
QuotasContainer : CN=NTDS Quotas,DC=fabrikam,DC=local
ReadOnlyReplicaDirectoryServers : {}
ReplicaDirectoryServers : {WIN2K8SVR1.fabrikam.local, WIN2K8SVR2.fabrikam.local, WIN2K8SVR3.fabrikam.local,
WIN2K8SVR4.fabrikam.local}
RIDMaster : WIN2K8SVR1.fabrikam.local
SubordinateReferences : {DC=ForestDnsZones,DC=fabrikam,DC=local, DC=DomainDnsZones,DC=fabrikam,DC=local, C
N=Configuration,DC=fabrikam,DC=local}
SystemsContainer : CN=System,DC=fabrikam,DC=local
UsersContainer : CN=Users,DC=fabrikam,DC=local

now i can collect user details of AD users

PS C:\Users\Administrator> Get-ADUser -Filter * -properties * | export-csv c:\ADUserDetails.csv