現在、ユーザーにフルコントロールを手動で追加しています。下のスクリーンショットをご覧ください。ただし、これはPSスクリプトを介して行う必要があります。https://blogs.technet.microsoft.com/heyscriptingguy/2010/11/18/use-powershell-to-set-security-permissions-for-remoting/リンクですが、これを 1 つずつ実行するとエラーが発生します。提案してください。
エラー-
PS C:\Windows\system32> $user = "bsg\sisyphus"
PS C:\Windows\system32> $accval = New-Object Security.Principal.NTAccount $user
PS C:\Windows\system32> $accval
Value
-----
bsg\sisyphus
PS C:\Windows\system32> $sid = $accval.Translate([Security.Principal.SecurityIdentifier]).Value
Exception calling "Translate" with "1" argument(s): "Some or all identity references could not be translated."
At line:1 char:1
+ $sid = $accval.Translate([Security.Principal.SecurityIdentifier]).Val ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : IdentityNotMappedException
答え1
Security.Principal.NTAccount の名前を System.Security.Principal.NTAccount に変更して、異なるエラーが発生するかどうかを確認してください。