We currently use MD and CACLS to do this but the problem is that you have to
Y after every CALCS line of code. Is there a way using vbscript to create a
directory on a remote machine and set the permission to that directory?
This would be in a Windows 2003 SP1 environment.

Thanks,
Eric Sabo

Re: Script to create a directory and put permissions to it by rwh

rwh
Fri Aug 19 13:43:08 CDT 2005

here is how we do it with MD and CACLS

MD Y:\faculty\%1
cacls Y:\faculty\%1 /T /E /G %1:F

We parse the variables in from a text file.
Basically we have mapped drives from our Admin computers to the
location we need to mass create folders for our users as we create the
user accounts. That's how we can use a drive letter in the script


Re: Script to create a directory and put permissions to it by Sabo,

Sabo,
Fri Aug 19 13:51:12 CDT 2005

That is what we have, do you have to enter "Y" and return for each calcs
statement?


<rwh@rodharrison.com> wrote in message
news:1124476988.627455.312440@o13g2000cwo.googlegroups.com...
> here is how we do it with MD and CACLS
>
> MD Y:\faculty\%1
> cacls Y:\faculty\%1 /T /E /G %1:F
>
> We parse the variables in from a text file.
> Basically we have mapped drives from our Admin computers to the
> location we need to mass create folders for our users as we create the
> user accounts. That's how we can use a drive letter in the script
>



Re: Script to create a directory and put permissions to it by rwh

rwh
Fri Aug 19 13:56:06 CDT 2005

NO, it just runs right through like a champ. We run it as a Domain
Admin, which has full access rights to all of those folders by default.
Are you using the same switches?


Re: Script to create a directory and put permissions to it by DJP

DJP
Fri Aug 19 23:01:56 CDT 2005

I do a similar sort of thing using CACLS.vbs. This doesn't require a Y to
confirm. It sounds like you might be using CACLS.exe from the resource kit.
Do a search on the Microsoft site for CACLS.vbs and try using that.



"Clay Calvert" <ccalvert@Wanguru.com> wrote in message
news:0a1dg1th9spd2aq3v313kpd7jm8t0fsrao@4ax.com...
> On Fri, 19 Aug 2005 14:51:12 -0400, "Sabo, Eric" <sabo_e@cup.edu>
> wrote:
>
>>That is what we have, do you have to enter "Y" and return for each calcs
>>statement?
>
> If you don't use the "/e" switch then you're likely to get prompted
> for a "Y". A workaround is to use the following:
>
> echo y| cacls Y:\faculty\%1 /T /G %1:F
>
> Clay Calvert
> CCalvert@Wanguru.com
> Replace "W" with "L"