Can you post your script so we can see what it is doing.

Also why are you taking ownership, If these folders were created using the
users home drive path in ADUC then the local admins should have access and
your can just run the script as a users who is in the local admins group.




On Fri, Sep 5, 2008 at 2:30 PM, <[EMAIL PROTECTED]> wrote:

>
> OK, so I have a script that lists all the user directories on a server.
> Since the user directory is also the login for the user, I can query AD
> (using ADFIND) and  extract out user details. If a user account that owns
> said folder is disabled, I want to take ownership of it, and then move it to
> a different folder. This is all done using a shell script (CMD, not
> VBScript, not PowerShell)
>
> So this is all working .. almost. :-) I am trying to call the XCACLS.VBS
> script to do the actual take ownership part (since the command line .EXE
> utility is supposed to have problems). As a test, all I am doing is listing
> ownership of the folders in question. And again, that all works ... to a
> point. Almost invariably, the script will just stop, and it is always on the
> return from the call to execute XCACLS.VBS. I know this, because I put a
> PAUSE statement after each call to XCACLS,VBS, and when the script stops,
> all I see is the output from XCACLS.VBS, and not my pause statement.
>
> Thoughts? Clues? Hints? Pointers? Any other groveling help word I've
> overlooked?
>
> Server I am running this against is Win2000 (I will also, later, run it
> against Win2003 fileservers). I am running this from a WinXP Pro SP3
> workstation. The version of the XCACLS.VBS I am using is " XCACLS.VBS
> (Version: 5.2)". I run this by using CSCRIPT.
>
> Thanks
>
> --
> Michael Leone
> Network Administrator, ISM
> Philadelphia Housing Authority
> 2500 Jackson St
> Philadelphia, PA 19145
> Tel:  215-684-4180
> Cell: 215-252-0143
> <mailto:[EMAIL PROTECTED]>
>
>
>
>
>
>

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

Reply via email to