I have a small batch file used to set folder permissions, but I would like to
convert it to a .vbs file to run it in the background. As the way it is now,
a command window pops up. I don't know the syntax for creating it into a vbs.

xcacls.vbs c:\fsp\ /g DOMAIN\"Domain Users":f /f /t /e /q

If someone has a better idea for a script then what I'm using, I'm open to
any suggestions. We have a mix of 80% XP and 20% W2K.

Re: creating script for folder permissions by dNagel

dNagel
Mon Sep 10 12:47:03 PDT 2007

UWRFREPORTER04 wrote:
> I have a small batch file used to set folder permissions, but I would like to
> convert it to a .vbs file to run it in the background. As the way it is now,
> a command window pops up. I don't know the syntax for creating it into a vbs.
>
> xcacls.vbs c:\fsp\ /g DOMAIN\"Domain Users":f /f /t /e /q
>
> If someone has a better idea for a script then what I'm using, I'm open to
> any suggestions. We have a mix of 80% XP and 20% W2K.
>

for example

Set sho = Wscript.CreateObject("Wscript.Shell")
command_string = "xcacls.vbs c:\fsp\ /g DOMAIN\""Domain Users"":f /f /t
/e /q"
sho.run command_string, 7, false

does that make it less ovbious to the end user for ya?

D.

Re: creating script for folder permissions by UWRFREPORTER04

UWRFREPORTER04
Mon Sep 10 13:26:01 PDT 2007

A window still poped up for me when I ran it on my pc.

Set sho = Wscript.CreateObject("Wscript.Shell")
command_string = "xcacls.vbs c:\fsp\ /g SMWFCU\""Domain Users"":f /f /t /e /q"
sho.run command_string, 7, false

That's exactly what I used saved as a vbs file. A windows from
C:\windows\system32\cscript.exe pops up and sits there for a few minutes
until it's done applying all the permissions on folders and subfolders.

"dNagel" wrote:

> UWRFREPORTER04 wrote:
> > I have a small batch file used to set folder permissions, but I would like to
> > convert it to a .vbs file to run it in the background. As the way it is now,
> > a command window pops up. I don't know the syntax for creating it into a vbs.
> >
> > xcacls.vbs c:\fsp\ /g DOMAIN\"Domain Users":f /f /t /e /q
> >
> > If someone has a better idea for a script then what I'm using, I'm open to
> > any suggestions. We have a mix of 80% XP and 20% W2K.
> >
>
> for example
>
> Set sho = Wscript.CreateObject("Wscript.Shell")
> command_string = "xcacls.vbs c:\fsp\ /g DOMAIN\""Domain Users"":f /f /t
> /e /q"
> sho.run command_string, 7, false
>
> does that make it less ovbious to the end user for ya?
>
> D.
>

Re: creating script for folder permissions by dNagel

dNagel
Mon Sep 10 16:07:17 PDT 2007



UWRFREPORTER04 wrote:
> A window still poped up for me when I ran it on my pc.
>
> Set sho = Wscript.CreateObject("Wscript.Shell")
> command_string = "xcacls.vbs c:\fsp\ /g SMWFCU\""Domain Users"":f /f /t /e /q"
> sho.run command_string, 7, false
>
> That's exactly what I used saved as a vbs file. A windows from
> C:\windows\system32\cscript.exe pops up and sits there for a few minutes
> until it's done applying all the permissions on folders and subfolders.
>

SomeFile.VBS

Set sho = Wscript.CreateObject("Wscript.Shell")
command_string = "CSCRIPT xcacls.vbs c:\fsp\ /g SMWFCU\""Domain Users"":f /f /t /e /q"
sho.Exec command_string

Then all somefile.vbs from your login script.

See if that does it?

D.



Re: creating script for folder permissions by UWRFREPORTER04

UWRFREPORTER04
Tue Sep 11 14:48:02 PDT 2007

I don't know what you mean by the all somefile.vbs or where I need to include
that.

I ran the file the way you listed: This time it ran very fast and didn't do
anything.

Set sho = Wscript.CreateObject("Wscript.Shell")
command_string = "CSCRIPT xcacls.vbs c:\fsp\ /g SMWFCU\""Domain Users"":f /f
/t /e /q"
sho.Exec command_string


"dNagel" wrote:

>
>

> SomeFile.VBS
>
> Set sho = Wscript.CreateObject("Wscript.Shell")
> command_string = "CSCRIPT xcacls.vbs c:\fsp\ /g SMWFCU\""Domain Users"":f /f /t /e /q"
> sho.Exec command_string
>
> Then all somefile.vbs from your login script.
>
> See if that does it?
>
> D.
>
>
>