Active Directory: Creating Custom Attribute

When you have to allow 3rd party for use LDAPS and run some queries then we might need to create new attributes.

So here we go with the steps of creating Custom Attribute in Active Directory.

Register Schema DLL

Open Command prompt using an elevated prompt then run the following command:

regsvr32 schmmgmt.dll

Assign Schema Admin to your account, then log off and login in else you can’t create new schema attribute.

Open MMC and add Active Directory Schema MMC

Copy and save VBs file for the following text. We have updated yellow highlighted text in compare to the script from here. Change the output file location as per your convenience. I have uploaded this here.