Results 1 to 4 of 4
  1. #1
    New Lounger
    Join Date
    Dec 2009
    Location
    Brentwood, CA USA
    Posts
    14
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Scripting to add file permissions

    I want to use a script to add user permissions to new files for the following two users: IUSR_WPG and IIS_CowGirl. I have been manually adding them for each file I move to my server via the Windows Properties/Security tab but this is a pain. Is the some way I can script this or automate this? Thanks

  2. #2
    Super Moderator RetiredGeek's Avatar
    Join Date
    Mar 2004
    Location
    Manning, South Carolina
    Posts
    6,194
    Thanks
    201
    Thanked 785 Times in 719 Posts
    Slovey,

    You might want to give this article a read. HTH
    May the Forces of good computing be with you!

    RG

    VBA Rules!

    My Systems: Desktop Specs
    Laptop Specs


  3. #3
    New Lounger
    Join Date
    Dec 2009
    Location
    Brentwood, CA USA
    Posts
    14
    Thanks
    4
    Thanked 0 Times in 0 Posts
    Thanks I will take a look at it.

  4. #4
    New Lounger
    Join Date
    Sep 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Or, set the permissions on the folder to which you are moving the files and then just copy the files instead of moving them (then the files will inherit the permissions of the parent folder (more info).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •