Translating Active Directory Names using Perl.
The following script shows the list of initialization types (which tell how the object should connect to Active Directory), and the list of name types that you can use. The script takes one argument, a user name (such as domainname\username), then returns various name formats.
The script also highlights the problem with PowerShell using some COM interfaces where PowerShell doesn't know the type of object you're using. Since PowerShell doesn't know about the properties and methods of a NameTranslate object, you have to use special invokeMethod syntax to call the Init, Get and Set methods of the object.
- Backup DFS Namespaces Using PowerShell
- Translate Active Directory Name Formats Using PowerShell
- List Linux Users in Active Directory Using PowerShell
- Enable Trust for Delegation in Active Directory Using PowerShell
- TCP/IP Subnet Math with PowerShell - What AD Site is that Server in?
- List Sites and Subnets in Active Directory with PowerShell
- Find Disabled Users in Active Directory with PowerShell
- List Forest-wide Group Memberships with PowerShell
- Find Old Computer Accounts in AD with PowerShell
- List SPNs in Active Directory with PowerShell
- List Domain Controllers in Active Directory