Nice, so if I want the owner of the dir, *and* its contents I have to run it twice? SubInAcl /subdirectories \\Server\C$\Data\Amok /setowner=Domain\JCasale SubInAcl /subdirectories \\Server\C$\Data\Amok\* /setowner= Domain\JCasale
there's got to be a way around that? Thanks! jlc From: James Rankin [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2008 4:45 AM To: NT System Admin Issues Subject: Re: Take ownership via commandline Try subinacl.exe instead with the /SETOWNER switch Alternatively I believe fileacl may work 2008/8/6 Joseph L. Casale <[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>> I was using xcacls.exe in my script, but noticed I couldn't take ownership of the actual folder with it. I am trying to adapt my script to xcacls.vbs, it works on my XPsp3 wkst, but on my 2003sp2 DC I get an error where it cant set the owner with the same syntax? cscript XCACLS.vbs "C:\Test" /F /T /P "Domain Admins":F "Dom\JCasale":F /O "Dom\JCasale" Why would the ownership part not work on the DC? Thanks! jlc ~ Upgrade to Next Generation Antispam/Antivirus with Ninja! ~ ~ <http://www.sunbelt-software.com/SunbeltMessagingNinja.cfm> ~
