Bit more information as to why I need to do this ....
If I create a user in AD and the try to create the mail box with vb.net or vbscript
Set oIADSUser = GetObject("ldap://CN=fred tft,OU=Students,DC=hub,DC=TCAT,DC=NETWORK")
Does anyone know of any examples for removing exchange attribs from a user in AD.
If I select exchange tasks on a user I am given the option to remove exchange attribs from the selected recipient.
I need to do this in code I have googled but can not find any examples.
Going to open a ticket with Microsoft, the code worked for a year and after patching and updating AD and Exchange it stopped working I will update this post when I get a solution.
maybe this is where im going wrong the getusersOU(username) simply returns eg
It doesnt set anything , the users ad account is already fully populated when i read the MS example they used a sub called CreateUserURL when i looked at the sub the...
Bit more info
The entire program consists of a module and a class the class (tcatlibs) holds all of the common functions including the above
CreateExchangeAccount(ByVal username AsString, ByVal acctype AsString) ' Returns true or false as bool
tcatlibs is then added as a reference and...
Still having problems :-(
After running regsvr32 on the 3 dlls the CDO.Person became available (thanks) so I have read through the article and come up with the following code.
PublicReadOnlyProperty CreateExchangeAccount(ByVal username AsString, ByVal acctype AsString)
' Pass in the...
Thanks for the reply, I am using the examples from the 2nd (Microsoft) link you posted , but having a problem with the syntax
I can not see in the article what I need to ref so guessed and added the line
But Person isnt listed under CDO
Hope that I am posting this in the correct place:-s
I have a problem with some code I wrote a while ago which imports students from an oracle database and creates the users account within Active Directory. For some reason the code has stopped working and when I debug the code It always...