none
need PowerShell script to apply/remove permissions to servers for windows shared folders RRS feed

  • Question

  • Hello,

    I have been asked by my boss to write a script. Here are the requirements. Can someone write it for me?

    As a Server Admin it is important to understand how to apply permissions to servers without impacting the users. In effort to do this with the most minimal impact need to create these permissions via powershell script.

    Acceptance Criteria:
    1. Create PowerShell script to review Windows Share Folder and subfolders
    2. Check to see if the Share Folder has "Everyone" with Full Permissions.
    3. Check to see if the Folder has other permissions applied at the Share Level. If so, Apply Permissions to the Subfolder level instead.
    5. Change Permissions at the Share Level to display Everyone "List Content Folder" level for the "Everyone" group.

    Goal is to apply permissions via the PowerShell Script:
    The script should be able to except parameters such as:
    1. The Server Name
    2. The Share or Folder Name to apply permissions to
    3. The groups to associate with the folder.
    4. The Share or Folder Name to remove permissions from - Access to confirm before removal.
    5. It should have the ability to add, modify or remove permissions at the Share or Folder level.
    6. It should have the option to inherit permissions from parent or not.
    7. Test and Validate in local and other non-prod environments

    This could be done in Phases:
    Phase 1: Enter \\Server\Folder1\Folder2\ location and Apply new permissions to a folder
    Phase 2: Enter \\Server\Folder1\Folder2\ location and Group/UserID (group1, or user ID1)  to modify permissions for a particular group or user ID.
    Phase 3: Enter \\Server\Folder1\Folder2\ location and Group/UserID  (group1, or user ID1) to remove permissions from a folder

    Please Help. Thanks in advance.


    chirag

    • Moved by Bill_Stewart Tuesday, November 7, 2017 10:02 PM This is not "scripts on demand" (Seriously?)
    Thursday, September 21, 2017 5:52 PM

All replies