Trying to add a new user using ADSI on a webpage and I get this error:
Active Directory error '80070005'
General access denied error
on the User.SetInfo line
Here is my code:
Dim Container, ContainerName, User, NewUser
ContainerName = "Domain_Name"
NewUser = "TestUser"
Set Container = GetObject("WinNT://" & ContainerName)
Set User = Container.Create("User", NewUser)
Any ideas as to why I get denied?