0
にフォルダにローカルホスト\ユーザ+ READ権限を追加することができます私が試した:私は、ユーザーが所有者のカントーにしたくないは、どのように私はPowerShellの
Set-Acl : The security identifier is not allowed to be the owner of this object.
:
$Folderpath='D:\DATA\'
$user_account='USERS'
$Acl = Get-Acl $Folderpath
$Ar = New-Object system.Security.AccessControl.FileSystemAccessRule($user_account, "Read", "ContainerInherit, ObjectInherit", "None", "Allow")
$Acl.Setaccessrule($Ar)
Set-Acl $Folderpath $Acl
私はエラー、次の取得します、読んだだけです。
問題はあなたのスクリプトではないと思いますが、そのフォルダに既に所有権があります。 – BenH