Re: dsquery pipe to dsmove

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




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

.



Relevant Pages

  • Re: Batch files
    ... I have a few questions re Bat files in Windows XP. ... Remove the "pause" command from your batch ... @echo "Now backing up Search Database, ...
    (microsoft.public.windowsxp.general)
  • Multiple files editing
    ... This file is fed by "echo" statements whose arguments are basically the date and what file we're in. ... However some bat files call others etc ... ... who call fortran exe, that do other things, and basically my original idea becomes a tad too simple. ... echo out of something>> logfile ...
    (alt.os.linux)
  • Re: Problem with a batch build script
    ... echo nine ... Replace each echo with the appropriate LINK command. ... But they got one disadvantage compared to .bat files. ... make a .makefile for every program/project you're building. ...
    (comp.lang.fortran)
  • Re: Fastcode CharPosIEx B&V 1.0.3
    ... D6 Build and Validate bat files should be removed. ... Wrong echo text in one bat file. ... I will fix this soon. ... Best regards ...
    (borland.public.delphi.language.basm)
  • Re: robocopy validation
    ... Robocopy did not copy any files. ... if errorlevel 8 echo **FAILED COPIES** & goto end ...
    (microsoft.public.win2000.general)