Warning: As combined with the questioner, this answer is not intended to answer exactly what has been requested, but to provide alternatives for handling Active Directory data using other languages and platforms.
Inserting information via SQL Server into Active Directory could be unsafe practice, with unpredictable results. Therefore, the feature has not been enabled. What can be done by SQL Server is to get query-level information.
Therefore, there is also the possibility of inserting information using alternative methods, in applications written in languages such as C# and Vbscript.
There’s a big article in Codeproject in which are explained various functionalities that can be implemented to perform various insertion tasks.
To Vbscript and BAT
, There is this site with hundreds of examples for the most varied tasks.
The answer necessarily has to cover only SQL Server or you would accept some alternative on another platform like C#, for example?
– Leonel Sanches da Silva
The principle in SQL Server is what we are currently using. Unless it is not possible or not very suitable to use SQL Server.
– PFVictor
@Can you kindly show me the alternative insertion by c# then? Can you tell me how to insert by command prompt too, suddenly creating a file. bat?
– PFVictor