Einzelnen Beitrag anzeigen

Olli
(Gast)

n/a Beiträge
 
#2

Re: Computer AD Konto verschieben

  Alt 30. Sep 2006, 16:55
Da ich davon ausgehe, daß du C/C++ kannst und das PSDK/MSDN hast, schau mal unter ms-help://MS.MSDNQTR.v80.en/MS.MSDN.v80/MS.WIN32COM.v10.en/ad/ad/moving_objects.htm

Zitat:
Moving Objects
To move an object within a domain, use the IADsContainer.MoveHere method.

To move an object within a domain

Bind to the IADs interface of the object to move.
Get the ADsPath of the object to move from the IADs.ADsPath property.
Bind to the IADsContainer interface of the container where the object will be moved to.
Move the object with the IADsContainer.MoveHere method.

If an interface exists to the object that was moved, the interface is not valid after the object is moved because the directory object the interface represents no longer exists.

For more information and a code example that shows how to move an object, see Example Code for Moving an Object.
  Mit Zitat antworten Zitat