locked
Create folders, create AD groups, assign perm and conf audit - powershell or vbscript - which forum RRS feed

  • Question

  • What exists as of now:
    File server OS: 2008 R2 Ent - 4 node cluster (not DFS)
    Already setup: Base folder structure two levels deep

    This is what the folder structure looks like currently

    Cluster drive
    F:\

    Base Folder
    F:\GroupData\

    Sub-Folders
    F:\GroupData\EasternReg\
    F:\GroupData\WesternReg\
    F:\GroupData\NorthernReg\
    F:\GroupData\SouthernReg\
    F:\GroupData\CentralReg\
    F:\GroupData\CAGroups\
    F:\GroupData\EUGroups\
    F:\GroupData\AFGroups\
    F:\GroupData\ASGroups\
    F:\GroupData\Misc\

    Sub-subfolders
    F:\GroupData\EasternReg\Forms\
    F:\GroupData\WesternReg\Forms\
    F:\GroupData\NorthernReg\Forms\
    F:\GroupData\SouthernReg\Forms\
    F:\GroupData\CentralReg\Forms\
    F:\GroupData\CAGroups\Forms\
    F:\GroupData\EUGroups\Forms\
    F:\GroupData\AFGroups\Forms\
    F:\GroupData\ASGroups\Forms\
    F:\GroupData\Misc\Forms\

     

    Under each form folder there is a txt file (grp.txt) which has a list of all the folders that need to be created parallel to it so that the final structure looks like (error correction that if a folder exisits don't overwrite !!)
    F:\GroupData\EasternReg\Forms\
    F:\GroupData\EasternReg\grp1\
    F:\GroupData\EasternReg\grp2\
    ....

    Once the folders have been created I need to create groups (type: local domain, security) in AD based on the names in each txt file, and assign the AD group modify access and the local administrators group full control
    I need to go back and set the auditing on these folders to audit file access and deletion by a member of local Admin group

    Is this possible to do with Powershell/VB script or should I get busy creating those folders, and groups ?????

    Thanks in advance for all your help folks

    Thursday, December 31, 2009 12:44 PM

Answers

  • Hello ,
     

    Thank you for your post!  I would suggest posting your question in the 'Windows Server TechCenter > Windows Server Forums > Windows PowerShell ' located here:  http://social.technet.microsoft.com/Forums/en-US/winserverpowershell/threads


    Have a great day!

    Thanks!


    SachinW Tier 2 Application Support Server and Tools Online Operations Team
    • Proposed as answer by SachinW Thursday, December 31, 2009 10:53 PM
    • Marked as answer by GDLG Friday, January 1, 2010 6:00 PM
    Thursday, December 31, 2009 10:53 PM