On Fri, Oct 19, 2012 at 11:03 AM, Michael B. Smith
<[email protected]> wrote:
> Admod certainly doesn't have any issues with proper spaces in DNs. I'm
> guessing that cmd.exe is stripping what IT thinks are extraneous quotes.
Absolutely - when I do an individual entry by hand, ADMOD works just great.
> I would do it in PowerShell. :)
I knew that! :)
I was hoping for a response like this, and will try that out too on a test set.
> $computers = gc change1.txt
> foreach( $computer in $computers )
> {
> $array = $computer.Split( " " ) ## assuming space separated - update
> as necessary for your file
> cmd /c admod -b "$($array[0])" "homedrive::H:"
> "homedirectory::$($array[1])"
> }
Thanks,
Kurt
~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~
---
To manage subscriptions click here:
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe ntsysadmin