Here's a big list of all of the properties that you could apply to the Get-ADUser cmdlet in Powershell: Property Syntax R/RW lDAPDisplayName AccountExpirationDate DateTime RW accountExpires, converted to local time AccountLockoutTime DateTime RW lockoutTime, converted to local time AccountNotDelegated Boolean RW userAccountControl (bit mask 1048576) AllowReversiblePasswordEncryption Boolean RW userAccountControl (bit mask … [Read more...] about Get-ADUser Extended and Default Properties
CMDlet
PowerShell – Export Enabled Users and other Data from Active Directory
I made a script that does a few things: Gets all users that are enabled Creates a table, listing all the the users with a few account details I want Export the table to a .csv file with a unique name, appending the date the export happens Here's the whole thing. I'll explain what it does at the bottom: Import-Module ActiveDirectory # All of the properties you'd like to pull from Get-ADUser $properties=@( 'displayname', 'lastlogondate', 'passwordneverexpires', … [Read more...] about PowerShell – Export Enabled Users and other Data from Active Directory
Recent Activity