Page 1 of 1 1
Topic Options
#88341 - 2002-09-27 08:19 PM Moving a Computer within AD
Netsuper Offline
Getting the hang of it

Registered: 2001-05-17
Posts: 64
Loc: Edwards AFB, CA, US
Hey all,
Does ADSI have a function for moving a computer account from one OU to another? Or would I need to use LDAP? And if I use LDAP, does anyone have a syntax for an LDAP put (if there is such a thing?).
_________________________
Scott Hickerson Network Design Engineer

Top
#88342 - 2002-09-27 08:34 PM Re: Moving a Computer within AD
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
Here's something from the MSDN Script Center (converted to KiX):

code:
$objNewOU = GetObject("LDAP://OU=Finance,DC=fabrikam,DC=com")
$objMoveComputer = $objNewOU.MoveHere ("LDAP://CN=atl-pro-03,CN=Computers,DC=fabrikam,DC=com", "CN=atl-pro-03")


Top
Page 1 of 1 1


Moderator:  Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 507 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.048 seconds in which 0.023 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org