Close Menu
Computing.net
    Facebook X (Twitter) Instagram
    Computing.netComputing.net
    • News
      1. AI
      2. Crypto
      3. Gaming
      4. Hardware
      5. Security
      6. Software
      7. View All

      Anthropic’s COBOL Automation Tool Triggers IBM Stock Plunge and Crypto Market Decline

      February 24, 2026

      AI Trading Bot Loses $441K in Crypto After Decimal Point Mistake

      February 23, 2026

      Tesla (TSLA) Stock: Goodbye Sedans, Hello Robots in Dramatic Production Shift

      January 29, 2026

      Palantir Technologies (PLTR) Stock: Why Bears May Be Wrong About Valuation Concerns

      January 29, 2026

      SUI Token Rallies 40% Following Major Staking Event and CME Futures Announcement

      May 12, 2026

      Chainlink (LINK) Surges to $10.40 as Network Activity Hits Eight-Month Peak

      May 12, 2026

      Dogecoin Whales Ramp Up Accumulation as DOGE Eyes Critical Breakout Levels

      May 12, 2026

      Bitcoin Holds $81K While Burry Flags Nasdaq Bubble and Oil Surges Past $105

      May 12, 2026

      Hamster Kombat: Unraveling TON’s Gaming Phenomenon

      August 7, 2024

      W-Coin: Exploring the Latest Telegram Tap-to-Earn Phenomenon

      August 7, 2024

      Hamster Kombat: 300 Million Players & Counting, HMSTR Token Airdrop Soon!

      July 31, 2024

      Hamster Kombat Developers Work with TON Team on Airdrop Solution

      July 30, 2024

      Nothing Expands Product Line with New AI Feature & Phone Update

      July 31, 2024

      Security Audit Reveals Concerns in Atari’s Blockchain Game on Base

      August 6, 2024

      SideWinder Group Targets Maritime Facilities in New Cyber Espionage Campaign

      July 30, 2024

      OAuth Implementation Flaw Exposes Millions of Websites to XSS Attacks

      July 30, 2024

      Hamster Kombat Players Face Growing Cybersecurity Threats

      July 25, 2024

      Anthropic’s COBOL Automation Tool Triggers IBM Stock Plunge and Crypto Market Decline

      February 24, 2026

      Cookie Crumble: Google Halts Plans to Eliminate Third-Party Cookies in Chrome

      July 23, 2024

      Big Brother is Watching: Apple’s Creepy New Ad Urges iPhone Users to Ditch Chrome

      July 23, 2024

      Nvidia Stock Soars to New Record at $219.44 Ahead of May 20 Earnings

      May 12, 2026

      Rocket Lab Shares Surge Past $120 Following Wave of Analyst Upgrades

      May 12, 2026

      GM Shares Decline Following 600 IT Layoffs Amid Strategic AI Workforce Transformation

      May 12, 2026

      SES Delivers €847M Q1 Performance as Intelsat Integration and Aviation Deals Fuel Expansion

      May 12, 2026
    • How To

      Batch Files: Tokens and Delimiters (FOR Loops)

      July 31, 2024

      Types of Ethernet Cabling & Electrical Low Voltage Wiring

      July 9, 2024

      What You Should Know About .JSON File Extension

      January 10, 2023

      Bkup File Extension

      November 19, 2022

      HEIC File Extension

      November 19, 2022
    • Office
      1. Excel
      2. Google Sheets
      3. View All

      How to Convert Column List to Comma Separated List in Excel

      July 24, 2024

      How to Find the Last Monday of the Month in Excel

      July 24, 2024

      Convert Bytes to MB or GB in Excel: 3 Methods!

      July 24, 2024

      How to Remove Characters from Right in Excel

      July 30, 2023

      How to Subtract in Google Sheets: Complete Guide

      July 31, 2024

      Bullet Points in Google Sheets

      January 20, 2022

      Sort by Date in Google Sheets

      January 18, 2022

      Google Sheets Timestamp

      January 17, 2022

      How to Subtract in Google Sheets: Complete Guide

      July 31, 2024

      How to Convert Column List to Comma Separated List in Excel

      July 24, 2024

      How to Find the Last Monday of the Month in Excel

      July 24, 2024

      Convert Bytes to MB or GB in Excel: 3 Methods!

      July 24, 2024
    • Answers
    • About
    • Contact
    Facebook X (Twitter)
    Computing.net
    Powershell

    Powershell Get Permissions on Folder and Subfolders

    Computing StaffBy Computing StaffNovember 29, 2022
    Twitter LinkedIn Email Telegram
    Powershell Get Permissions on Folder and Subfolders
    Twitter LinkedIn Email Telegram

    Today I’ll be going over how to use Powershell to Get permissions on folders and subfolders, as well as NTFS permission report in an output file.

    The PowerShell Get-ACL available in the Microsoft.PowerShell.Security module allows you to get permissions on folders (directories) and subfolders. Windows Operating Systems store info related to files, folders (directories), and subfolders permission in the Access Control List (ACL).

    Lucky for us, PowerShell provides the Get-ACL cmdlet that provides the access control list for the given resource. The ACL contains the Users & Users group permissions to access the resource.

    To view and parse the permissions on folder, use get-acl cmdlet

    ACL permissions on directories or folders

     

     

    Contents:

    Toggle
    • Powershell for extracting Permissions on Current Working Folder or Directory
    • Extract the NTFS permissions Report on Folder in Format-table
    • Extract Permission on Folders and Subfolders Recursively

    Powershell for extracting Permissions on Current Working Folder or Directory

    To view the NTFS permissions report on current working folder or directory in PowerShell, we’ll be using Get-ACL cmdlet without no parameters. It will return the access control list for directory/folder.


    PS C:\temp\>Get-ACL

    In the example directly Above, Get-ACL finds the permissions on current working directory, here in C:\temp.

    Output of the Get-Acl finds the permissions on folder as shown below:

    get acl current folder or directory permission

    Extract the NTFS permissions Report on Folder in Format-table

    To extract and parse the output of PowerShell get-acl cmdlet on folder permissions in a Format-Table, use below command


    PS C:\Temp> Get-Acl | Format-Table -Wrap

    In the command Above, we get the NTFS permission report on folders and outputs results to Format-Table. Output of the above command as below

    acl folder permission format

    Extract Permission on Folders and Subfolders Recursively

    We’ll be using the command below to extract permission on folders and subfolders using Get-ACL powershell command.


    PS C:\PowerShell\>Get-ChildItem -Recurse | where-object {($_.PsIsContainer)} | Get-ACL | Format-List

    In the PowerShell code example above, to get permissions on folders and subfolders recursively, Get-ACL cannot show all folders and subfolders permission – Thus we’ll need to utilize the PowerShell Get-ChildItem cmdlet with -Recurse parameter.

    Output of the the command pass through where-object{$_.PslsContainer} filter to select only folder. PsIsContainer get directory if its property in file system object set to true.

    We can then use the Get-ACL cmdlet to extract the permissions on folders and subfolders recursively.

    The Output of the command above will list permissions on the folder as given below

     acl folder permission

    If you want to extract and get the folder permissions into a text file, then we’ll use the command shown below:


    PS C:\computing> Get-ChildItem -Recurse | where-object {($_.PsIsContainer)} | Get-ACL | Format-List | Out-File c:\Results.txt

    The above command will extract the permissions the top-level folder and subfolders/directories in the “C:\computing” folder and get its permissions using the Get-ACL command and then out the results to a c:\Results.txt

    Now that we’ve gone over the methods of extracting or getting the NTFS permissions and reporting them into a file, you’ll now have no issues with using Powershell to Get Permissions on Folder and Subfolders (or directories).

    Share. Twitter LinkedIn Email Telegram
    Avatar photo
    Computing Staff
    • Website

    Related Posts

    PowerShell Force GpUpdate on all Domain Computers

    November 28, 2022
    Add A Comment

    Comments are closed.

    Latest

    Nvidia Stock Soars to New Record at $219.44 Ahead of May 20 Earnings

    May 12, 2026

    Rocket Lab Shares Surge Past $120 Following Wave of Analyst Upgrades

    May 12, 2026

    GM Shares Decline Following 600 IT Layoffs Amid Strategic AI Workforce Transformation

    May 12, 2026

    SES Delivers €847M Q1 Performance as Intelsat Integration and Aviation Deals Fuel Expansion

    May 12, 2026

    Trump Dismisses Iran Peace Proposal — Oil Markets React as Hormuz Remains Restricted

    May 12, 2026
    • Facebook
    • Twitter

    Latest Reviews

    Meta Platforms Shares Tumble 8% Despite Strong Q1 Performance Amid AI Investment Surge

    April 30, 2026

    Flush.com Review: Casino & Sportsbook With 275% Welcome Bonus

    March 7, 2026

    Katsubet Review: Crypto Casino With 300% Welcome Bonus & Free Spins

    March 7, 2026

    7Bit Review: Crypto Casino With 325% Bonus & 250 FS

    March 7, 2026

    Mega Dice Review: Crypto Casino With 200% Bonus & 50 Free Spins, Legit?

    March 7, 2026


    Home / Privacy Policy / Terms & Conditions

    Computing.net © 1996 - 2026 Kooc Media Ltd. All rights reserved. Registered Company No.05695741

    Type above and press Enter to search. Press Esc to cancel.