79745535

Date: 2025-08-25 09:14:37
Score: 3
Natty:
Report link

Got the same error - even using your last example.

My command is :

New-Object System.DirectoryServices.ActiveDirectoryAccessRule $AdminSID, "GenericWrite", "Allow"

New-Object : Cannot find an overload for "ActiveDirectoryAccessRule" and the argument count: "3".

Or using the method syntax :

[System.DirectoryServices.ActiveDirectoryAccessRule]::new(
    $AdminSID,
    [System.DirectoryServices.ActiveDirectoryRights]::GenericWrite,
    [System.Security.AccessControl.AccessControlType]::Allow)

Cannot find an overload for "new" and the argument count: "3".
Any suggestion ?
Thanks :-)
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (2): Any suggestion
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Luuke