모든 권한으로 폴더의 "인증된 사용자" 그룹 수정

모든 권한으로 폴더의 "인증된 사용자" 그룹 수정

폴더에서 "인증된 사용자" 그룹을 수정하고 모든 권한을 부여해야 합니다.

Powershell 스크립트를 시도했지만 일괄적으로 작동하지 않습니다. 도움을 받을 수 있습니까?

배치는 다음과 같습니다.

icacls c:\TEST /grant *S-1-5-11:(f) 

그리고 파워셸:

$FolderPath = "C:\Program Files\Eliot"
$ACL = Get-Acl  -Path $FolderPath
$SID = New-Object System.Security.Principal.SecurityIdentifier("S-1-5-11")
$Rule = new-object System.Security.AccessControl.FileSystemAccessRule($SID.Value, "FullControl",”ContainerInherit,ObjectInherit”,”None”,”Allow”)
$ACL.SetAccessRule($Rule)
Set-Acl -Path $FolderPath -AclObject $ACL

관련 정보