Change -dsq to -adcsv and try it

> -----Original Message-----
> From: Michael Leone [mailto:oozerd...@gmail.com]
> Sent: Wednesday, November 18, 2009 11:21 AM
> To: NT System Admin Issues
> Subject: Fwd: ADFIND/ADMOD question
> 
> I've got what is probably a simple question about using the joeware
> tools, adfind and admod. Unfortunately, the forums there are no more,
> so I thought I'd ask here.
> 
> What I've got: a text file, listing user login IDs.
> What I need to do: change the home directory entry for each of those users.
> 
> So, if I read a line of the file that says "LeoneM", I need to find
> the entry for that user, and change the home folder from
> "\\server1\users\LeoneM" to "\\server2\users\LeoneM".
> 
> This isn't working (in a CMD script):
> 
> SET _HomeFolder=\\server2\users\LeoneM"
> adfind -b "DC=my-dn" -f sAMAccountName=%%C -dsq | admod
> "homeDirectory::!_HomeFolder!"
> 
> I get:
> 
> AdMod V01.10.00cpp Joe Richards (j...@joeware.net) February 2007
> 
> ERROR: Issue with attrib parameter - [admod]
> ERROR: Missing operation.
> 
> Any ideas what I'm doing wrong here? I can find it OK, using the above
> snippet, but admod is complaining, and I'm unsure why. I even tried
> hard-coding the value, with no luck.
> 
> ~ Finally, powerful endpoint security that ISN'T a resource hog! ~
> ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

Reply via email to