Skip to content
Projetos

Sobre

Gerenciar permissões com PowerShell é só um pouco mais fácil do que com VBS ou pela linha de comando, pois faltam cmdlets para a maioria das tarefas do dia a dia, como gerar um relatório de permissões ou adicionar permissões a um item. O PowerShell oferece apenas Get-Acl e Set-Acl; falta tudo o que há entre obter e definir a ACL. Este módulo preenche essa lacuna.

Ferramentas de desenvolvimento

Como estes números são medidos

Crescimento medido de estrelas

em 24 h
0
em 7 dias
0
em 15 dias
+1
em 1 mês
Coletando histórico

Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.

README.md

Original

NTFSSecurity

Branch Build Last commit Latest release
master CI status of master Last commit on master Latest GitHub release PowerShell Gallery version

Open issues GitHub release downloads PowerShell Gallery downloads

[!IMPORTANT] NTFSSecurity will be archived soon. Please move to WindowsAccessControl, which is also on the PowerShell Gallery: Install-Module -Name WindowsAccessControl.

A PowerShell module for managing the permissions, audit settings, inheritance, and ownership of files and folders on NTFS volumes.

PowerShell offers only Get-Acl and Set-Acl; everything between reading and writing an access control list is up to you. NTFSSecurity closes this gap with cmdlets for everyday tasks, such as permission reports, adding or removing a single permission, repairing inheritance, and taking ownership.

Installation

Install the module from the PowerShell Gallery:

Install-Module -Name NTFSSecurity

You can also download a release from the releases page and install it without the PowerShell Gallery; see Installation.

The module runs on Windows in Windows PowerShell 5.1 and PowerShell 7.

Quick start

# Show the permissions of a folder
Get-NTFSAccess -Path C:\Data

# Give an account the Modify permission on a folder, its subfolders, and files
Add-NTFSAccess -Path C:\Data -Account 'CONTOSO\JohnDoe' -AccessRights Modify

# Remove the explicit permissions of that account again
Get-NTFSAccess -Path C:\Data -Account 'CONTOSO\JohnDoe' -ExcludeInherited |
    Remove-NTFSAccess

# List the explicit permissions in a folder tree, including long paths
Get-ChildItem2 -Path C:\Data -Recurse | Get-NTFSAccess -ExcludeInherited

Documentation

Read the documentation in the wiki, which is generated from the Docs folder, or in the folder itself:

The module author's tutorials from 2014 are still a good introduction, although some cmdlet names have changed since:

Version history

See CHANGELOG.md for changes since version 4.2.6 and the version history for 4.2.6 and earlier releases.

License

NTFSSecurity is licensed under the MIT license.

Explore projetos relacionados

Carregando…