Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
move an object in active directory excel 2007 vba
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 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
move an object in active directory excel 2007 vba
Hi P,
Perhaps you should consider posting your question in: microsoft.public.windows.server.active_directory or microsoft.public.scripting.vbscript --- Regards. Norman "pghboemike" wrote in message ... 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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Why doesn't active cell move using PageDown key in Excel 2007? | Excel Discussion (Misc queries) | |||
Excel and Active Directory | Excel Discussion (Misc queries) | |||
Excel active directory | Setting up and Configuration of Excel | |||
can I query active directory with excel? | Excel Discussion (Misc queries) | |||
active directory? | Excel Programming |