Re: dsquery pipe to dsmove
- From: jake_friz <jake_friz.39tw7d@xxxxxxxxxxxxx>
- Date: Fri, 23 May 2008 01:22:49 +0530
I know almost nothing about vbscript but I love my .bat files. Here's
what I came up with:
--start--
@echo off
:again
dsquery computer -limit 1 cn=computers,DC=vprodemo | dsmove -new parent
ou=validation,dc=vprodemo
if errorlevel 0 goto again
--end--
this moves the computer accounts one at a time. Once they are all moved
dsmove fails and the .bat ends.
--
jake_friz
------------------------------------------------------------------------
jake_friz's Profile: http://forums.techarena.in/member.php?userid=50113
View this thread: http://forums.techarena.in/showthread.php?t=356088
http://forums.techarena.in
.
- Prev by Date: Re: Cannot add new computer object
- Next by Date: Re: preferredLanguage Active Directory attribute?
- Previous by thread: Re: Cannot add new computer object
- Next by thread: Re: How to display a property on the Organization tab
- Index(es):
Relevant Pages
|