Hello Guys,

I too needed a VBscript to set folder permissions on workstations. So thanks for the information.
However in my code I could never get the variable of strfolder path to get recognized.

Here is what I'm referring to:
Option Explicit
Dim strFolder

strFolder = "C:\Test\Growing Palms"

Set objShell = CreateObject("Wscript.Shell")
objShell.Run("%COMSPEC% /k cacls & stfFolder & /E /G WhiteCastle\Sarah:F")

I just could not get the directory to get recognized!

I ended up change the script line to the following.
objShell.Run("%COMSPEC% /k cacls ""c:\test\Growing Palms"" /E /G WhiteCastle\Sarah:F")

Any Idea as to what I was doing wrong is attempting to use the Variable.
I know that once your sent the %comspec% comand you are very much in at a dos prompt.
Perhaps if there was a way to pass over the variable to the shell command envirnment.

Please advise,