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

    Scripting to add file permissions

    I want to use a script to add file permissions for two users to individual files as needed. The users are IUSR_WPG and IIS_Cowgirl. I have been doing this manually via the windows properties/security tab but each time I move a file to my server, I have to do this. Would love to automate it. I am familiar with scripting and most Unix/NT commands (also have access to MKS toolkit - Unix tools for Windows)

  2. Get our unique weekly Newsletter with tips and techniques, how to's and critical updates on Windows 7, Windows 8, Windows XP, Firefox, Internet Explorer, Google, etc. Join our 480,000 subscribers!

    Excel 2013: The Missing Manual

    + Get this BONUS — free!

    Get the most of Excel! Learn about new features, basics of creating a new spreadsheet and using the infamous Ribbon in the first chapter of Excel 2013: The Missing Manual - Subscribe and download Chapter 1 for free!

  3. #2
    Platinum Lounger
    Join Date
    Dec 2009
    Thanked 231 Times in 219 Posts
    This sounds like you are updating a web site. Why not set the permission at directory level and then you don't need to update individual files?
    If you still want to script the change you can use the CACLS command on it's own or in a batch file.

    cheers, Paul

Posting Permissions

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