raandree/NTFSSecurity
소개
PowerShell을 사용해도 VBS나 명령줄을 사용할 때보다 권한 관리가 조금 편해질 뿐입니다. 권한 보고서를 가져오거나 항목에 권한을 추가하는 등 일상적인 작업 대부분을 위한 cmdlet이 없기 때문입니다. PowerShell에는 Get-Acl과 Set-Acl만 있어 ACL을 가져온 뒤 설정하기까지 필요한 기능이 빠져 있습니다. 이 모듈이 그 공백을 메웁니다.
개발 도구측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalNTFSSecurity
| Branch | Build | Last commit | Latest release |
|---|---|---|---|
| master |
[!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:
- Overview: features, requirements, and the list of cmdlets
- Concepts: security descriptors, access rights, inheritance, privileges, long paths, and module settings
- Examples: common tasks
- Cmdlet reference: one page per cmdlet
- Contributor guide
The module author's tutorials from 2014 are still a good introduction, although some cmdlet names have changed since:
- NTFSSecurity Tutorial 1 - Getting, adding and removing permissions
- NTFSSecurity Tutorial 2 - Managing NTFS Inheritance and Using Privileges
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.
관련 프로젝트 살펴보기
불러오는 중…