Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 421
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why doesn't active cell move using PageDown key in Excel 2007? Livonia Mike Excel Discussion (Misc queries) 1 May 8th 07 05:44 PM
Excel and Active Directory javagirl Excel Discussion (Misc queries) 2 March 30th 07 05:04 PM
Excel active directory James Setting up and Configuration of Excel 0 April 6th 05 09:00 PM
can I query active directory with excel? jwolson Excel Discussion (Misc queries) 0 December 8th 04 03:53 PM
active directory? Tim[_39_] Excel Programming 0 August 15th 04 08:34 AM


All times are GMT +1. The time now is 01:47 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"