如何从本地pipe理员使用Powershell删除NT AUTHORITY \ Authenticated Users(S-1-5-11)
我如何从本地pipe理员组中删除NT AUTHORITY \ Authenticated Users(S-1-5-11)? 我尝试了2个脚本,我发现不同的用户提供了,但是我得到了下面的错误: 脚本#1: [ADSI]$power="WinNT://computername/Administrators,group" $power.Remove($NT AUTHORITY\Authenticated Users (S-1-5-11)) 错误#1: Missing ')' in method call. At C:\Users\<myusername>\AppData\Local\Temp\31f87d11-3558-42dd-b62f-b4e21ab74056.ps1:2 char:19 + $power.Remove($NT <<<< AUTHORITY\Authenticated Users) + CategoryInfo : ParserError: (CloseParenToken:TokenId) [], ParseException + FullyQualifiedErrorId : MissingEndParenthesisInMethodCall 脚本#2: $group = [ADSI]("WinNT://"+$env:computername+"/administrators,group") $group.remove("WinNT://$env:computername/NT AUTHORITY\Authenticated Users (S-1-5-11),user") 错误#2: You must provide a value expression on the right-hand […]