Re: VBS to set folder permissions



I do that with VB without any dramas. Initially when we set up an automatic account generation system I was familiar with VB but hadn't really played around a great deal with VBScript, since then I do nearly everything in VBScript, but since the VB proggy which creates and sets the permissions on their personal directories works I've had no need to rewrite it. I can wack up the code to do this in VB if you want, shouldn't be too hard to port to VBScript.


Brooks wrote:
Using VBS I need to search the AD on a Win2K server and for each name in
an OU, check to see that a personal folder has been setup.  If not then
I need to create the folder on the server and set the permissions
correctly. [Note that the VB script will be run on the server.]  OK,
but here is the problem:  I need to set the folder permissions so that
only the administrators group and that person in the AD have full
access permissions and nobody else has no access to it.  How do I do it
in vbs?

Thanks very much for your reply,

Brooks

Brooks.VanHorn@xxxxxxxxxxx



--
Brooks
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------
.



Relevant Pages

  • Re: CACLS Problem
    ... Windows 2000/XP writes the value of the current folder into ... This is precisely the entity whose access permissions you wish to change! ... >>> changed as well as subfolders. ...
    (microsoft.public.win2000.general)
  • Re: Problem Creating HomeDirectories and Permissions using VBScript
    ... When you set the home folder through a VBScript, ... and assigning permissions to it in a VBScript script. ...
    (microsoft.public.win2000.active_directory)
  • Re: Sharing / Making Files/folders Private.
    ... Disable simple file sharing in folder options and you ... will have all the access permissions you would need from right clicking a ... > Permissions in Windows ...
    (microsoft.public.windowsxp.security_admin)
  • Removing the "Inherit permissions from parent" from an NTFS folder using System.Security.AccessContr
    ... I am trying to remove all the ACEs present on a local NTFS folder ... access permissions of my own. ... Can anyone tell me how to "uncheck" the box by C# code? ...
    (microsoft.public.dotnet.security)
  • VBS to set folder permissions
    ... > really played around a great deal with VBScript, ... > the permissions on their personal directories works I've had no need ... > Brooks wrote: ... check to see that a personal folder has been setup. ...
    (microsoft.public.scripting.vbscript)