Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / May 2008

Tip: Looking for answers? Try searching our database.

move an object in active directory excel 2007 vba

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
pghboemike - 28 May 2008 22:22 GMT
i have the code below which i would like to use to move computers from one
place to another in active directory.

the erro is  'there is no object on the server'

i have set refrence to the active ds type lib

suggestions???

thanks

Sub move2()
' set refrence to the active ds type lib

Dim cont As ActiveDs.IADsContainer
Dim strcomp As ActiveDs.IADsComputer

Set cont = GetObject("LDAP://dc=mydomain,dc=loc")

Set strcomp =
cont.moveHere("LDAP://cn=WS-307-143-A03,OU=Computers,OU=schoo1,OU=ALL-SCHOOLS,DC=mydomain,DC=loc", vbNullString)

End Sub
Norman Jones - 28 May 2008 22:41 GMT
Hi P,

Perhaps you should consider posting your
question in:

       microsoft.public.windows.server.active_directory

or

       microsoft.public.scripting.vbscript

---
Regards.
Norman

>i have the code below which i would like to use to move computers from one
> place to another in active directory.
[quoted text clipped - 20 lines]
>
> End Sub
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.