Functions/Get-ActiveDirectoryUserPropertyList.ps1
<#
.SYNOPSIS This function returns the list of relevant properties for an Active Directory user. #> function Get-ActiveDirectoryUserPropertyList { [CmdletBinding(PositionalBinding=$false)] [OutputType([String[]])] param () # Return the list of relevant properties return @( "GivenName", "Surname", "Initials", "Name", "DisplayName", "UserPrincipalName", "StreetAddress", "City", "State", "PostalCode", "Country", "MobilePhone", "HomePhone", "Company", "Department", "Title", "DistinguishedName" ) } |