none
Using Powershell to get current permissions of folders/sub-folders and files

    Question

  • Hi Team

    Need assistance here.

    Need a powershell script to get and list current AD groups and users having permissions to folders/its subfolders and files

    Cheers


    • Edited by Rohit_nz Friday, May 1, 2015 1:53 AM
    • Moved by Just KarlModerator Friday, May 1, 2015 2:37 PM Looking for the proper forum.
    Friday, May 1, 2015 1:50 AM

Answers

  • i got the answer, so i will post it here

    Get-ChildItem C:\Folder_Name -recurse | ForEach-Object {Get-Acl $_.FullName} | Export-CSV C:\filename.csv

    • Marked as answer by Rohit_nz Friday, May 1, 2015 2:25 AM
    Friday, May 1, 2015 2:25 AM

All replies

  • i got the answer, so i will post it here

    Get-ChildItem C:\Folder_Name -recurse | ForEach-Object {Get-Acl $_.FullName} | Export-CSV C:\filename.csv

    • Marked as answer by Rohit_nz Friday, May 1, 2015 2:25 AM
    Friday, May 1, 2015 2:25 AM
  • Hello,

    The TechNet Wiki Discussion Forum is a place for the TechNet Wiki Community to engage, question, organize, debate, help, influence and foster the TechNet Wiki content, platform and Community.

    Please note that this forum exists to discuss TechNet Wiki as a technology/application.

    As it's off-topic here, I am moving the question to the Where is the forum for... forum.

    Karl


    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book: Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

    Friday, May 1, 2015 2:36 PM
    Moderator
  • Hello,

    For what it's worth, this should have been asked in the Windows PowerShell forum.

    Karl


    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book: Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

    Friday, May 1, 2015 2:37 PM
    Moderator